Skip to content

Commit

Permalink
Merge 3f13788 into 2dca90b
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelsJP committed Feb 2, 2021
2 parents 2dca90b + 3f13788 commit a2952bc
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .condarc
@@ -0,0 +1,4 @@
channels:
- michaelsjp

show_channel_urls: True
16 changes: 16 additions & 0 deletions .github/workflows/conda-package.yml
@@ -0,0 +1,16 @@
name: Conda Package

on: [pull_request]

jobs:
publish:
runs-on: Ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: publish-to-conda
uses: MichaelsJP/conda-package-publish-action@v1.0.0
with:
subDir: 'conda.recipe'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
platforms: 'all'
override: true
8 changes: 6 additions & 2 deletions README.rst
Expand Up @@ -14,8 +14,12 @@
:target: https://badge.fury.io/py/openrouteservice
:alt: PyPI version

.. image:: https://anaconda.org/nilsnolde/openrouteservice/badges/installer/conda.svg
:target: https://conda.anaconda.org/nilsnolde/openrouteservice
.. image:: https://github.com/GIScience/openrouteservice-py/workflows/Conda%20Package/badge.svg?branch=master
:target: https://anaconda.org/MichaelsJP/openrouteservice
:alt: Conda Build

.. image:: https://anaconda.org/michaelsjp/openrouteservice/badges/installer/conda.svg
:target: https://anaconda.org/MichaelsJP/openrouteservice
:alt: Conda install

.. image:: https://mybinder.org/badge_logo.svg
Expand Down
3 changes: 3 additions & 0 deletions conda.recipe/bld.bat
@@ -0,0 +1,3 @@
cd %RECIPE_DIR%\..
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
2 changes: 2 additions & 0 deletions conda.recipe/build.sh
@@ -0,0 +1,2 @@
cd $RECIPE_DIR/..
$PYTHON setup.py install
43 changes: 43 additions & 0 deletions conda.recipe/meta.yaml
@@ -0,0 +1,43 @@
{% set name = "openrouteservice" %}
{% set version = "2.3.2" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
git_url: https://github.com/GIScience/openrouteservice-py.git
git_rev: "v{{ version }}"


requirements:
build:
- python>=3.4
- pip
- requests>=2.0
- nose>=1.0
- responses>=0.10
- coveralls>=1.7.0
- coverage>=4.5.0
run:
- requests>=2.0
test:
imports:
- openrouteservice
source_files:
- openrouteservice
- test
requires:
- nose>1.0
- requests>=2.0
- responses>=0.10
- coveralls>=1.7.0
- coverage>=4.5.0
commands:
- nosetests -v

about:
home: https://github.com/GIScience/openrouteservice-py
license: Apache
license_family: BSD
license_file: LICENSE

0 comments on commit a2952bc

Please sign in to comment.