Skip to content

Commit

Permalink
Add conda recipe and release script
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Jan 13, 2017
1 parent 7b2fe02 commit 847370c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
27 changes: 27 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 847370c

Please sign in to comment.