Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from lbdreyer/conda_recipe
Browse files Browse the repository at this point in the history
Add conda recipe
  • Loading branch information
pelson committed Dec 10, 2015
2 parents 4cfc196 + bb0f0b2 commit 0394986
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions conda-testenv.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install --single-version-externally-managed --record=record.txt
31 changes: 31 additions & 0 deletions conda-testenv.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% set data = load_setuptools() %}

package:
name: conda-testenv
version: {{data.get('version')}}

source:
path: ../

requirements:
build:
- python
- setuptools

run:
- python
- setuptools
- conda
- conda-build

test:
imports:
- conda_testenv
commands:
- conda-testenv --help
- conda-testenv --version
- conda testenv --help

about:
license: BSD-3
home: https://github.com/SciTools/conda-testenv
3 changes: 3 additions & 0 deletions conda_testenv/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
5 changes: 5 additions & 0 deletions conda_testenv/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse

import conda_testenv
import conda_testenv.test_env as test_env


Expand All @@ -8,6 +9,10 @@ def main():
'of all packages installed '
'in a conda environment')

parser.add_argument('--version', action='version',
version=conda_testenv.__version__,
help="Show conda-testenv's version, and exit.")

parser.add_argument('-p', dest='prefix')

args = parser.parse_args()
Expand Down

0 comments on commit 0394986

Please sign in to comment.