diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 19d6c078..288a94b0 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -11,7 +11,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements-dev.txt + pip install .[dev] - name: Lint with flake8 run: flake8 ./patterns --count --show-source --statistics continue-on-error: true diff --git a/pyproject.toml b/pyproject.toml index 57f6fbe7..dfac5da9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,46 @@ [build-system] -requires = ["setuptools>=42", "wheel"] +requires = ["setuptools >= 77.0.3"] build-backend = "setuptools.build_meta" [project] -name = "patterns" +name = "python-patterns" description = "A collection of design patterns and idioms in Python." version = "0.1.0" readme = "README.md" -requires-python = ">=3.9" -license = {text = "MIT"} +requires-python = ">=3.10" classifiers = [ - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] +dependencies= [ +] + +maintainers=[ + { name="faif" } +] + +[project.urls] +Homepage = "https://github.com/faif/python-patterns" +Repository = "https://github.com/faif/python-patterns" +"Bug Tracker" = "https://github.com/faif/python-patterns/issues" +Contributors = "https://github.com/faif/python-patterns/graphs/contributors" [project.optional-dependencies] -dev = ["pytest", "pytest-cov", "pytest-randomly", "flake8", "mypy", "coverage"] +dev = [ + "mypy", + "pipx>=1.7.1", + "pyupgrade", + "pytest>=6.2.0", + "pytest-cov>=2.11.0", + "pytest-randomly>=3.1.0", + "black>=25.1.0", + "build>=1.2.2", + "isort>=5.7.0", + "flake8>=7.1.0", + "tox>=4.25.0" +] [tool.setuptools] packages = ["patterns"] diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 4aaa81f2..00000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,9 +0,0 @@ -mypy -pyupgrade -pytest>=6.2.0 -pytest-cov>=2.11.0 -pytest-randomly>=3.1.0 -black>=25.1.0 -isort>=5.7.0 -flake8>=7.1.0 -tox>=4.25.0 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 72bc2b46..00000000 --- a/setup.py +++ /dev/null @@ -1,14 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="patterns", - packages=find_packages(), - description="A collection of design patterns and idioms in Python.", - classifiers=[ - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - ], -)