-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
59 lines (53 loc) · 1.62 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
import setuptools
# Loads __version__ using exec as setup.py can't import its own package
version = {}
version_file = 'learnosity_sdk/_version.py'
exec(open(version_file).read(), { '__builtins__': None }, version)
if '__version__' not in version:
raise Exception('__version__ not found in file %s' % version_file)
INSTALL_REQUIRES = [
'requests >=2.21.0',
'certifi >=2024.07.04',
]
DEV_REQUIRES = [
'setuptools',
'twine',
'wheel',
]
TEST_REQUIRES = [
'pre-commit',
'pytest >=4.6.6',
'pytest-cov >=2.8.1',
'pytest-subtests',
'pytest-randomly',
'responses >=0.8.1',
'types-requests',
'types-Jinja2',
'mypy',
]
# Extract the markdown content of the README to be sent to Pypi as the project description page.
with open("README.md", "r") as f:
readmeText = f.read()
setuptools.setup(
author='Learnosity',
author_email='[email protected]',
url='https://github.com/Learnosity/learnosity-sdk-python',
version=version['__version__'],
license='Apache 2.0 license. See LICENSE.md for details.',
name='learnosity_sdk',
description='Learnosity SDK for Python',
long_description=readmeText, # Pulled from README.me on line 28
long_description_content_type='text/markdown',
packages=setuptools.find_packages(exclude=('tests')),
install_requires=INSTALL_REQUIRES,
extras_require={
'dev': DEV_REQUIRES,
'test': TEST_REQUIRES,
'quickstart': ['jinja2'],
},
entry_points={
'console_scripts': [
'learnosity-sdk-assessment-quickstart=docs.quickstart.assessment.standalone_assessment:main [quickstart]',
],
},
)