-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·70 lines (64 loc) · 2.52 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
''' Installation script for rnbgrader package '''
import re
import setuptools
from distutils.core import setup
import versioneer
# Get install requirements from requirements.txt file
with open('requirements.txt', 'rt') as fobj:
install_requires = [line.strip() for line in fobj
if line.strip() and not line[0] in '#-']
# Get any extra test requirements
with open('test-requirements.txt', 'rt') as fobj:
test_requires = [line.strip() for line in fobj
if line.strip() and not line[0] in '#-']
# Requires for distutils (only used in pypi interface?)
break_ver = re.compile(r'(\S+?)(\[\S+\])?([=<>!]+\S+)')
requires = [break_ver.sub(r'\1 (\3)', req) for req in install_requires]
cmdclass = versioneer.get_cmdclass()
setup(name='rnbgrader',
version=versioneer.get_version(),
cmdclass=cmdclass,
description='Utilities for grading R Markdown notebook assignments',
author='Matthew Brett',
author_email='matthew.brett@gmail.com',
maintainer='Matthew Brett',
maintainer_email='matthew.brett@gmail.com',
url='http://github.com/matthew-brett/rnbgrader',
packages=['rnbgrader',
'rnbgrader.tests'],
package_data = {'rnbgrader': [
'tests/data/*',
]},
license='BSD license',
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
long_description = open('README.md', 'rt').read(),
long_description_content_type='text/markdown',
install_requires = install_requires,
extras_require = {'test': test_requires},
# For pip versions >= 9
python_requires = '>=3.6',
entry_points={
'console_scripts': [
'rnbgrader-exe-check = rnbgrader.execheck:old_main',
'rnbg-exe-check = rnbgrader.execheck:main',
'rnbg-allow-raise = rnbgrader.allow_raise:main',
],
},
)