-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
migrate packaging to pyproject.toml #9056
base: master
Are you sure you want to change the base?
Changes from 12 commits
3136996
401de87
6019f1d
121caba
c2062da
a71ed6a
0bcd152
34840fd
9b6e714
cf25dcd
040ded0
9ce6b62
c4bcfc4
2770f5e
6f8da97
2ef6126
c8030fc
0101d89
c1c39d4
561bd4c
29205f0
1278968
06bebc2
ea10c54
5729b02
7770fe4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,53 @@ | ||||||||||||||||
[build-system] | ||||||||||||||||
requires = ["setuptools>=61.2"] | ||||||||||||||||
build-backend = "setuptools.build_meta" | ||||||||||||||||
|
||||||||||||||||
[project] | ||||||||||||||||
name = "djangorestframework" | ||||||||||||||||
readme = "README.md" | ||||||||||||||||
authors = [{name = "Tom Christie", email = "[email protected]"}] | ||||||||||||||||
license = {text = "BSD"} | ||||||||||||||||
description = "Web APIs for Django, made easy." | ||||||||||||||||
classifiers = [ | ||||||||||||||||
"Development Status :: 5 - Production/Stable", | ||||||||||||||||
"Environment :: Web Environment", | ||||||||||||||||
"Framework :: Django", | ||||||||||||||||
"Framework :: Django :: 3.0", | ||||||||||||||||
"Framework :: Django :: 3.1", | ||||||||||||||||
"Framework :: Django :: 3.2", | ||||||||||||||||
"Framework :: Django :: 4.0", | ||||||||||||||||
"Framework :: Django :: 4.1", | ||||||||||||||||
"Framework :: Django :: 4.2", | ||||||||||||||||
"Intended Audience :: Developers", | ||||||||||||||||
"License :: OSI Approved :: BSD License", | ||||||||||||||||
"Operating System :: OS Independent", | ||||||||||||||||
"Programming Language :: Python", | ||||||||||||||||
"Programming Language :: Python :: 3", | ||||||||||||||||
"Programming Language :: Python :: 3.6", | ||||||||||||||||
"Programming Language :: Python :: 3.7", | ||||||||||||||||
"Programming Language :: Python :: 3.8", | ||||||||||||||||
"Programming Language :: Python :: 3.9", | ||||||||||||||||
"Programming Language :: Python :: 3.10", | ||||||||||||||||
"Programming Language :: Python :: 3.11", | ||||||||||||||||
"Programming Language :: Python :: 3.12", | ||||||||||||||||
"Programming Language :: Python :: 3 :: Only", | ||||||||||||||||
"Topic :: Internet :: WWW/HTTP", | ||||||||||||||||
] | ||||||||||||||||
requires-python = ">=3.7" | ||||||||||||||||
dependencies = [ | ||||||||||||||||
"django>=3.0", | ||||||||||||||||
'backports.zoneinfo;python_version<"3.9"', | ||||||||||||||||
] | ||||||||||||||||
dynamic = ["version"] | ||||||||||||||||
|
||||||||||||||||
[tool.setuptools.dynamic] | ||||||||||||||||
version = {attr = "rest_framework.__version__"} | ||||||||||||||||
|
||||||||||||||||
[project.urls] | ||||||||||||||||
Homepage = "https://www.django-rest-framework.org/" | ||||||||||||||||
Funding = "https://fund.django-rest-framework.org/topics/funding/" | ||||||||||||||||
Source = "https://github.com/encode/django-rest-framework" | ||||||||||||||||
Changelog = "https://www.django-rest-framework.org/community/release-notes/" | ||||||||||||||||
|
||||||||||||||||
[tool.setuptools.packages.find] | ||||||||||||||||
namespaces = false | ||||||||||||||||
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. Is there a reason you're disabling namespaces? I believe you can also just specify the packages directly since there is only one:
Suggested change
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. I disabled them because they were disabled originally, using 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. I see, thanks for trying. It appears I misunderstood the default behavior for nested packages. You'd need to try the following:
Suggested change
I used the Do you mind running that by the CI? 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. sure. But as it is changing the behavior, even if it works, I would like it in a separate PR :) 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. Well what you used doesn't match the original either, since you're missing the exclude so I'd just switch to the new style using include and you can leave off the namespace disabling or turn it off if you really prefer it to be off. I just don't think it needs to be off. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[metadata] | ||
license_files = LICENSE.md | ||
|
||
[tool:pytest] | ||
addopts=--tb=short --strict-markers -ra | ||
testspath = tests | ||
|
This file was deleted.
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.
Is this still true?
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.
not in the current state, indeed