This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
/
setup.py
73 lines (68 loc) · 2.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
if 'sdist' in sys.argv:
os.system('./admin/makedoc')
# Import version from openid library itself
VERSION = __import__('openid').__version__
INSTALL_REQUIRES = [
'six',
'cryptography',
'lxml;platform_python_implementation=="CPython"',
'lxml <4.0;platform_python_implementation=="PyPy"',
]
EXTRAS_REQUIRE = {
'quality': ('flake8', 'isort'),
'tests': ('mock', 'testfixtures', 'responses', 'coverage'),
# Optional dependencies for fetchers
'httplib2': ('httplib2', ),
'pycurl': ('pycurl', ),
'requests': ('requests', ),
# Dependencies for Django example
'djopenid': ('django<1.11.99', ),
}
LONG_DESCRIPTION = open('README.md').read() + '\n\n' + open('Changelog.md').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'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 :: CGI Tools/Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Systems Administration :: Authentication/Directory',
]
setup(
name='python-openid2',
version=VERSION,
description='Python OpenID library - OpenID support for servers and consumers.',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://github.com/ziima/python-openid',
packages=['openid',
'openid.consumer',
'openid.server',
'openid.store',
'openid.yadis',
'openid.extensions',
'openid.extensions.draft',
],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
# license specified by classifier.
# license=getLicense(),
author='Vlastimil Zíma',
author_email='[email protected]',
classifiers=CLASSIFIERS,
)