From a13bd9ea702bb659a1266d93d28ff63a6839fe89 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 7 Jan 2018 14:56:49 -0500 Subject: Backport from contrib (#86) --- glue-core/LICENSE | 13 ++++++++ glue-core/meta.yaml | 77 ++++++++++++++++++++++++++++++++++++++++++++ glue-ginga/bld.bat | 2 ++ glue-ginga/build.sh | 2 ++ glue-ginga/meta.yaml | 40 +++++++++++++++++++++++ glue-vispy-viewers/LICENSE | 13 ++++++++ glue-vispy-viewers/meta.yaml | 39 +++++++++++----------- glueviz/LICENSE | 13 ++++++++ glueviz/meta.yaml | 47 +++++++-------------------- 9 files changed, 190 insertions(+), 56 deletions(-) create mode 100644 glue-core/LICENSE create mode 100644 glue-core/meta.yaml create mode 100644 glue-ginga/bld.bat create mode 100644 glue-ginga/build.sh create mode 100644 glue-ginga/meta.yaml create mode 100644 glue-vispy-viewers/LICENSE create mode 100644 glueviz/LICENSE diff --git a/glue-core/LICENSE b/glue-core/LICENSE new file mode 100644 index 0000000..04ad21b --- /dev/null +++ b/glue-core/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/glue-core/meta.yaml b/glue-core/meta.yaml new file mode 100644 index 0000000..87c787d --- /dev/null +++ b/glue-core/meta.yaml @@ -0,0 +1,77 @@ +{% set name = 'glue-core' %} +{% set version = '0.12.0' %} +{% set number = '0' %} + +package: + name: {{ name }} + version: {{ version }} + +source: + fn: {{ name }}-{{ version }}.tar.gz + url: https://pypi.io/packages/source/g/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: db871285e9fe4ff0092d6803d573daa953ec9864b9128cd027cee97b2573e557 + +build: + number: {{ number }} + script: python setup.py install --single-version-externally-managed --record record.txt + entry_points: + - glue = glue.main:main + - glue-config = glue.config_gen:main + - glue-deps = glue._deps:main + osx_is_app: True + +requirements: + + build: + - python + - setuptools + - pyqt + + run: + + # The following is needed to make sure that the package works as a GUI + # application (glue needs to be run with python.app, not python) + - python.app # [osx] + + # Required dependencies + - python + - numpy >=1.9 + - pandas >=0.14 + - astropy >=1.3 + - matplotlib >=1.4 + - qtpy >=1.2 + - ipython >=4.0 + - ipykernel + - qtconsole + - dill >=0.2 + - xlrd >=1.0 + - h5py >=2.4 + - setuptools >=1.0 + - pyqt + + # Optional dependencies (defined in ``extras_require``) + - scipy + - scikit-image + - plotly + + # Temporary: the scikit-image conda package is missing the dask dependency + # so we add it here for now + - dask + +test: + imports: + - glue + - glue.core + - glue.app.qt + commands: + - glue --version + - glue-deps list + +# NOTE: we deliberatey do NOT include an app entry here, because we instead do this +# in the glueviz meta-package (we don't want glue to appear twice in the navigator) + +about: + home: http://glueviz.org + license: BSD 3-Clause + license_file: LICENSE + summary: Multi-dimensional linked data exploration diff --git a/glue-ginga/bld.bat b/glue-ginga/bld.bat new file mode 100644 index 0000000..85a7bc3 --- /dev/null +++ b/glue-ginga/bld.bat @@ -0,0 +1,2 @@ +%PYTHON% setup.py install +if errorlevel 1 exit 1 diff --git a/glue-ginga/build.sh b/glue-ginga/build.sh new file mode 100644 index 0000000..2038de1 --- /dev/null +++ b/glue-ginga/build.sh @@ -0,0 +1,2 @@ +echo > README.rst +$PYTHON setup.py install || exit 1 diff --git a/glue-ginga/meta.yaml b/glue-ginga/meta.yaml new file mode 100644 index 0000000..de1d000 --- /dev/null +++ b/glue-ginga/meta.yaml @@ -0,0 +1,40 @@ +{% set name = 'glue-ginga' %} +{% set version = '0.2' %} +{% set tag = 'v' + version %} +{% set number = '0' %} + +about: + home: https://github.com/ejeschke/{{ name }} + license: BSD + summary: Astronomical data visualization + +build: + number: {{ number }} + +package: + name: {{ name }} + version: {{ version }} + +requirements: + build: + - astropy >=1.2 + - glue-core >=0.11.1 + - glue-vispy-viewers >=0.8 + - ginga >=2.6.1 + - setuptools + - numpy + - python x.x + run: + - astropy >=1.2 + - glueviz >=0.10 + - ginga >=2.6.1 + - numpy + - python x.x + +source: + git_tag: {{ tag }} + git_url: https://github.com/ejeschke/{{ name }}.git + +test: + imports: + - glue_ginga diff --git a/glue-vispy-viewers/LICENSE b/glue-vispy-viewers/LICENSE new file mode 100644 index 0000000..04ad21b --- /dev/null +++ b/glue-vispy-viewers/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/glue-vispy-viewers/meta.yaml b/glue-vispy-viewers/meta.yaml index bcd35e3..2a61fa4 100644 --- a/glue-vispy-viewers/meta.yaml +++ b/glue-vispy-viewers/meta.yaml @@ -1,46 +1,45 @@ {% set name = 'glue-vispy-viewers' %} -{% set version = '0.4' %} -{% set number = '2' %} - -about: - home: https://github.com/glue-viz/glue-vispy-viewers - license: BSD 3-Clause - summary: 3D viewers for Glue +{% set version = "0.9" %} +{% set number = '0' %} package: name: {{ name }} version: {{ version }} source: - fn: {{ name }}-{{version}}.tar.gz + fn: {{ name }}-{{ version }}.tar.gz url: https://pypi.io/packages/source/g/glue-vispy-viewers/{{ name }}-{{ version }}.tar.gz - md5: ded543ba93070a71f322da650b792b16 + sha256: 8af81e184fc2ed43421f5be4affb88b9c190dd6c5ef14317821bd6b921c591d3 build: number: {{ number }} script: python setup.py install --single-version-externally-managed --record record.txt + preserve_egg_dir: True requirements: build: - - python {{ python }} + - python - setuptools + - numpy + - pyopengl + - glue-core >=0.12 run: - python - - numpy {{ numpy }} + - numpy - pyopengl - - glueviz - - scikit-image + - glue-core >=0.12 - matplotlib + - qtpy + - pyqt test: - requires: - - mock - - pytest imports: - glue_vispy_viewers + - glue_vispy_viewers.scatter + - glue_vispy_viewers.volume - -extra: - recipe-maintainers: - - astrofrog +about: + home: https://github.com/glue-viz/glue-vispy-viewers + license: BSD 3-Clause + summary: 3D viewers for Glue diff --git a/glueviz/LICENSE b/glueviz/LICENSE new file mode 100644 index 0000000..04ad21b --- /dev/null +++ b/glueviz/LICENSE @@ -0,0 +1,13 @@ +BSD 3-clause license +Copyright (c) conda-forge +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/glueviz/meta.yaml b/glueviz/meta.yaml index e1e5848..6657d4a 100644 --- a/glueviz/meta.yaml +++ b/glueviz/meta.yaml @@ -1,6 +1,10 @@ +# NOTE: this is a meta-package that includes the core glue code as well as stable +# plugins. This is the main conda package we want in the Navigator, so we add the +# app: entry here and not in the glue-core package. + {% set name = 'glueviz' %} -{% set version = '0.8.2' %} -{% set number = '2' %} +{% set version = '0.12.0' %} +{% set number = '0' %} package: name: {{ name }} @@ -8,43 +12,18 @@ package: source: fn: {{ name }}-{{ version }}.tar.gz - url: https://pypi.io/packages/source/g/glueviz/{{ name }}-{{ version }}.tar.gz - md5: 92dd7de2621a6ab6861cc9b689e86c3e + url: https://pypi.io/packages/source/g/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: 4b41b9bb41d88567e9fef76af545059ba9bb6c3a3645a07619fa5b1b47adbc5e build: number: {{ number }} script: python setup.py install --single-version-externally-managed --record record.txt - osx_is_app: True requirements: - build: - - python {{ python }} - run: - - python - - numpy {{ numpy }} - - scipy - - matplotlib - - astropy - - ipython - - ipykernel - - h5py - - pandas - - pyqt - - qtconsole - - xlrd - - scikit-image - - python.app # [osx] - -test: - requires: - - mock - - pytest - imports: - - glue - commands: - - glue --version - - glue-deps list + - glue-core >=0.12 + - glue-vispy-viewers >=0.9 + - glue-ginga app: entry: glue @@ -56,7 +35,3 @@ about: home: http://glueviz.org license: BSD 3-Clause summary: Multi-dimensional linked data exploration - -extra: - recipe-maintainers: - - astrofrog -- cgit