From 6cc0d18313d5ac5b191acb359c73cc1d0c3acc8f Mon Sep 17 00:00:00 2001 From: Roger Labbe Date: Sun, 19 Jun 2016 20:10:42 -0700 Subject: [PATCH] Updated conda build. Also fixed instructions per github issue #29. --- conda/conda_install.txt | 1 + conda/filterpy/bld.bat | 8 +++++ conda/filterpy/build.sh | 9 +++++ conda/filterpy/meta.yaml | 77 ++++++++++++++++++++++++++++++++++++++++ conda/meta.yaml | 8 ++--- 5 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 conda/filterpy/bld.bat create mode 100644 conda/filterpy/build.sh create mode 100644 conda/filterpy/meta.yaml diff --git a/conda/conda_install.txt b/conda/conda_install.txt index 55ef47e..0388939 100644 --- a/conda/conda_install.txt +++ b/conda/conda_install.txt @@ -16,6 +16,7 @@ $ conda config --set anaconda_upload no $ cd ~/Dropbox/filterpy/conda $ edit meta.yaml, update version # +$ conda skeleton pypi --version 0.1.2 filterpy $ conda build . $ conda convert --platform all ~/anaconda3/conda-bld/linux-64/filterpy-0.1.2-0.tar.bz2 diff --git a/conda/filterpy/bld.bat b/conda/filterpy/bld.bat new file mode 100644 index 0000000..8dc0676 --- /dev/null +++ b/conda/filterpy/bld.bat @@ -0,0 +1,8 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 + +:: Add more build steps here, if they are necessary. + +:: See +:: http://docs.continuum.io/conda/build.html +:: for a list of environment variables that are set during the build process. diff --git a/conda/filterpy/build.sh b/conda/filterpy/build.sh new file mode 100644 index 0000000..042acae --- /dev/null +++ b/conda/filterpy/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +$PYTHON setup.py install + +# Add more build steps here, if they are necessary. + +# See +# http://docs.continuum.io/conda/build.html +# for a list of environment variables that are set during the build process. diff --git a/conda/filterpy/meta.yaml b/conda/filterpy/meta.yaml new file mode 100644 index 0000000..e2f630b --- /dev/null +++ b/conda/filterpy/meta.yaml @@ -0,0 +1,77 @@ +package: + name: filterpy + version: "0.1.3" + +source: + fn: filterpy-0.1.3.tar.gz + url: https://pypi.python.org/packages/75/df/5dbf357a3da1b49af18b2be00da15c7f86397b5b263bea1b9d65b5bd51cf/filterpy-0.1.3.tar.gz + md5: ba1e6fb84efaae3d21a73ba9fb563cab +# patches: + # List any patch files here + # - fix.patch + +# build: + # noarch_python: True + # preserve_egg_dir: True + # entry_points: + # Put any entry points (scripts to be generated automatically) here. The + # syntax is module:function. For example + # + # - filterpy = filterpy:main + # + # Would create an entry point called filterpy that calls filterpy.main() + + + # If this is a new build for the same version, increment the build + # number. If you do not include this key, it defaults to 0. + # number: 1 + +requirements: + build: + - python + - setuptools + - numpy + - scipy + - matplotlib + + run: + - python + - numpy + - scipy + - matplotlib + +test: + # Python imports + imports: + - filterpy + - filterpy.common + - filterpy.discrete_bayes + - filterpy.examples + - filterpy.gh + - filterpy.hinfinity + - filterpy.kalman + - filterpy.leastsq + - filterpy.memory + - filterpy.monte_carlo + - filterpy.stats + + # commands: + # You can put test commands to be run here. Use this to test that the + # entry points work. + + + # You can also put a file called run_test.py in the recipe that will be run + # at test time. + + # requires: + # Put any additional test requirements here. For example + # - nose + +about: + home: https://github.com/rlabbe/filterpy + license: MIT License + summary: 'Kalman filtering and optimal estimation library' + +# See +# http://docs.continuum.io/conda/build.html for +# more information about meta.yaml diff --git a/conda/meta.yaml b/conda/meta.yaml index b65a5aa..0086547 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,11 +1,11 @@ package: name: filterpy - version: "0.1.2" + version: "0.1.3" source: - fn: filterpy-0.1.2.tar.gz - url: https://pypi.python.org/packages/source/f/filterpy/filterpy-0.1.2.tar.gz - md5: 15941385b73ec4e6d72f306d1c5b4621 + fn: filterpy-0.1.3.tar.gz + url: https://pypi.python.org/packages/source/f/filterpy/filterpy-0.1.3.tar.gz + md5: ba1e6fb84efaae3d21a73ba9fb563cab # patches: # List any patch files here # - fix.patch