Skip to content

Commit

Permalink
Added conda.recipe directory (#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens authored and philippjfr committed Mar 12, 2018
1 parent fc6f253 commit 723e73e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions conda.recipe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Release Procedure

- Ensure all tests pass.

- Tag commit a PEP440 style tag (starting with the prefix 'v') and push to github

```bash
git tag -a vx.x.x -m 'Version x.x.x'
git push --tags
```

Example tags might include v1.9.3 v1.10.0a1 or v1.11.3b3

- Build conda packages
2 changes: 2 additions & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
$PYTHON setup.py --quiet install --single-version-externally-managed --record=record.txt
2 changes: 1 addition & 1 deletion meta.yaml → conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package:
version: {{ sdata['version'] }}

source:
path: .
path: ..

extra:
channels:
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def git_fetch(self, cmd='git', as_string=False):
self._commit = commit_argument
return

except IOError as e2:
except IOError:
if e1.args[1] == 'fatal: No names found, cannot describe anything.':
raise Exception("Cannot find any git version tags of format v*.*")
# If there is any other error, return (release value still useful)
Expand Down

0 comments on commit 723e73e

Please sign in to comment.