-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
60 lines (51 loc) · 1.96 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
#!/usr/bin/python
"""Set up the natu package.
See README.md for instructions.
"""
# pylint: disable=C0103
import sys
import re
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'natu', '__init__.py')) as f:
hit = re.search('__version__ *= *["'"'"'](.*)["'"'"']', f.read())
try:
version = hit.group(1)
except AttributeError:
version = None
with open(path.join(here, 'README.txt')) as f:
long_description = f.read()
configparser_str = 'configparser' if sys.version > '2' else 'ConfigParser'
setup(name='natu',
version=version if version else '0',
description="Natural units in Python",
long_description=long_description,
author='Kevin Davies',
author_email='kdavies4@gmail.com',
license='BSD-compatible (see LICENSE.txt)',
keywords='quantity quantities unit conversion natural SI CGS Planck Hartree',
url='http://kdavies4.github.io/natu/',
download_url=('https://github.com/kdavies4/natu/archive/v%s.zip'
% version if version else ''),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Quality Assurance',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
],
provides=['natu'],
packages=['natu', 'natu.config', 'natu.groups'],
package_data={'natu.config': ['*.ini']},
platforms='any',
zip_safe=False, # because ini files must be accessed
test_suite = 'tests.test_suite',
)