Skip to content

Commit e992d30

Browse files
committed
setting up setuptools to install subsbml package (not yet working)
1 parent f28676d commit e992d30

20 files changed

+3434
-7
lines changed

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2018, Build-A-Cell
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include examples/*.py
2+
include tutorials/*.py
3+
include models/
4+
include README.md
5+
include LICENSE
6+
exclude subsbml.egg-info/*

modules/SimpleModel.py renamed to build/lib/subsbml/SimpleModel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from libsbml import *
22
import warnings
33

4-
from modules.setIdFromNames import *
5-
from modules.SimpleReaction import *
4+
from .setIdFromNames import *
5+
from .SimpleReaction import *
66

77
latestLevel = 3
88
latestVersion = 1
File renamed without changes.
File renamed without changes.

modules/System.py renamed to build/lib/subsbml/System.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Import all required libraries
2-
from modules.Subsystem import *
2+
from .Subsystem import *
33

44
# The latest level and version of SBML
55
# These are used to convert the models given as input to the latest SBML version

build/lib/subsbml/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
from .System import System
3+
from .Subsystem import *
4+
from .SimpleModel import *
5+
from .SimpleReaction import *
6+
from .utilityFunctions import *
7+
from .setIdFromNames import *
8+
File renamed without changes.

modules/utilityFunctions.py renamed to build/lib/subsbml/utilityFunctions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import matplotlib.pyplot as plt
88
from libsbml import *
99

10-
from modules.SimpleModel import *
10+
from .SimpleModel import *
1111

1212
latestLevel = 3
1313
latestVersion = 1

dist/subsbml-0.1-py3.6.egg

67.1 KB
Binary file not shown.

modules/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from setuptools import setup
2+
3+
# Get the long description from the README file
4+
with open('README.md') as fp:
5+
long_description = ''
6+
# long_description = fp.read()
7+
8+
setup(
9+
name = 'subsbml',
10+
version = '0.1',
11+
author = 'BuildACell',
12+
author_email = '[email protected]',
13+
url = 'https://github.com/BuildACell/subsbml',
14+
description = 'SBML subsystem interaction modeling toolbox in Python',
15+
long_description = long_description,
16+
packages = ['subsbml'],
17+
classifiers = [
18+
'Development Status :: 3 - Alpha',
19+
'Intended Audience :: Science/Research',
20+
'Intended Audience :: Developers',
21+
'License :: OSI Approved :: BSD License',
22+
'Programming Language :: Python :: 3',
23+
'Programming Language :: Python :: 3.6',
24+
'Topic :: Software Development',
25+
'Topic :: Scientific/Engineering',
26+
'Operating System :: POSIX',
27+
'Operating System :: Unix'
28+
'Operating System :: MacOS'
29+
'Operating System :: Microsoft :: Windows'
30+
],
31+
)

0 commit comments

Comments
 (0)