-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
53 lines (45 loc) · 1.41 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
# -*- coding: utf-8 -*-
from setuptools import setup
import re
test_requirements = [
'coverage',
]
extras_require = {
'tests': test_requirements,
}
def get_version():
with open('hepdata_converter_ws/version.py', 'r') as version_f:
content = version_f.read()
r = re.search('^__version__ *= *\'(?P<version>.+)\'', content, flags=re.MULTILINE)
if not r:
return '0.0.0'
return r.group('version')
# Get the long description from the README file
with open('README.md', 'rt') as fp:
long_description = fp.read()
setup(
name='hepdata-converter-ws',
version=get_version(),
install_requires=[
'hepdata-converter>=0.3',
'flask',
'sentry-sdk[flask]',
],
extras_require=extras_require,
tests_require=test_requirements,
entry_points={
'console_scripts': [
'hepdata-converter-ws = hepdata_converter_ws:main',
]
},
packages=['hepdata_converter_ws'],
url='https://github.com/HEPData/hepdata-converter-ws',
license='GPL',
author='HEPData Team',
author_email='[email protected]',
description='Flask webservices enabling usage of hepdata-converter as a separate server over the network',
download_url='https://github.com/HEPData/hepdata-converter-ws/tarball/%s' % get_version(),
long_description=long_description,
long_description_content_type='text/markdown',
python_requires='>=3.7'
)