-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
56 lines (48 loc) · 1.93 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
# -*- coding: utf-8 -*-
import setuptools
from distutils.core import setup
__version__ = "1.1.7"
def setup_package():
from os.path import abspath, dirname, join
import sys
this_directory = abspath(dirname(__file__))
if sys.version_info.major == 3:
with open(join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
else:
with open(join(this_directory, 'README.md')) as f:
long_description = f.read()
skip_marker = "# particletools"
long_description = long_description[long_description.index(skip_marker) :].lstrip()
arguments = dict(
name='particletools',
version=__version__,
author='Anatoli Fedynitch',
author_email='[email protected]',
description='Translating particle codes from CR models from/to PDG codes',
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT",
url='https://github.com/afedynitch/particletools',
package_dir={'particletools': 'particletools'},
packages=['particletools'],
install_requires=['setuptools', 'six'],
tests_require=['pytest'],
package_data={'particletools': ['ParticleData.xml']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Physics',
'Intended Audience :: Science/Research',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License'
],
)
setup(**arguments)
if __name__ == '__main__':
setup_package()