Skip to content

Commit

Permalink
Merge pull request #28 from kain88-de/anaconda
Browse files Browse the repository at this point in the history
conda build scripts (closes #27)
  • Loading branch information
kain88-de committed Mar 3, 2016
2 parents 75ae094 + b00bbe2 commit f1ba9cb
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
22 changes: 22 additions & 0 deletions MAINTAINER.md
Original file line number Diff line number Diff line change
@@ -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 <where conda build the package>`.
To upload to the MDAnalysis channel add the flag `-u MDAnalysis`
2 changes: 1 addition & 1 deletion gridData/tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from gridData import Grid

from ..tests import module_not_found
from gridData.tests import module_not_found

class TestGrid:

Expand Down
50 changes: 50 additions & 0 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f1ba9cb

Please sign in to comment.