-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (36 loc) · 1.3 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
import os
import re
from setuptools import setup
base_path = os.path.dirname(__file__)
# Read the project version from "__init__.py"
regexp = re.compile(r'.*__version__ = [\'\"](.*?)[\'\"]', re.S)
init_file = os.path.join(base_path, 'sep005_io_dxd', '__init__.py')
with open(init_file, 'r') as f:
module_content = f.read()
match = regexp.match(module_content)
if match:
version = match.group(1)
else:
raise RuntimeError(
'Cannot find __version__ in {}'.format(init_file))
# Read the "README.rst" for project description
with open('README.rst', 'r') as f:
readme = f.read()
if __name__ == '__main__':
setup(
name='sep005_io_dxd',
description='Dewesoft DXD file read functions compliant with SDyPy SEP005',
long_description=readme,
license='MIT license',
url='https://github.com/OWI-Lab',
version=version,
author='Wout Weijtjens',
author_email='[email protected]',
maintainer='Wout Weijtjens',
maintainer_email='[email protected]',
keywords=['io','fbgs','SEP005'],
packages=['sep005_io_dxd'],
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.6']
)