forked from stettberger/versuchung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·57 lines (45 loc) · 1.46 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
#!/usr/bin/env python3
from setuptools import setup, Command
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.3.3',
'description': 'A toolbox for experiments',
'author': 'Christian Dietrich',
'author_email': '[email protected]',
'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,
}
setup(packages = ["versuchung"],
package_dir = {'versuchung': 'src/versuchung'},
cmdclass = cmdclass,
**version_info
)