-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Starlink/u/timj/add__version
Add __version__ support
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
from support import sst2pydoc as sst | ||
from support import palvers | ||
|
||
palpy_version = "1.8.1" | ||
|
||
erfa_c = ( | ||
"a2af.c", "a2tf.c", "ab.c", "af2a.c", "anp.c", "anpm.c", | ||
"apcg.c", "apcg13.c", "apci.c", "apci13.c", "apco.c", | ||
|
@@ -137,6 +139,8 @@ | |
line = line.replace("@MINOR_VERSION@", str(minor)) | ||
if line.count("@PATCH_VERSION@"): | ||
line = line.replace("@PATCH_VERSION@", str(patch)) | ||
if line.count("@PALPY_VERSION@"): | ||
line = line.replace("@PALPY_VERSION@", '"'+palpy_version+'"') | ||
outfh.write(line) | ||
|
||
outfh.close() | ||
|
@@ -147,7 +151,7 @@ | |
|
||
setup( | ||
name="palpy", | ||
version="1.8.0", | ||
version=palpy_version, | ||
author="Tim Jenness", | ||
author_email="[email protected]", | ||
license="GPL", | ||
|