Commit 888e0533 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added conda recipe. Removed superfluous packages from environment*.yml. Updated .gitlab-ci.yml.

parent c8dae3d3
Pipeline #1681 failed with stages
in 1 minute and 18 seconds
...@@ -128,11 +128,13 @@ deploy_anaconda: ...@@ -128,11 +128,13 @@ deploy_anaconda:
- source /root/anaconda3/bin/activate - source /root/anaconda3/bin/activate
- conda install -y -q conda-build - conda install -y -q conda-build
- yum install -y patch # https://stackoverflow.com/questions/40392161/building-conda-skeleton-from-pypi-package-throws-error - yum install -y patch # https://stackoverflow.com/questions/40392161/building-conda-skeleton-from-pypi-package-throws-error
- conda skeleton pypi py_tools_ds --output-dir public/conda.recipe/py_tools_ds # create recipe # - conda skeleton pypi py_tools_ds --output-dir public/conda.recipe/py_tools_ds # create recipe
- conda config --set anaconda_upload yes # enable auto-upload to anaconda - conda config --set anaconda_upload yes # enable auto-upload to anaconda
#- anaconda logout #- anaconda logout
#- anaconda login --username ${ANACONDA_USER} --password ${ANACONDA_PASSWORD} #- anaconda login --username ${ANACONDA_USER} --password ${ANACONDA_PASSWORD}
- conda build -c conda-forge --token ${ANACONDA_TOKEN} public/conda.recipe/py_tools_ds # --output returns package name - conda build -c conda-forge -c defaults --token ${ANACONDA_TOKEN} --py=3.6 conda_recipe/meta.yaml
- conda build -c conda-forge -c defaults --token ${ANACONDA_TOKEN} --py=2.7 conda_recipe/meta.yaml
# - conda build -c conda-forge --token ${ANACONDA_TOKEN} public/conda.recipe/py_tools_ds # --output returns package name
# - conda build -c conda-forge --token ${ANACONDA_TOKEN} --python 3.6 --python 3.5 --python 3.4 --python 2.7 public/conda.recipe/py_tools_ds # --output returns package name # - conda build -c conda-forge --token ${ANACONDA_TOKEN} --python 3.6 --python 3.5 --python 3.4 --python 2.7 public/conda.recipe/py_tools_ds # --output returns package name
#- conda convert --platform all /home/jsmith/miniconda/conda-bld/linux-64/pyinstrument-0.13.1-py27_0.tar.bz2 #- conda convert --platform all /home/jsmith/miniconda/conda-bld/linux-64/pyinstrument-0.13.1-py27_0.tar.bz2
#-o outputdir/ #-o outputdir/
......
# it uses load_setup_py_data from conda_build.jinja_context to populate some fields
# with values fed from setuptools.
{% set data = load_setup_py_data() %}
{% set version = data.get('version') %}
package:
name: 'py_tools_ds'
version: {{ version }}
source:
path: ../
build:
number: 1
script: python setup.py install --single-version-externally-managed --record=record.txt
requirements:
build:
- python
- setuptools
- sphinx-argparse
run:
- python
- pyqt
- numpy
- gdal
- scikit-image
- rasterio
- pyproj
- lxml
- geopandas
- six
- spectral
test:
imports:
- py_tools_ds
- py_tools_ds.compatibility
- py_tools_ds.compatibility.python
- py_tools_ds.compression
- py_tools_ds.convenience
- py_tools_ds.db_tools
- py_tools_ds.dtypes
- py_tools_ds.environment
- py_tools_ds.geo
- py_tools_ds.geo.raster
- py_tools_ds.geo.vector
- py_tools_ds.io
- py_tools_ds.io.raster
- py_tools_ds.io.vector
- py_tools_ds.numeric
- py_tools_ds.processing
- py_tools_ds.similarity
- py_tools_ds.web
requires:
- coverage
- nose
- rednose
# - nose-htmloutput # pure pypi package -> needs conversion to conda package
about:
home: https://gitext.gfz-potsdam.de/danschef/py_tools_ds
license: GNU General Public License v3 (GPLv3)
license_family: GPL3
license_file: LICENSE
summary: A collection of Python tools by Daniel Scheffler.
doc_url: ''
dev_url: ''
extra:
recipe-maintainers: ''
...@@ -16,15 +16,8 @@ dependencies: ...@@ -16,15 +16,8 @@ dependencies:
- geopandas - geopandas
- ipython - ipython
- conda-build # for conda deployment - conda-build # for conda deployment
- conda-build-all
- pip: - pip:
- dicttoxml
- jsmin
- cerberus
- pyprind
- pint
- iso8601
- tqdm
- mpld3
- sphinx-argparse - sphinx-argparse
- six - six
- spectral - spectral
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment