-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
59 lines (54 loc) · 2.14 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
# (c) Crown copyright Met Office. All rights reserved.
# For further details please refer to the file COPYRIGHT
# which you should have received as part of this distribution
import os.path
import setuptools # type: ignore
_here = os.path.dirname(__file__)
with open(os.path.join(_here, 'README.md'), 'r', encoding='utf-8') as handle:
_long_description = handle.read()
with open(os.path.join(_here, 'source', 'fab', '__init__.py'),
encoding='utf-8') as handle:
for line in handle:
bits = line.split('=', 1)
if bits[0].strip().lower() == '__version__':
_version = bits[1].strip().strip('"\'')
break
else:
raise RuntimeError('Cannot determine package version.')
setuptools.setup(
name='sci-fab',
version=_version,
author='SciFab Developers',
author_email='[email protected]',
description='Build system for scientific software',
long_description=_long_description,
long_description_content_type='text/markdown',
url='https://github.com/Metomi/fab',
project_urls={
'Bug reports': 'https://github.com/metomi/fab/issues',
'Source': 'https://github.com/metomi/fab/'
},
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Build Tools'
],
package_dir={'': 'source'},
packages=setuptools.find_packages(where='source'),
entry_points={'console_scripts': ['fab=fab.builder:entry', # Alias
'fab-build=fab.builder:entry',
'fab-grab=fab.grabber:entry',
'fab-dump=fab.dumper:entry'],
'gui_scripts': ['fab-explorer=fab.explorer:entry']},
python_requires='>=3.6, <4',
install_requires=[],
extras_require={
'dev': ['flake8', 'mypy'],
'unit-test': ['pytest', 'pytest-cov', 'pytest-mock'],
'system-test': ['pytest']
}
)