-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (55 loc) · 1.73 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
from setuptools import setup, find_packages
with open("README.rst", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
def my_version():
from setuptools_scm.version import get_local_dirty_tag
def clean_scheme(version):
return get_local_dirty_tag(version) if version.dirty else ''
def version_scheme(version):
return str(version.format_with('{tag}.{distance}'))
return {'local_scheme': clean_scheme, 'version_scheme': version_scheme}
setup(
name='mxdc',
use_scm_version=my_version,
url="https://github.com/michel4j/mxdc",
license='MIT',
author='Michel Fodje',
author_email='[email protected]',
description='Mx Data Collector',
long_description=long_description,
long_description_content_type="text/x-rst",
keywords='beamline data-acquisition crystallography MX',
include_package_data=True,
packages=find_packages(),
package_data={
'mxdc': [
'share/data/simulated/*.*',
'share/data/*.*',
'share/gschemas.compiled',
'share/mxdc.*.xml',
'share/mxdc.gresource',
'share/styles.css',
'share/dark.mplstyle',
'share/imgsync.tac',
]
},
install_requires=requirements,
scripts=[
'bin/archiver',
'bin/blconsole',
'bin/hutchviewer',
'bin/imgview',
'bin/mxdc',
'bin/plotxdi',
'bin/sim-console',
'bin/sim-mxdc',
],
classifiers=[
'Intended Audience :: Developers',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)