-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single-source the package version - II
- The previous `from qmpy import __version__` does not work as the `qmpy/__init__.py` file imports several packages that will not be available to `setup.py` (which is not really a good practice, but it is what we have)
- Loading branch information
1 parent
b685d2a
commit ba2d283
Showing
3 changed files
with
10 additions
and
4 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.0 |
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,11 +1,12 @@ | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
from qmpy import __version__ | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'qmpy', 'VERSION.txt')) as fr: | ||
version = fr.read().strip() | ||
|
||
setup( | ||
name='qmpy', | ||
version=__version__, | ||
version=version, | ||
author='S. Kirklin', | ||
author_email='[email protected]', | ||
license='LICENSE.txt', | ||
|