-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from stac-utils/tests/rde/ingest-issue
Add dockerized development environment; pypgstac testing; CI - fix issue with ingest
- Loading branch information
Showing
26 changed files
with
681 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203, W503, E731, E722 | ||
per-file-ignores = __init__.py:F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Execute linters and test suites | ||
run: ./scripts/cibuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install release dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish package | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_STACUTILS_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_STACUTILS_PASSWORD }} | ||
run: | | ||
scripts/cipublish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
.envrc | ||
pypgstac/dist | ||
*.pyc | ||
*.egg-info | ||
*.eggs | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.8-slim | ||
|
||
ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt | ||
|
||
RUN mkdir -p /opt/src/pypgstac | ||
|
||
WORKDIR /opt/src/pypgstac | ||
|
||
COPY pypgstac/requirements-dev.txt /opt/src/pypgstac/requirements-dev.txt | ||
RUN pip install -r requirements-dev.txt | ||
|
||
COPY pypgstac /opt/src/pypgstac | ||
RUN pip install . | ||
|
||
ENV PYTHONPATH=/opt/src/pypgstac:${PYTHONPATH} | ||
|
||
WORKDIR /opt/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
services: | ||
dev: | ||
container_name: pgstac-dev | ||
image: pgstac-dev | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
depends_on: | ||
- database | ||
volumes: | ||
- ./:/opt/src | ||
environment: | ||
- PGUSER=username | ||
- PGPASSWORD=password | ||
- PGHOST=database | ||
- PGDATABASE=postgis | ||
database: | ||
container_name: pgstac-db | ||
image: pgstac-db | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
environment: | ||
- POSTGRES_USER=username | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=postgis | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- pgstac-pgdata:/var/lib/postgresql/data | ||
- ./:/opt/src | ||
volumes: | ||
pgstac-pgdata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
disallow_untyped_defs = True | ||
namespace_packages = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ BEGIN; | |
\i sql/002_collections.sql | ||
\i sql/003_items.sql | ||
\i sql/004_search.sql | ||
\i sql/999_version.sql | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.2.7' | ||
__version__ = "0.2.7" |
Oops, something went wrong.