Skip to content

Commit

Permalink
Replace setup.py by a pyproject.toml (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jashparekh authored Sep 29, 2023
1 parent 1dbaae8 commit a1f82e0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 37 deletions.
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "python-on-whales"
version = "0.64.3"
description = "A Docker client for Python, designed to be fun and intuitive!"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8, <4"
dynamic = ["dependencies"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[project.optional-dependencies]
test = [
"pytest",
]

[project.urls]
"Source" = "https://github.com/gabrieldemarmiesse/python-on-whales"
"Documentation" = "https://gabrieldemarmiesse.github.io/python-on-whales/"
"Bug Tracker" = "https://github.com/gabrieldemarmiesse/python-on-whales/issues"

[project.scripts]
python-on-whales = "python_on_whales.command_line_entrypoint:main"

[tool.setuptools.packages.find]
exclude = ["tests", "docs"]
33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

4 changes: 0 additions & 4 deletions tests/python_on_whales/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import python_on_whales.utils


def test_project_root():
assert (python_on_whales.utils.PROJECT_ROOT / "setup.py").exists()


def test_environment_variables_propagation(monkeypatch):
monkeypatch.setenv("SOME_VARIABLE", "dododada")

Expand Down

0 comments on commit a1f82e0

Please sign in to comment.