Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ cp -R ${SRC_DIR}/input/* rmgdatabase/
# Create rmgrc file that points to this folder in site-packages/rmgpy directory
cd ${SP_DIR}
mkdir rmgpy
echo 'database.directory: ' ${PREFIX}/share/rmgdatabase > ${SP_DIR}/rmgpy/rmgrc
echo 'database.directory: ' ${PREFIX}/share/rmgdatabase > ${SP_DIR}/rmgpy/rmgrc

# Save version number stored in version.py
$PYTHON -c 'exec(open('version.py').read()); print __version__' > ${SRC_DIR}/__conda_version__.txt

6 changes: 3 additions & 3 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# For conda build
package:
name: rmgdatabase
version: "1.0.1"
version: "0" # set by build.sh, which gets it from version.py file

source:
path: .

build:
number: 1

number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }} # number of commits since last git tag (which should be last change to __version__)
requirements:
build:
- python
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@
scripts = ['scripts/' + scriptName for scriptName in scripts]


# Read the version number
exec(open('version.py').read())
# Initiate the build and/or installation
setup(name='RMG-database',
version='1.0.0',
version=__version__,
description='Reaction Mechanism Generator Database',
author='William H. Green and the RMG Team',
author_email='rmg_dev@mit.edu',
Expand Down
3 changes: 3 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file describes the version

__version__ = '1.0.1'