forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #30948 -- Changed packaging to use declarative config in setup.…
…cfg. Co-authored-by: Nick Pope <[email protected]>
- Loading branch information
Showing
4 changed files
with
57 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,55 @@ | ||
[metadata] | ||
name = Django | ||
version = attr: django.__version__ | ||
url = https://www.djangoproject.com/ | ||
author = Django Software Foundation | ||
author_email = [email protected] | ||
description = A high-level Python Web framework that encourages rapid development and clean, pragmatic design. | ||
long_description = file: README.rst | ||
license = BSD-3-Clause | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
Environment :: Web Environment | ||
Framework :: Django | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Topic :: Internet :: WWW/HTTP | ||
Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Topic :: Internet :: WWW/HTTP :: WSGI | ||
Topic :: Software Development :: Libraries :: Application Frameworks | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
project_urls = | ||
Documentation = https://docs.djangoproject.com/ | ||
Funding = https://www.djangoproject.com/fundraising/ | ||
Source = https://github.com/django/django | ||
Tracker = https://code.djangoproject.com/ | ||
|
||
[options] | ||
python_requires = >=3.6 | ||
packages = find: | ||
scripts = django/bin/django-admin.py | ||
include_package_data = true | ||
zip_safe = false | ||
install_requires = | ||
asgiref | ||
pytz | ||
sqlparse >= 0.2.2 | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
django-admin = django.core.management:execute_from_command_line | ||
|
||
[options.extras_require] | ||
argon2 = argon2-cffi >= 16.1.0 | ||
bcrypt = bcrypt | ||
|
||
[bdist_rpm] | ||
doc_files = docs extras AUTHORS INSTALL LICENSE README.rst | ||
install-script = scripts/rpm-install.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import sys | ||
from distutils.sysconfig import get_python_lib | ||
|
||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
CURRENT_PYTHON = sys.version_info[:2] | ||
REQUIRED_PYTHON = (3, 6) | ||
|
@@ -52,64 +52,7 @@ | |
break | ||
|
||
|
||
# Dynamically calculate the version based on django.VERSION. | ||
version = __import__('django').get_version() | ||
|
||
|
||
def read(fname): | ||
with open(os.path.join(os.path.dirname(__file__), fname)) as f: | ||
return f.read() | ||
|
||
|
||
setup( | ||
name='Django', | ||
version=version, | ||
python_requires='>={}.{}'.format(*REQUIRED_PYTHON), | ||
url='https://www.djangoproject.com/', | ||
author='Django Software Foundation', | ||
author_email='[email protected]', | ||
description=('A high-level Python Web framework that encourages ' | ||
'rapid development and clean, pragmatic design.'), | ||
long_description=read('README.rst'), | ||
license='BSD-3-Clause', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
scripts=['django/bin/django-admin.py'], | ||
entry_points={'console_scripts': [ | ||
'django-admin = django.core.management:execute_from_command_line', | ||
]}, | ||
install_requires=['pytz', 'sqlparse >= 0.2.2', 'asgiref'], | ||
extras_require={ | ||
"bcrypt": ["bcrypt"], | ||
"argon2": ["argon2-cffi >= 16.1.0"], | ||
}, | ||
zip_safe=False, | ||
classifiers=[ | ||
'Development Status :: 2 - Pre-Alpha', | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
'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 :: Only', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
'Topic :: Internet :: WWW/HTTP :: WSGI', | ||
'Topic :: Software Development :: Libraries :: Application Frameworks', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
project_urls={ | ||
'Documentation': 'https://docs.djangoproject.com/', | ||
'Funding': 'https://www.djangoproject.com/fundraising/', | ||
'Source': 'https://github.com/django/django', | ||
'Tracker': 'https://code.djangoproject.com/', | ||
}, | ||
) | ||
setup() | ||
|
||
|
||
if overlay_warning: | ||
|