-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
77 lines (71 loc) · 2.41 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
74
75
76
77
import os
from setuptools import find_packages, setup
# Build README info
short_description = 'A python module that performs verification for Open Badges.'
try:
import pypandoc
pypandoc.convert_file('README.md', 'rst', outputfile='README.rst')
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
except (ImportError, RuntimeError, OSError):
README = short_description
# import VERSION
try:
execfile(os.path.join(os.path.dirname(__file__), 'openbadges/version.py'))
except NameError:
exec(open(os.path.join(os.path.dirname(__file__), 'openbadges/version.py')).read())
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='openbadges',
version=".".join(map(str, VERSION)),
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
license='Apache 2',
description=short_description,
long_description=README,
url='https://github.com/IMSGlobal/openbadges-validator-core',
author='IMS Global',
author_email='[email protected]',
classifiers=[
'Environment :: Console',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Education',
'Topic :: Utilities',
'Intended Audience :: Developers'
],
install_requires=[
'aniso8601>=1.2.0',
'Click == 6.7',
'future==0.16.0',
'jsonschema==2.6.0',
'language-tags==0.4.3',
'openbadges-bakery>=1.1.0',
'pycryptodome==3.6.6',
'pydux==0.2.2',
'PyLD==0.7.1',
'python-jose==3.0.1',
'python-mimeparse==1.6.0',
'pytz==2017.2',
'requests >= 2.13',
'requests_cache==0.4.13',
'rfc3986==0.4.1',
'validators==0.11.2',
],
extras_require={
'server': ["Flask==0.12.1", 'gunicorn==19.7.1'],
},
entry_points="""
[console_scripts]
openbadges=openbadges.command_line:cli
"""
)