-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# description | ||
include README.rst | ||
|
||
# version | ||
include wc_sim/VERSION | ||
|
||
# license | ||
include LICENSE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
__version__ = '0.0.1' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[metadata] | ||
description-file = README.rst | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,18 @@ | |
|
||
from setuptools import setup, find_packages | ||
from wc_utils.util.install import parse_requirements, install_dependencies | ||
import wc_sim | ||
import os | ||
|
||
# get long description | ||
if os.path.isfile('README.rst'): | ||
with open('README.rst', 'r') as file: | ||
long_description = file.read() | ||
else: | ||
long_description = '' | ||
|
||
# get version | ||
with open('wc_sim/VERSION', 'r') as file: | ||
version = file.read().strip() | ||
|
||
# parse dependencies and links from requirements.txt files | ||
with open('requirements.txt', 'r') as file: | ||
|
@@ -18,24 +29,26 @@ | |
# install package | ||
setup( | ||
name="wc_sim", | ||
version=wc_sim.__version__, | ||
version=version, | ||
description="Sequential whole-cell model simulator", | ||
long_description=long_description, | ||
url="https://github.com/KarrLab/wc_sim", | ||
download_url='https://github.com/KarrLab/wc_sim/tarball/{}'.format(wc_sim.__version__), | ||
download_url='https://github.com/KarrLab/wc_sim', | ||
author="Arthur Goldberg", | ||
author_email="[email protected]", | ||
license="MIT", | ||
keywords='whole-cell systems cell molecular biology', | ||
packages=find_packages(exclude=['tests', 'tests.*']), | ||
package_data={ | ||
'wc_sim': [ | ||
'VERSION', | ||
'core/config/core.default.cfg', | ||
'core/config/core.schema.cfg', | ||
'core/config/debug.default.cfg', | ||
'multialgorithm/config/core.default.cfg', | ||
'multialgorithm/config/core.schema.cfg', | ||
'multialgorithm/config/debug.default.cfg', | ||
'examples/config/debug.default.cfg', | ||
'examples/config/debug.default.cfg', | ||
], | ||
}, | ||
install_requires=install_requires, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.0.1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
__version__ = '0.0.1' | ||
import pkg_resources | ||
|
||
with open(pkg_resources.resource_filename('wc_sim', 'VERSION'), 'r') as file: | ||
__version__ = file.read().strip() | ||
# :obj:`str`: version |