Skip to content

Commit ab0cf16

Browse files
authored
add automated conda build and publish (#56)
1 parent 2dca90b commit ab0cf16

File tree

7 files changed

+79
-4
lines changed

7 files changed

+79
-4
lines changed

.condarc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
channels:
2+
- michaelsjp
3+
4+
show_channel_urls: True

.github/workflows/ci-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: tests
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
66
build:

.github/workflows/conda-package.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Conda Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: Ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: publish-to-conda
14+
uses: MichaelsJP/[email protected]
15+
with:
16+
subDir: 'conda.recipe'
17+
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
18+
platforms: 'all'
19+
override: true

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414
:target: https://badge.fury.io/py/openrouteservice
1515
:alt: PyPI version
1616

17-
.. image:: https://anaconda.org/nilsnolde/openrouteservice/badges/installer/conda.svg
18-
:target: https://conda.anaconda.org/nilsnolde/openrouteservice
19-
:alt: Conda install
17+
.. image:: https://github.com/GIScience/openrouteservice-py/workflows/Conda%20Package/badge.svg?branch=master
18+
:target: https://anaconda.org/MichaelsJP/openrouteservice
19+
:alt: Conda Build
20+
21+
.. image:: https://anaconda.org/michaelsjp/openrouteservice/badges/version.svg
22+
:target: https://anaconda.org/MichaelsJP/openrouteservice
23+
:alt: Conda Version
2024

2125
.. image:: https://mybinder.org/badge_logo.svg
2226
:target: https://mybinder.org/v2/gh/GIScience/openrouteservice-py/master?filepath=examples%2Fbasic_example.ipynb

conda.recipe/bld.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd %RECIPE_DIR%\..
2+
"%PYTHON%" setup.py install
3+
if errorlevel 1 exit 1

conda.recipe/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd $RECIPE_DIR/..
2+
$PYTHON setup.py install

conda.recipe/meta.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{% set name = "openrouteservice" %}
2+
{% set version = "2.3.2" %}
3+
4+
package:
5+
name: "{{ name|lower }}"
6+
version: "{{ version }}"
7+
8+
source:
9+
git_url: https://github.com/GIScience/openrouteservice-py.git
10+
git_rev: "v{{ version }}"
11+
12+
13+
requirements:
14+
build:
15+
- python>=3.4
16+
- pip
17+
- requests>=2.0
18+
- nose>=1.0
19+
- responses>=0.10
20+
- coveralls>=1.7.0
21+
- coverage>=4.5.0
22+
run:
23+
- requests>=2.0
24+
test:
25+
imports:
26+
- openrouteservice
27+
source_files:
28+
- openrouteservice
29+
- test
30+
requires:
31+
- nose>1.0
32+
- requests>=2.0
33+
- responses>=0.10
34+
- coveralls>=1.7.0
35+
- coverage>=4.5.0
36+
commands:
37+
- nosetests -v
38+
39+
about:
40+
home: https://github.com/GIScience/openrouteservice-py
41+
license: Apache
42+
license_family: BSD
43+
license_file: LICENSE

0 commit comments

Comments
 (0)