From 96d3e73e175fa35225f1df992641f268793a7770 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 4 Jan 2017 09:26:19 -0500 Subject: [PATCH] Use conda skeleton for pytables. --- conda/pytables/meta.yaml | 26 --------- conda/{pytables => tables}/bld.bat | 2 +- conda/{pytables => tables}/build.sh | 2 +- conda/tables/meta.yaml | 81 +++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 28 deletions(-) delete mode 100644 conda/pytables/meta.yaml rename conda/{pytables => tables}/bld.bat (87%) rename conda/{pytables => tables}/build.sh (88%) create mode 100644 conda/tables/meta.yaml diff --git a/conda/pytables/meta.yaml b/conda/pytables/meta.yaml deleted file mode 100644 index 3136cc10..00000000 --- a/conda/pytables/meta.yaml +++ /dev/null @@ -1,26 +0,0 @@ -package: - name: pytables - version: "3.3.0" - -source: - fn: tables-3.3.0.tar.gz - url: https://pypi.python.org/packages/97/eb/ea2102f5a210a62f9f7387cf9912cb841f4a9089dbb232e642daa2626769/tables-3.3.0.tar.gz - md5: f75aa46cf6e7c5ee51f1ab498d5895f8 - -requirements: - build: - - python - - numpy x.x - - numexpr x.x - - six - - run: - - python - - numpy x.x - - numexpr x.x - - six - -test: - # Python imports - imports: - - tables diff --git a/conda/pytables/bld.bat b/conda/tables/bld.bat similarity index 87% rename from conda/pytables/bld.bat rename to conda/tables/bld.bat index 87b1481d..9146a4bf 100644 --- a/conda/pytables/bld.bat +++ b/conda/tables/bld.bat @@ -1,4 +1,4 @@ -"%PYTHON%" setup.py install +"%PYTHON%" setup.py install if errorlevel 1 exit 1 :: Add more build steps here, if they are necessary. diff --git a/conda/pytables/build.sh b/conda/tables/build.sh similarity index 88% rename from conda/pytables/build.sh rename to conda/tables/build.sh index 4d7fc032..3f50b74e 100644 --- a/conda/pytables/build.sh +++ b/conda/tables/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -$PYTHON setup.py install +$PYTHON setup.py install # Add more build steps here, if they are necessary. diff --git a/conda/tables/meta.yaml b/conda/tables/meta.yaml new file mode 100644 index 00000000..045f5c48 --- /dev/null +++ b/conda/tables/meta.yaml @@ -0,0 +1,81 @@ +package: + name: tables + version: "3.3.0" + +source: + fn: tables-3.3.0.tar.gz + url: https://pypi.python.org/packages/97/eb/ea2102f5a210a62f9f7387cf9912cb841f4a9089dbb232e642daa2626769/tables-3.3.0.tar.gz + md5: f75aa46cf6e7c5ee51f1ab498d5895f8 +# 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 + # + # - tables = tables:main + # + # Would create an entry point called tables that calls tables.main() + + - ptdump = tables.scripts.ptdump:main + - ptrepack = tables.scripts.ptrepack:main + - pt2to3 = tables.scripts.pt2to3:main + - pttree = tables.scripts.pttree: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 >=1.8.0 + - numexpr >=2.5.2 + - six + + run: + - python + - numpy >=1.8.0 + - numexpr >=2.5.2 + - six + +test: + # Python imports + imports: + - tables + - tables.misc + - tables.nodes + - tables.nodes.tests + - tables.scripts + - tables.tests + + commands: + # You can put test commands to be run here. Use this to test that the + # entry points work. + + - ptdump --help + - ptrepack --help + - pt2to3 --help + - pttree --help + + # 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: http://www.pytables.org/ + license: BSD License + summary: 'Hierarchical datasets for Python' + license_family: BSD + +# See +# http://docs.continuum.io/conda/build.html for +# more information about meta.yaml