Skip to content

Commit 8ed51e4

Browse files
authored
Merge pull request #24 from Chilipp/versioneer
use versioneer for version control
2 parents 21d4e1b + 7df7d45 commit 8ed51e4

File tree

11 files changed

+2394
-17
lines changed

11 files changed

+2394
-17
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
psyplot_gui/_version.py export-subst

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ include psyplot_gui/sphinx_supp/conf.py
55
include psyplot_gui/sphinx_supp/psyplot.rst
66
include psyplot_gui/icons/*.png
77
include psyplot_gui/icons/*.svg
8+
include versioneer.py
9+
include psyplot_gui/_version.py

ci/conda-recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source:
1010

1111
build:
1212
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
13-
string: py{{ environ.get('CONDA_PY') }}_{{ environ.get('GIT_BUILD_STR', '') }}{% if environ.get('GIT_BRANCH') %}_{{ environ.get('GIT_BRANCH').replace('-', '') }}{% endif %}{% if environ.get("BUILD_STR_END") %}_{{ environ.get("BUILD_STR_END") }}{% endif %}
13+
string: py{{ environ.get('CONDA_PY') }}{% if environ.get("BUILD_STR_END") %}_{{ environ.get("BUILD_STR_END") }}{% endif %}
1414
skip: true # [py == 27]
1515

1616
requirements:

psyplot_gui/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
from psyplot.docstring import docstrings
2424
from psyplot.warning import warn
2525
from psyplot.compat.pycompat import map
26-
from psyplot_gui.version import __version__
26+
27+
28+
from ._version import get_versions
29+
__version__ = get_versions()['version']
30+
del get_versions
31+
2732

2833
from psyplot.compat.pycompat import get_default_value
2934

0 commit comments

Comments
 (0)