Skip to content

Commit

Permalink
Change repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
abarciauskas-bgse committed May 24, 2024
1 parent 2757a65 commit ab31e93
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 49 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ on:
workflow_dispatch:
push:
branches:
- main
- develop
- main
- develop
tags:
- '*'
- "*"
paths:
# Only run test and docker publish if some code have changed
- 'pyproject.toml'
- 'titiler/**'
- '.pre-commit-config.yaml'
- '.github/workflows/ci.yml'
- "pyproject.toml"
- "titiler/**"
- ".pre-commit-config.yaml"
- ".github/workflows/ci.yml"

# Run tests on pull requests.
pull_request:
branches:
- main
env:
LATEST_PY_VERSION: '3.12'

LATEST_PY_VERSION: "3.12"

jobs:
tests:
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref == 'main' || github.event_name != 'pull_request'
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -59,13 +61,12 @@ jobs:
name: ${{ matrix.python-version }}
fail_ci_if_error: false


publish-docker:
needs: [tests]
# runs on push to main, on tag creation, and on release
if: github.ref == 'refs/heads/main' || startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -98,7 +99,7 @@ jobs:
file: dockerfiles/Dockerfile
push: true
tags: |
ghcr.io/developmentseed/titiler-stacapi:latest
ghcr.io/developmentseed/titiler-stacapi-mspc:latest
# Push `{VERSION}` when pushing a new tag
- name: Build and push tag
Expand All @@ -110,4 +111,4 @@ jobs:
file: dockerfiles/Dockerfile
push: true
tags: |
ghcr.io/developmentseed/titiler-stacapi:${{ steps.tag.outputs.version }}
ghcr.io/developmentseed/titiler-stacapi-mspc:${{ steps.tag.outputs.version }}
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# titiler-stacapi-mspc

<p align="center">
<img width="800" src="https://github.com/developmentseed/titiler-stacapi/assets/10407788/bb54162e-9a47-4a67-99e5-6dc91098e048">
<img width="800" src="https://github.com/developmentseed/titiler-stacapi-mspc/assets/10407788/bb54162e-9a47-4a67-99e5-6dc91098e048">
<p align="center">Connect titiler to MS Planetary Computer STAC API</p>
</p>

<p align="center">
<a href="https://github.com/developmentseed/titiler-stacapi/actions?query=workflow%3ACI" target="_blank">
<img src="https://github.com/developmentseed/titiler-stacapi/workflows/CI/badge.svg" alt="Test">
<a href="https://github.com/developmentseed/titiler-stacapi-mspc/actions?query=workflow%3ACI" target="_blank">
<img src="https://github.com/developmentseed/titiler-stacapi-mspc/workflows/CI/badge.svg" alt="Test">
</a>
<a href="https://codecov.io/gh/developmentseed/titiler-stacapi" target="_blank">
<img src="https://codecov.io/gh/developmentseed/titiler-stacapi/branch/main/graph/badge.svg" alt="Coverage">
<a href="https://codecov.io/gh/developmentseed/titiler-stacapi-mspc" target="_blank">
<img src="https://codecov.io/gh/developmentseed/titiler-stacapi-mspc/branch/main/graph/badge.svg" alt="Coverage">
</a>
<a href="https://github.com/developmentseed/titiler-stacapi/blob/main/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/developmentseed/titiler-stacapi.svg" alt="License">
<a href="https://github.com/developmentseed/titiler-stacapi-mspc/blob/main/LICENSE" target="_blank">
<img src="https://img.shields.io/github/license/developmentseed/titiler-stacapi-mspc.svg" alt="License">
</a>
</p>

---

**Documentation**: <a href="https://developmentseed.org/titiler-stacapi/" target="_blank">https://developmentseed.org/titiler-stacapi/</a>
**Documentation**: <a href="https://developmentseed.org/titiler-stacapi-mspc/" target="_blank">https://developmentseed.org/titiler-stacapi-mspc/</a>

**Source Code**: <a href="https://github.com/developmentseed/titiler-stacapi" target="_blank">https://github.com/developmentseed/titiler-stacapi</a>
**Source Code**: <a href="https://github.com/developmentseed/titiler-stacapi-mspc" target="_blank">https://github.com/developmentseed/titiler-stacapi-mspc</a>

---

Expand All @@ -30,8 +30,8 @@
Install from sources and run for development:

```
$ git clone https://github.com/developmentseed/titiler-stacapi.git
$ cd titiler-stacapi
$ git clone https://github.com/developmentseed/titiler-stacapi-mspc.git
$ cd titiler-stacapi-mspc
$ python -m pip install -e .
```

Expand All @@ -52,29 +52,29 @@ uvicorn titiler.stacapi.main:app --port 8000
### Using Docker

```
$ git clone https://github.com/developmentseed/titiler-stacapi.git
$ cd titiler-stacapi
$ git clone https://github.com/developmentseed/titiler-stacapi-mspc.git
$ cd titiler-stacapi-mspc
$ docker-compose up --build api
```

