Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to autover #214

Merged
merged 8 commits into from Mar 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,5 +1,6 @@
include README.rst
include LICENSE.txt
include setup.py
include param/.version
recursive-include param *.py
recursive-include numbergen *.py
4 changes: 3 additions & 1 deletion conda.recipe/meta.yaml
@@ -1,6 +1,8 @@
{% set sdata = load_setup_py_data() %}

package:
name: param
version: {{ os.environ.get("VERSIONHACK") }}
version: {{ sdata['version'] }}

source:
path: ..
Expand Down
5 changes: 1 addition & 4 deletions numbergen/__init__.py
Expand Up @@ -13,10 +13,7 @@
import param


from param.version import Version
__version__ = Version(release=(1,5,1), fpath=__file__,
commit="$Format:%h$", reponame="param")

from param import __version__ # noqa: API import

class TimeAware(param.Parameterized):
"""
Expand Down
8 changes: 5 additions & 3 deletions param/__init__.py
Expand Up @@ -36,10 +36,12 @@
# only two required files.
try:
from .version import Version
__version__ = Version(release=(1,5,1), fpath=__file__,
commit="$Format:%h$", reponame="param")
_version = Version(fpath=__file__, archive_commit="$Format:%h$", reponame="param")
__version__ = str(_version)
except:
__version__ = '1.5.1-unknown'
import json
__version__ = json.load(open(os.path.join(os.path.split(__file__)[0],
'.version'), 'r'))['version_string']


dt_types = (dt.datetime,)
Expand Down