Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda build scripts (fixes #27) #28

Merged
merged 2 commits into from
Mar 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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