forked from alan-turing-institute/stat-fem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (39 loc) · 1.4 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
import setuptools
# version information
MAJOR = 0
MINOR = 3
MICRO = 0
PRERELEASE = 0
ISRELEASED = True
version = "{}.{}.{}".format(MAJOR, MINOR, MICRO)
if not ISRELEASED:
version += ".dev{}".format(PRERELEASE)
# write version information to file
def write_version_file(version):
"writes version file that is read when importing version number"
version_file = """'''
Version file automatically created by setup.py file
'''
version = '{}'
""".format(version)
with open("stat_fem/version.py", "w") as fh:
fh.write(version_file)
write_version_file(version)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(name='stat_fem',
version=version,
description='Tool for data-constrained finite element modeling',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://stat-fem.readthedocs.io/',
project_urls={
"Bug Tracker": "https://github.com/alan-turing-institute/stat-fem/issues",
"Documentation": "https://stat-fem.readthedocs.io/",
"Source Code": "https://github.com/alan-turing-institute/stat-fem/",
},
author='Alan Turing Institute Research Engineering Group',
author_email='[email protected]',
packages=setuptools.find_packages(),
license='LGPLv3',
install_requires=['numpy', 'scipy'])