From afde00d59497f57d610aa59e3a12e3905468fcd6 Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Wed, 22 Jun 2016 16:17:07 -0700 Subject: [PATCH] release 1.0.0 --- devtools/conda-recipe/meta.yaml | 4 ++-- devtools/travis-ci/build_docs.sh | 2 +- devtools/travis-ci/update_versions_json.py | 10 +++++++--- setup.py | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/devtools/conda-recipe/meta.yaml b/devtools/conda-recipe/meta.yaml index 4b9f0bb..f3cff91 100644 --- a/devtools/conda-recipe/meta.yaml +++ b/devtools/conda-recipe/meta.yaml @@ -1,6 +1,6 @@ package: - name: osprey-dev - version: "1.0.0.dev0" + name: osprey + version: "1.0.0" source: path: ../../ diff --git a/devtools/travis-ci/build_docs.sh b/devtools/travis-ci/build_docs.sh index 12a7a78..c3336e2 100755 --- a/devtools/travis-ci/build_docs.sh +++ b/devtools/travis-ci/build_docs.sh @@ -6,7 +6,7 @@ set -ev # Install the built package conda create --yes -n docenv python=$CONDA_PY source activate docenv -conda install -yq --use-local osprey-dev +conda install -yq --use-local osprey # We don't use conda for these: # sphinx_rtd_theme's latest releases are not available diff --git a/devtools/travis-ci/update_versions_json.py b/devtools/travis-ci/update_versions_json.py index c63bea9..5933912 100644 --- a/devtools/travis-ci/update_versions_json.py +++ b/devtools/travis-ci/update_versions_json.py @@ -1,4 +1,6 @@ +import os import json + try: from urllib.request import urlopen except ImportError: @@ -10,7 +12,8 @@ exit(0) URL = 'http://www.msmbuilder.org/osprey' -versions = json.load(urlopen(URL + '/versions.json')) +res = urlopen(URL + '/versions.json') +versions = json.loads(res.read().decode('utf-8')) # new release so all the others are now old for i in range(len(versions)): @@ -21,6 +24,7 @@ 'url': "{base}/{version}".format(base=URL, version=version.short_version), 'latest': True}) -with open("doc/_deploy/versions.json", 'w') as versionf: +curpath = os.path.abspath(os.curdir) +savepath = os.path.join(curpath, "docs/_deploy/versions.json") +with open(savepath, 'w') as versionf: json.dump(versions, versionf) - diff --git a/setup.py b/setup.py index 6220876..a1eb622 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ from setuptools import setup, find_packages from basesetup import write_version_py -VERSION = '1.0.0.dev0' -ISRELEASED = False +VERSION = '1.0.0' +ISRELEASED = True __version__ = VERSION def main(**kwargs):