-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update versioneer, slim version handling
- Loading branch information
1 parent
bceb78d
commit 437417e
Showing
7 changed files
with
262 additions
and
1,941 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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ dependencies: | |
# Base depends | ||
- python | ||
- pip | ||
- versioneer | ||
# Testing | ||
- pytest | ||
- pytest-cov | ||
|
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 |
---|---|---|
|
@@ -12,35 +12,16 @@ | |
import argparse | ||
import subprocess | ||
|
||
import versioneer | ||
|
||
#===================================# | ||
#| ForceBalance version number |# | ||
#| Make sure to update the version |# | ||
#| manually in : |# | ||
#| |# | ||
#| doc/header.tex |# | ||
#| doc/api_header.tex |# | ||
#| bin/ForceBalance.py |# | ||
#===================================# | ||
__version__ = "1.9.6" | ||
# try: | ||
# # use git to find current version | ||
# git_describe = subprocess.check_output(["git", "describe", "--tags"]).strip() | ||
# __version__ = re.sub('-g[0-9a-f]*$','',git_describe) | ||
# except: pass | ||
|
||
# The versioning file logic does not work. | ||
# Commenting out until further notice. | ||
# versioning_file = os.path.join(os.path.dirname(__file__), '.__version__') | ||
# try: | ||
# git_describe = subprocess.check_output(["git", "describe"]).strip() | ||
# __version__ = re.sub('-g[0-9a-f]*$','',git_describe) | ||
# with open(versioning_file, 'w') as fh: | ||
# fh.write(__version__) | ||
# #subprocess.call(["git", "add", ".__version__"]) | ||
# except: | ||
# with open(versioning_file, 'r') as fh: | ||
# __version__ = fh.read().strip() | ||
|
||
|
||
# DCD file reading module | ||
DCD = Extension('forcebalance/_dcdlib', | ||
|
@@ -78,8 +59,6 @@ | |
def buildKeywordDictionary(args): | ||
setupKeywords = {} | ||
setupKeywords["name"] = "forcebalance" | ||
# Don't create a separate installed version number for every commit | ||
setupKeywords["version"] = re.sub('-[0-9]*$','',__version__) | ||
setupKeywords["author"] = "Lee-Ping Wang" | ||
setupKeywords["author_email"] = "[email protected]" | ||
setupKeywords["license"] = "BSD 2.0" | ||
|
@@ -158,7 +137,11 @@ def main(): | |
setupKeywords=buildKeywordDictionary(args) | ||
## Run setuptools command. | ||
## Refer to setup.cfg for customizing installation behavior | ||
setup(**setupKeywords) | ||
setup( | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
**setupKeywords, | ||
) | ||
|
||
if os.path.exists('build'): | ||
shutil.rmtree('build') | ||
|
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
Oops, something went wrong.