forked from paulflang/cell_cycle_model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (56 loc) · 1.72 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
62
63
64
65
66
67
#
# cell_cycle_model setuptools script
#
# This file is part of cell_cycle_model.
# Copyright (c) 2020, University of Oxford.
# For licensing information, see the LICENSE file distributed with the cell_cycle_model
# software package.
#
from setuptools import setup, find_packages
# Load text for description and license
with open('README.md') as f:
readme = f.read()
# Read version number from file
def load_version():
try:
import os
root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root, 'model_tools', '_version.py'), 'r') as f:
version = f.read().split('\n')[0].split('=')[-1].strip(' ').strip('"')
return version
except Exception as e:
raise RuntimeError('Unable to read version number (' + str(e) + ').')
# Go!
setup(
# Module name (lowercase)
name='cell_cycle_model',
version=load_version(),
# Description
description='A collection of mathematical cell cycle models',
long_description=readme,
long_description_content_type='text/markdown',
# License name
license='MIT',
# Maintainer information
author='Paul F Lang',
author_email='[email protected]',
url='https://github.com/paulflang/cell_cycle_model',
# Packages to include
packages=find_packages(include=('model_tools', 'model_tools.*')),
# Include non-python files (via MANIFEST.in)
include_package_data=True,
# List of dependencies
install_requires=[
'amici',
'numpy',
],
extras_require={
'docs': [
'sphinx', # For doc generation
],
'dev': [
'flake8>=3', # For code style checking
],
},
python_requires='>=3.8',
)