-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
44 lines (40 loc) · 1.22 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
import os
import re
from setuptools import setup
here = os.path.dirname(os.path.abspath(__file__))
VERSIONFILE = os.path.join(here, "procsim", "core", "version.py")
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in {}.".format(VERSIONFILE))
with open("README.md", 'r') as f:
long_description = f.read()
setup(
name="procsim",
version=verstr,
url="https://www.stcorp.nl/",
license="BSD3",
author="S[&]T",
author_email="[email protected]",
description="Tool to simulate a processor in a PDGS.",
long_description=long_description,
long_description_content_type='text/markdown',
packages=["procsim", "procsim.core", "procsim.biomass", "procsim.flex"],
package_data={'procsim.core': ['*.xsd']},
include_package_data=True,
python_requires='>=3',
zip_safe=False,
entry_points={
"console_scripts": [
"procsim = procsim.core.main:main"
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Programming Language :: Python :: 3'
]
)