-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (40 loc) · 1.46 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
def readversion(filename, varname):
''' Get the version without the need to execute the file '''
version = None
with open(filename, "r") as f:
for line in f:
if line.startswith(varname):
version = line.split('=')[1].replace('"','').replace("'",'').strip()
if version is None:
raise Exception('Could not read version from file %s' % filename)
return version
CLASSIFIERS = [
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GPLv3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Development Status :: 1 - Planning',
'Programming Language :: Python :: 2.7',
]
setup(
name='atomica_apps',
version=readversion(filename="./atomica_apps/version.py", varname='__version__'),
author='Cliff Kerr, George Chadderdon, Parham Saidi, Vlad-Stefan Harbuz, James Jansson, Romesh Abeysuriya, Robyn Stuart',
author_email='[email protected]',
description='Frontend for Atomica',
url='https://github.com/sciris/atomica_apps',
keywords=['cascade', 'disease'],
platforms=['OS Independent'],
classifiers=CLASSIFIERS,
packages=find_packages(),
include_package_data=True,
install_requires=[
'atomica', # Core library
'sciris'
],
)