Skip to content

Commit 3fdc7e6

Browse files
committed
Move most setup metadata to setup.cfg
1 parent 34f3b7b commit 3fdc7e6

File tree

2 files changed

+40
-54
lines changed

2 files changed

+40
-54
lines changed

setup.cfg

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1+
[metadata]
2+
name = django-oauth-toolkit
3+
version = 0.12.0
4+
description = OAuth2 Provider for Django
5+
author = Federico Frenguelli, Massimiliano Pippi
6+
author_email = [email protected]
7+
url = https://github.com/evonove/django-oauth-toolkit
8+
download_url = https://github.com/evonove/django-oauth-toolkit/tarball/master
9+
keywords = django, oauth, oauth2, oauthlib
10+
classifiers =
11+
Development Status :: 4 - Beta
12+
Environment :: Web Environment
13+
Framework :: Django
14+
Framework :: Django :: 1.8
15+
Framework :: Django :: 1.10
16+
Intended Audience :: Developers
17+
License :: OSI Approved :: BSD License
18+
Operating System :: OS Independent
19+
Programming Language :: Python :: 2.7
20+
Programming Language :: Python :: 3
21+
Programming Language :: Python :: 3.4
22+
Programming Language :: Python :: 3.5
23+
Programming Language :: Python :: 3.6
24+
Topic :: Internet :: WWW/HTTP
25+
26+
[options]
27+
packages = find:
28+
include_package_data = True
29+
zip_safe = False
30+
install_requires =
31+
django >= 1.8
32+
django-braces >= 1.11.0
33+
oauthlib >= 2.0.1
34+
six
35+
36+
[options.packages.find]
37+
exclude = tests
38+
139
[bdist_wheel]
240
universal = 1

setup.py

100644100755
Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,6 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32

4-
from setuptools import setup, find_packages
5-
import os
6-
import re
3+
from setuptools import setup
74

85

9-
def get_version(package):
10-
"""
11-
Return package version as listed in `__version__` in `init.py`.
12-
"""
13-
init_py = open(os.path.join(package, '__init__.py')).read()
14-
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
15-
16-
17-
version = get_version('oauth2_provider')
18-
19-
20-
LONG_DESCRIPTION = open('README.rst').read()
21-
22-
setup(
23-
name="django-oauth-toolkit",
24-
version=version,
25-
description="OAuth2 goodies for Django",
26-
long_description=LONG_DESCRIPTION,
27-
classifiers=[
28-
"Development Status :: 4 - Beta",
29-
"Environment :: Web Environment",
30-
"Framework :: Django",
31-
"License :: OSI Approved :: BSD License",
32-
"Operating System :: OS Independent",
33-
"Programming Language :: Python :: 2.7",
34-
"Programming Language :: Python :: 3.4",
35-
"Programming Language :: Python :: 3.5",
36-
"Programming Language :: Python :: 3.6",
37-
"Topic :: Software Development :: Libraries :: Python Modules",
38-
"Framework :: Django",
39-
"Framework :: Django :: 1.8",
40-
"Framework :: Django :: 1.9",
41-
"Framework :: Django :: 1.10",
42-
],
43-
keywords='django oauth oauth2 oauthlib',
44-
author="Federico Frenguelli, Massimiliano Pippi",
45-
46-
url='https://github.com/evonove/django-oauth-toolkit',
47-
license='BSD',
48-
packages=find_packages(),
49-
include_package_data=True,
50-
test_suite='runtests',
51-
install_requires=[
52-
'django>=1.8',
53-
'django-braces>=1.11.0',
54-
'oauthlib==2.0.1',
55-
'six',
56-
],
57-
zip_safe=False,
58-
)
6+
setup(test_suite="runtests")

0 commit comments

Comments
 (0)