This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (46 loc) · 2.19 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
import setuptools
def open_requirements(path):
with open(path) as f:
requires = [
r.split('/')[-1] if r.startswith('git+') else r
for r in f.read().splitlines()]
return requires
with open('README.md') as file:
readme = file.read()
with open('HISTORY.md') as file:
history = file.read()
requires = open_requirements('requirements.txt')
tests_requires = open_requirements('extra_requirements/requirements-tests.txt')
doc_requires = open_requirements('extra_requirements/requirements-docs.txt')
setuptools.setup(name='pema',
version='0.7.0',
description='Peak matching for XENON simulations',
author='Joran Angevaare',
url='https://github.com/XENONnT/peakmatching',
long_description=readme + '\n\n' + history,
long_description_content_type="text/markdown",
setup_requires=['pytest-runner'],
install_requires=requires,
tests_require=requires+tests_requires,
extras_require={
'docs': doc_requires,
},
python_requires=">=3.9",
packages=setuptools.find_packages() + ['extra_requirements'],
package_dir={'extra_requirements': 'extra_requirements'},
package_data={'extra_requirements': ['requirements-docs.txt',
'requirements-tests.txt']},
scripts=['bin/pema_straxer',
'bin/pema_init.py',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Physics',
],
zip_safe=False)