-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·59 lines (48 loc) · 1.46 KB
/
setup.py
File metadata and controls
executable file
·59 lines (48 loc) · 1.46 KB
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
#!/usr/bin/env python3
from setuptools import *
import sys
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'doc': BuildDoc}
except:
print("No Sphinx installed (python-sphinx) so no documentation can be build")
cmdclass = {}
class TestCommand(Command):
user_options = []
def run(self):
self.spawn(["make", "-C", "tests", "PYTHON=%s" % (sys.executable,)])
def initialize_options(self):
pass
def finalize_options(self):
pass
cmdclass["test"] = TestCommand
with open("README.md", "r") as fh:
long_description = fh.read()
version_info = {
'name': 'versuchung',
'version': '1.4.2',
'description': 'A toolbox for experiments',
'author': 'Christian Dietrich',
'author_email': 'stettberger@dokucode.de',
'url': 'http://github.de/stettberger/versuchung',
'long_description': long_description,
'long_description_content_type': "text/markdown",
'license': 'GPLv3',
'classifiers': [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5'
],
'include_package_data': True,
'install_requires': [
'papermill',
'luadata',
]
}
setup(packages = ["versuchung"],
cmdclass = cmdclass,
**version_info
)