-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (53 loc) · 1.88 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
61
#!/usr/bin/env python
'''
Sciris is a flexible open source framework for building scientific web
applications using Python and JavaScript. This library provides the underlying
functions and data structures that support the webapp features, as well as
being generally useful for scientific computing.
'''
import os
import sys
import runpy
from setuptools import setup, find_packages
# Get the current folder
cwd = os.path.abspath(os.path.dirname(__file__))
# Load requirements from txt file
with open('requirements.txt') as f:
requirements = f.read().splitlines()
# Get version
versionpath = os.path.join(cwd, 'scirisweb', 'sw_version.py')
version = runpy.run_path(versionpath)['__version__']
# Get the documentation
with open(os.path.join(cwd, 'README.rst'), "r") as fh:
long_description = fh.read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
]
setup(
name='scirisweb',
version=version,
author='Sciris Development Team',
author_email='[email protected]',
description='Scientific webapps for Python',
long_description=long_description,
long_description_content_type="text/x-rst",
url='http://github.com/sciris/scirisweb',
keywords=['scientific', 'webapp', 'framework'],
platforms=['OS Independent'],
classifiers=CLASSIFIERS,
packages=find_packages(),
include_package_data=True,
install_requires=requirements
)