From 847370c93564626306c475093e1136a9e7ae6ed5 Mon Sep 17 00:00:00 2001 From: Kyle Wilcox Date: Fri, 13 Jan 2017 16:14:37 -0500 Subject: [PATCH] Add conda recipe and release script --- conda-recipe/meta.yaml | 27 +++++++++++++++++++++++++++ release.sh | 23 +++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 conda-recipe/meta.yaml create mode 100755 release.sh diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml new file mode 100644 index 0000000..b448982 --- /dev/null +++ b/conda-recipe/meta.yaml @@ -0,0 +1,27 @@ +package: + name: pygc + version: "1.0.0" + +source: + path: ../ + +build: + number: 0 + script: python setup.py install --single-version-externally-managed --record=record.txt + +requirements: + build: + - python + - setuptools + run: + - python + - numpy + +test: + imports: + - pygc + +about: + home: https://github.com/axiom-data-science/pygc + license: MIT License + summary: Great Circle calculations for Python 2/3 using Vincenty's formulae diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..bbfa94c --- /dev/null +++ b/release.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo "No version specified, exiting" + exit 1 +fi + +# Set version to release +sed -i "s/^__version__ = .*/__version__ = \"$1\"/" pygc/__init__.py +sed -i "s/version: .*/version: \"$1\"/" conda-recipe/meta.yaml +echo $1 > VERSION + +# Commit release +git add pygc/__init__.py +git add conda-recipe/meta.yaml +git add VERSION +git commit -m "Release $1" + +# Tag +git tag $1 + +# Push to Git +git push --tags origin master