Commit 78ff99bc authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Revised conda recipe and requirements.

parent e256556e
Pipeline #3686 passed with stages
in 2 minutes and 25 seconds
......@@ -130,7 +130,8 @@ deploy_anaconda:
- test_py_tools_ds
script:
- source /root/miniconda3/bin/activate
- conda install -y -q conda-build anaconda-client
# install conda-build for conda deployment and anaconda-client for conda-upload
- conda install -y -q conda-build conda-build-all anaconda-client
- 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 config --set anaconda_upload yes # enable auto-upload to anaconda
......
......@@ -2,3 +2,4 @@ python:
- 2.7
- 3.5
- 3.6
- 3.7
# 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') %}
{% set setup_py_data = load_setup_py_data() %}
{% set version = setup_py_data.get('version') %}
package:
name: 'py_tools_ds'
version: {{ version }}
name: {{ setup_py_data.get('name') }}
version: {{ setup_py_data.get('version') }}
source:
path: ../
......@@ -17,19 +17,22 @@ build:
requirements:
build:
# packages used by setup.py to install this package (may also contain compilers for non-python code)
- python {{ python }} # reads python versions to build from conda_build_config.yaml
- setuptools
- sphinx-argparse
run:
# packages that must be installed in the user's environment to run the package
- python
- pyqt
- numpy
- gdal
- scikit-image
- rasterio
- pyproj
- lxml
- geopandas
- numpy
- pandas
- pyproj
- pyresample
- rasterio
- scikit-image
- shapely
- six
- spectral
......@@ -56,15 +59,17 @@ test:
requires:
- coverage
- nose
- nose2
- rednose
# - nose-htmloutput # pure pypi package -> needs conversion to conda package
- pip:
- 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)
home: {{ setup_py_data.get('url') }}
license: {{ setup_py_data.get('license') }}
license_family: GPL3
license_file: LICENSE
summary: A collection of Python tools by Daniel Scheffler.
summary: {{ setup_py_data.get('description') }}
doc_url: ''
dev_url: ''
......
......@@ -32,7 +32,7 @@ setup(
package_dir={'py_tools_ds': 'py_tools_ds'},
include_package_data=True,
install_requires=requirements,
license="GNU General Public License v3",
license="GNU General Public License v3 (GPLv3)",
zip_safe=False,
keywords='py_tools_ds',
classifiers=[
......@@ -47,6 +47,7 @@ setup(
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
test_suite='tests',
tests_require=test_requirements,
......
name: py_tools_ds
channels: &id1
- http://conda.anaconda.org/ioam # only for holoviews
- http://conda.anaconda.org/conda-forge
dependencies:
- python=3.*.*
- pyqt
- numpy
- gdal
- conda-forge::libgdal # force to use conda-forge for libgdal to avoid package version incompatiblies due to mixed channels (libkea.so.1.4.7: cannot open shared object file: No such file or directory)
......@@ -14,19 +12,14 @@ dependencies:
- scikit-image
- rasterio
- pyproj
- lxml
- geopandas
- ipython
- conda-build # for conda deployment
- conda-build-all
- anaconda-client # for conda upload
- pip:
- sphinx-argparse
- six
- spectral
- pyresample
- flake8
- pycodestyle<2.4.0 # fixes ImportError: module 'pycodestyle' has no attribute 'break_around_binary_operator'
- pycodestyle
- pylint
- pydocstyle
- nose
......
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