Skip to content

Commit f321cd8

Browse files
committed
Merge branch 'add-publish-git-action' into main
2 parents 7d6b986 + 03a9a7d commit f321cd8

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

.github/workflows/publish.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: "3.7"
19+
- name: Install dependencies
20+
run: |
21+
sudo apt install -y proj-bin
22+
python -m pip install --upgrade pip
23+
pip install poetry
24+
poetry env use system
25+
poetry install
26+
- name: Build package
27+
run: |
28+
poetry env use system
29+
poetry build
30+
- name: Publish package
31+
run: |
32+
poetry env use system
33+
poetry config pypi-token.pypi secrets.PYPI_TOKEN
34+
poetry publish

README.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# mapservice-clientlib
22

3-
[![Build Status](https://api.travis-ci.com/consbio/mapservice-clientlib.png?branch=main)](https://app.travis-ci.com/github/consbio/mapservice-clientlib)
3+
![Published](https://github.com/consbio/mapservice-clientlib/actions/workflows/publish.yml/badge.svg)
44
[![Coverage Status](https://coveralls.io/repos/github/consbio/mapservice-clientlib/badge.svg?branch=main)](https://coveralls.io/github/consbio/mapservice-clientlib?branch=main)
55

6-
76
A library to make web service calls to map service REST APIs easier. Currently supported:
87

9-
* ArcGIS (version 10.1 and greater)
10-
* THREDDS
11-
* WMS / NcWMS (versions 1.1.1 and 1.3.0)
12-
* ScienceBase
8+
- ArcGIS (version 10.1 and greater)
9+
- THREDDS
10+
- WMS / NcWMS (versions 1.1.1 and 1.3.0)
11+
- ScienceBase
1312

1413
Each leverages the [restle](https://github.com/consbio/restle) library to represent queried map service data as Python objects.
1514
Each also provides some default functionality for rendering projected map service data as images, which may be overridden per class as needed.
@@ -20,12 +19,10 @@ Beyond this are some utilities for working with images (PIL) and extents (mostly
2019

2120
Install with `pip install mapservice-clientlib`.
2221

23-
2422
## Usage
2523

2624
Below are some examples of each supported map service web API standard:
2725

28-
2926
### ArcGIS Resources
3027

3128
ArcGIS Map, Feature and Image services may be queried.
@@ -72,7 +69,6 @@ client = GeometryServiceClient(geometry_url)
7269
extent = client.project_extent(old_extent, {'wkid': 3857}).limit_to_global_extent()
7370
```
7471

75-
7672
### WMS
7773

7874
WMS services may be queried, with support for NcWMS
@@ -99,7 +95,6 @@ wms_image = WMSResource.get(
9995
)
10096
```
10197

102-
10398
### THREDDS
10499

105100
THREDDS resources may be queried, with metadata from related WMS endpoint:
@@ -126,7 +121,6 @@ thredds_image = client.get_image(
126121
)
127122
```
128123

129-
130124
### ScienceBase
131125

132126
Public and private ScienceBase items may be queried:
@@ -179,7 +173,6 @@ client = ScienceBaseResource.get(
179173
client.service_client.full_extent # ArcGISResource.full_extent
180174
```
181175

182-
183176
### Extent Utilities
184177

185178
Extent objects have a number of useful methods. Here are some examples that support projection:

0 commit comments

Comments
 (0)