-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (58 loc) · 2.62 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
60
61
62
63
64
65
66
67
68
"""The setup script."""
# Copyright (c) 2019 zfit
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as requirements_file:
requirements = requirements_file.read().splitlines()
with open(os.path.join(here, 'requirements_dev.txt'), encoding='utf-8') as requirements_dev_file:
requirements_dev = requirements_dev_file.read().splitlines()
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
readme = readme_file.read()
with open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf-8') as changelog_file:
changelog = changelog_file.read()
# split the developer requirements into setup and test requirements
if not requirements_dev.count("") == 1 or requirements_dev.index("") == 0:
raise SyntaxError("requirements_dev.txt has the wrong format: setup and test "
"requirements have to be separated by one blank line.")
requirements_dev_split = requirements_dev.index("")
setup_requirements = ["pip>9",
"setuptools_scm",
"setuptools_scm_git_archive"]
test_requirements = requirements_dev[requirements_dev_split + 1:] # +1: skip empty line
setup(
author="Jonas Eschle",
# author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Unix',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Physics',
],
maintainer="zfit",
maintainer_email='[email protected]',
description="scalable pythonic model fitting for high energy physics",
install_requires=requirements,
license="BSD 3-Clause",
long_description=readme + '\n\n' + changelog,
include_package_data=True,
keywords='TensorFlow, model, fitting, scalable, HEP',
name='zfit',
python_requires=">=3.6",
packages=find_packages(include=['zfit', 'zfit.ztf',
'zfit.util', 'zfit.core', "zfit.minimizers", 'zfit.models']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/zfit/zfit',
use_scm_version={
'git_describe_command': 'git describe --tags --long --first-parent $(git rev-list --tags --max-count=1)',
},
zip_safe=False,
)