From 5b0f6dfc85fa92bcde9893102c7958f693bff281 Mon Sep 17 00:00:00 2001 From: Max Linke Date: Thu, 3 Mar 2016 22:41:15 +0100 Subject: [PATCH 1/2] Do not use relative imports in tests This makes it able to run them when they are not saved in the same directory as the gridData package. --- gridData/tests/test_grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridData/tests/test_grid.py b/gridData/tests/test_grid.py index 40dfde6..e195196 100644 --- a/gridData/tests/test_grid.py +++ b/gridData/tests/test_grid.py @@ -4,7 +4,7 @@ from gridData import Grid -from ..tests import module_not_found +from gridData.tests import module_not_found class TestGrid: From b00bbe27d0ea9924b30fd635c9e2279c8e2c5e56 Mon Sep 17 00:00:00 2001 From: Max Linke Date: Tue, 1 Mar 2016 22:29:23 +0100 Subject: [PATCH 2/2] Conda build script That is alone enough to produce a conda build. It also contains a short MAINTAINER.md explaining how to use this to publish new releases to conda. --- MAINTAINER.md | 22 ++++++++++++++++++++++ meta.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 MAINTAINER.md create mode 100644 meta.yaml diff --git a/MAINTAINER.md b/MAINTAINER.md new file mode 100644 index 0000000..683a870 --- /dev/null +++ b/MAINTAINER.md @@ -0,0 +1,22 @@ +How to build package +-------------------- +To build and run tests on the package for python 2/3 use the following command + + `conda build . --python 3.5 --python 2.7` + +To build the package the `meta.yaml` is building from the current source +directory + +If the build fails because `tempdir` is missing add the MDAnalysis channel +to your `.condarc`. + +Prepare for a release +--------------------- + +Update the version string in `meta.yaml` + +Pushing to official MDAnalysis channel +-------------------------------------- + +To upload to your own channel `anaconda upload `. +To upload to the MDAnalysis channel add the flag `-u MDAnalysis` diff --git a/meta.yaml b/meta.yaml new file mode 100644 index 0000000..3ca1ebc --- /dev/null +++ b/meta.yaml @@ -0,0 +1,50 @@ +package: + name: griddataformats + version: "0.3.2" + +source: + path: . + +build: + noarch_python: True + script: $PYTHON setup.py install + +requirements: + build: + - python + - setuptools + - six + - numpy + - scipy + + run: + - python + - six + - numpy + - scipy + +test: + # Python imports + imports: + - gridData + + requires: + # Put any additional test requirements here. For example + - nose + - tempdir + + files: + - gridData/tests + + commands: + - nosetests gridData + +about: + home: http://mdanalysis.org/GridDataFormats + license: LGPLv3 + license_file: COPYING.LESSER + summary: 'GridDataFormats provides the Python package gridData' + +# See +# http://docs.continuum.io/conda/build.html for +# more information about meta.yaml