-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (46 loc) · 1.72 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
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
requirements = f.read().splitlines()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
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='mxio',
use_scm_version=my_version,
packages=find_packages(),
url='https://github.com/michel4j/mxio',
include_package_data=True,
license='MIT',
author='Michel Fodje',
author_email='[email protected]',
description='A Simple X-ray Area Detector Data IO Library',
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=requirements,
entry_points={
'mxio.plugins': [
'CBF = mxio.formats.cbf',
'HDF5 = mxio.formats.hdf5',
'MARCCD = mxio.formats.marccd',
'RAXIS = mxio.formats.raxis',
'SMV = mxio.formats.smv',
'NEXUS = mxio.formats.nexus',
'MAR345 = mxio.formats.mar345',
]
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
)