-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 815 Bytes
/
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
import io
from os.path import dirname, join
from setuptools import setup
def get_version(relpath):
'''Read version info from a file without importing it'''
for line in io.open(join(dirname(__file__), relpath), encoding='cp437'):
if '__version__' in line:
if '"' in line:
# __version__ = "0.9"
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
setup(name='rxneqn',
version=get_version('rxneqn/__init__.py'),
description='Balance chemical reactions and perform arithmetic on them',
url='http://github.com/djinnome/rxn_balancer',
author='Jeremy Zucker',
author_email='[email protected]',
install_requires=[
'pandas',
'periodic'],
license='MIT',
packages=['rxneqn'],
zip_safe=False)