-
Notifications
You must be signed in to change notification settings - Fork 21
migrate to pyproject.toml #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ repos: | |
| rev: 7.3.0 | ||
| hooks: | ||
| - id: flake8 | ||
| additional_dependencies: [Flake8-pyproject] | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=78.0"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "django-click" | ||
| dynamic = ["version"] | ||
| description = "Build Django management commands using the click CLI package." | ||
| readme = "README.rst" | ||
| license = "MIT" | ||
| license-files = ["LICENSE"] | ||
| authors = [ | ||
| { name = "Jonathan Stoppani", email = "jonathan@stoppani.name" }, | ||
| ] | ||
| maintainers = [ | ||
| {name = "Jonathan Stoppani" }, | ||
| {name = "Timothy Allen"}, | ||
| ] | ||
| requires-python = ">=3.10" | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Framework :: Django :: 4.2", | ||
| "Framework :: Django :: 5.2", | ||
| "Framework :: Django :: 6.0", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| ] | ||
| dependencies = [ | ||
| "click>=7.1", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/django-commons/django-click" | ||
|
|
||
| [dependency-groups] | ||
| all = [ | ||
| {include-group = "docs"}, | ||
| {include-group = "test"}, | ||
| ] | ||
| test = [ | ||
| "pytest", | ||
| "coverage<8", | ||
| "pytest-django", | ||
| "pytest-cov", | ||
| ] | ||
| docs = [ | ||
| # Documentation | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment is no longer needed. |
||
| "Sphinx", | ||
| "sphinx-autobuild", | ||
| "sphinx_rtd_theme", | ||
| ] | ||
|
|
||
|
|
||
| [tool.setuptools.packages.find] | ||
| include = ["djclick"] | ||
|
|
||
| [tool.setuptools.package-data] | ||
| "djclick" = ["**/*"] | ||
|
|
||
| [tool.setuptools.exclude-package-data] | ||
| "djclick" = [ | ||
| "test/*", | ||
| "test/**/*", | ||
| ] | ||
|
|
||
| [tool.setuptools.data-files] | ||
| "." = [ | ||
| "CONTRIBUTING.rst", | ||
| ] | ||
|
|
||
|
|
||
| [tool.flake8] | ||
| max-line-length = 88 | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "djclick.__version__" } | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious if the
setuptoolsselection over other tools likehatchlingwas on purpose. Just asking to learn, I'm okay with the selection if it's working fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice question. well even i'm also learning and what i have found that setuptools is the most compatible drop-in replacement for migrating from
setup.py.Setup.version(), file reading logic this may not be possible in hatchlinghatchlingdon't support it.