Skip to content

Commit 2c1712c

Browse files
authored
Changed packaging to use declarative config in setup.cfg.
1 parent ad342b5 commit 2c1712c

File tree

2 files changed

+54
-55
lines changed

2 files changed

+54
-55
lines changed

setup.cfg

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
[metadata]
2+
name = django-request
3+
version = attr: request.__version__
4+
url = attr: request.__URL__
5+
download_url = https://pypi.org/project/django-request/
6+
author = Kyle Fuller
7+
author_email = kyle@fuller.li
8+
maintainer = Mariusz Felisiak
9+
maintainer_email = felisiak.mariusz@gmail.com
10+
description = file: docs/description.txt
11+
long_description = file: docs/long_description.txt
12+
license = attr: request.__licence__
13+
classifiers =
14+
Development Status :: 5 - Production/Stable
15+
Environment :: Web Environment
16+
Framework :: Django
17+
Framework :: Django :: 1.10
18+
Framework :: Django :: 1.11
19+
Framework :: Django :: 2.0
20+
Framework :: Django :: 2.1
21+
Framework :: Django :: 2.2
22+
Framework :: Django :: 3.0
23+
Intended Audience :: Developers
24+
License :: OSI Approved :: BSD License
25+
Operating System :: OS Independent
26+
Programming Language :: Python
27+
Programming Language :: Python :: 2
28+
Programming Language :: Python :: 2.7
29+
Programming Language :: Python :: 3
30+
Programming Language :: Python :: 3.4
31+
Programming Language :: Python :: 3.6
32+
Programming Language :: Python :: 3.7
33+
34+
[options]
35+
install_requires =
36+
Django>=1.10
37+
python-dateutil
38+
six
39+
packages =
40+
request
41+
request.migrations
42+
request.templatetags
43+
request.management
44+
request.management.commands
45+
46+
[options.package_data]
47+
request =
48+
templates/admin/request/*.html
49+
templates/admin/request/request/*.html
50+
templates/request/plugins/*.html
51+
static/request/js/*.js
52+
locale/*/LC_MESSAGES/*.*
53+
154
[flake8]
255
exclude = .git,.tox,build,./request/migrations
356
max-line-length = 119

setup.py

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,4 @@
11
#!/usr/bin/env python
22
from setuptools import setup
33

4-
import request
5-
6-
setup(
7-
name='django-request',
8-
version=request.__version__,
9-
description=open('docs/description.txt').read(),
10-
long_description=open('docs/long_description.txt').read(),
11-
author='Kyle Fuller',
12-
author_email='kyle@fuller.li',
13-
maintainer='Mariusz Felisiak',
14-
maintainer_email='felisiak.mariusz@gmail.com',
15-
url=request.__URL__,
16-
download_url='https://pypi.org/project/django-request/',
17-
packages=[
18-
'request',
19-
'request.migrations',
20-
'request.templatetags',
21-
'request.management',
22-
'request.management.commands',
23-
],
24-
package_data={'request': [
25-
'templates/admin/request/*.html',
26-
'templates/admin/request/request/*.html',
27-
'templates/request/plugins/*.html',
28-
'static/request/js/*.js',
29-
'locale/*/LC_MESSAGES/*.*',
30-
]},
31-
install_requires=[
32-
'Django>=1.10',
33-
'python-dateutil',
34-
'six',
35-
],
36-
license=request.__licence__,
37-
classifiers=[
38-
'Development Status :: 5 - Production/Stable',
39-
'Environment :: Web Environment',
40-
'Framework :: Django',
41-
'Framework :: Django :: 1.10',
42-
'Framework :: Django :: 1.11',
43-
'Framework :: Django :: 2.0',
44-
'Framework :: Django :: 2.1',
45-
'Framework :: Django :: 2.2',
46-
'Framework :: Django :: 3.0',
47-
'Intended Audience :: Developers',
48-
'License :: OSI Approved :: BSD License',
49-
'Operating System :: OS Independent',
50-
'Programming Language :: Python',
51-
'Programming Language :: Python :: 2',
52-
'Programming Language :: Python :: 2.7',
53-
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.4',
55-
'Programming Language :: Python :: 3.6',
56-
'Programming Language :: Python :: 3.7',
57-
],
58-
)
4+
setup()

0 commit comments

Comments
 (0)