It runs `titiler.stacapi` using Gunicorn web server.

### How it works

![](https://github.com/developmentseed/titiler-stacapi/assets/10407788/2e53bfe3-402a-4c57-bf61-c055e32f1362)
![](https://github.com/developmentseed/titiler-stacapi-mspc/assets/10407788/2e53bfe3-402a-4c57-bf61-c055e32f1362)

## Contribution & Development

See [CONTRIBUTING.md](https://github.com//developmentseed/titiler-stacapi/blob/main/CONTRIBUTING.md)
See [CONTRIBUTING.md](https://github.com//developmentseed/titiler-stacapi-mspc/blob/main/CONTRIBUTING.md)

## License

See [LICENSE](https://github.com//developmentseed/titiler-stacapi/blob/main/LICENSE)
See [LICENSE](https://github.com//developmentseed/titiler-stacapi-mspc/blob/main/LICENSE)

## Authors

See [contributors](https://github.com/developmentseed/titiler-stacapi/graphs/contributors) for a listing of individual contributors.
See [contributors](https://github.com/developmentseed/titiler-stacapi-mspc/graphs/contributors) for a listing of individual contributors.

## Changes

See [CHANGES.md](https://github.com/developmentseed/titiler-stacapi/blob/main/CHANGES.md).
See [CHANGES.md](https://github.com/developmentseed/titiler-stacapi-mspc/blob/main/CHANGES.md).
6 changes: 3 additions & 3 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ site_description: Connect titiler to STAC APIs.
docs_dir: "src"
site_dir: "build"

repo_name: developmentseed/titiler-stacapi
repo_url: https://github.com/developmentseed/titiler-stacapi
repo_name: developmentseed/titiler-stacapi-mspc
repo_url: https://github.com/developmentseed/titiler-stacapi-mspc
edit_uri: blob/main/docs/
site_url: https://developmentseed.org/titiler-stacapi/
site_url: https://developmentseed.org/titiler-stacapi-mspc/

extra:
social:
Expand Down
4 changes: 1 addition & 3 deletions docs/src/endpoints/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---

title: Endpoints

---

<p align="center">
<img alt="titiler-pgstac OpenAPI documentation" src="https://github.com/developmentseed/titiler-stacapi/assets/10407788/a4a7619f-8929-41d8-9a0e-26419013b5a8"/>
<img alt="titiler-stacapi OpenAPI documentation" src="https://github.com/developmentseed/titiler-stacapi/assets/10407788/a4a7619f-8929-41d8-9a0e-26419013b5a8"/>
</p>

By default the main application (`titiler.pgstac.main.app`) provides three sets of endpoints:
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ test = [
]

[project.urls]
Homepage = 'https://developmentseed.org/titiler-stacapi/'
Documentation = "https://developmentseed.org/titiler-stacapi/"
Issues = "https://github.com/developmentseed/titiler-stacapi/issues"
Source = "https://github.com/developmentseed/titiler-stacapi"
Changelog = "https://developmentseed.org/titiler-stacapi/release-notes/"
Homepage = 'https://developmentseed.org/titiler-stacapi-mspc/'
Documentation = "https://developmentseed.org/titiler-stacapi-mspc/"
Issues = "https://github.com/developmentseed/titiler-stacapi-mspc/issues"
Source = "https://github.com/developmentseed/titiler-stacapi-mspc"
Changelog = "https://developmentseed.org/titiler-stacapi-mspc/release-notes/"

[build-system]
requires = ["pdm-pep517"]
Expand Down
12 changes: 6 additions & 6 deletions titiler/stacapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
---
**Documentation**: <a href="https://developmentseed.org/titiler-stacapi/" target="_blank">https://developmentseed.org/titiler-stacapi/</a>
**Documentation**: <a href="https://developmentseed.org/titiler-stacapi-mspc/" target="_blank">https://developmentseed.org/titiler-stacapi-mspc/</a>
**Source Code**: <a href="https://github.com/developmentseed/titiler-stacapi" target="_blank">https://github.com/developmentseed/titiler-stacapi</a>
**Source Code**: <a href="https://github.com/developmentseed/titiler-stacapi-mspc" target="_blank">https://github.com/developmentseed/titiler-stacapi-mspc</a>
---
""",
Expand Down Expand Up @@ -189,14 +189,14 @@ def landing(
rel="data",
),
models.Link(
title="TiTiler-STACAPI Documentation (external link)",
href="https://developmentseed.org/titiler-stacapi/",
title="titiler-stacapi-mspc Documentation (external link)",
href="https://developmentseed.org/titiler-stacapi-mspc/",
type=MediaType.html,
rel="doc",
),
models.Link(
title="TiTiler-STACAPI source code (external link)",
href="https://github.com/developmentseed/titiler-stacapi",
title="titiler-stacapi-mspc source code (external link)",
href="https://github.com/developmentseed/titiler-stacapi-mspc",
type=MediaType.html,
rel="doc",
),
Expand Down

0 comments on commit ab31e93

Please sign in to comment.