Skip to content

Commit

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

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

on: [pull_request]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: publish-to-conda
uses: fcakyon/conda-publish-action@master
with:
subdir: 'conda.recipe'
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
platforms: 'win osx linux'
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
: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.0" %}

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 4e6419d

Please sign in to comment.