Skip to content

Create shared sfeos helpers module #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ jobs:
run: |
pip install ./stac_fastapi/core

- name: Install helpers library stac-fastapi
run: |
pip install ./stac_fastapi/sfeos_helpers

- name: Install elasticsearch stac-fastapi
run: |
pip install ./stac_fastapi/elasticsearch[dev,server]
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ jobs:
# Publish to PyPI
twine upload dist/*

- name: Build and publish sfeos_helpers
working-directory: stac_fastapi/sfeos_helpers
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
# Build package
python setup.py sdist bdist_wheel

# Publish to PyPI
twine upload dist/*

- name: Build and publish stac-fastapi-elasticsearch
working-directory: stac_fastapi/elasticsearch
env:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ pybase-install:
pip install -e ./stac_fastapi/api[dev] && \
pip install -e ./stac_fastapi/types[dev] && \
pip install -e ./stac_fastapi/extensions[dev] && \
pip install -e ./stac_fastapi/core
pip install -e ./stac_fastapi/core && \
pip install -e ./stac_fastapi/sfeos_helpers

.PHONY: install-es
install-es: pybase-install
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.ci.es
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && \
COPY . /app/

RUN pip3 install --no-cache-dir -e ./stac_fastapi/core && \
pip3 install --no-cache-dir -e ./stac_fastapi/sfeos_helpers && \
pip3 install --no-cache-dir ./stac_fastapi/elasticsearch[server]

USER root
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.ci.os
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && \
COPY . /app/

RUN pip3 install --no-cache-dir -e ./stac_fastapi/core && \
pip3 install --no-cache-dir -e ./stac_fastapi/sfeos_helpers && \
pip3 install --no-cache-dir ./stac_fastapi/opensearch[server]

USER root
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.deploy.es
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ WORKDIR /app
COPY . /app

RUN pip install --no-cache-dir -e ./stac_fastapi/core
RUN pip install --no-cache-dir -e ./stac_fastapi/sfeos_helpers
RUN pip install --no-cache-dir ./stac_fastapi/elasticsearch[server]

EXPOSE 8080
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.deploy.os
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ WORKDIR /app
COPY . /app

RUN pip install --no-cache-dir -e ./stac_fastapi/core
RUN pip install --no-cache-dir -e ./stac_fastapi/sfeos_helpers
RUN pip install --no-cache-dir ./stac_fastapi/opensearch[server]

EXPOSE 8080
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.dev.es
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ WORKDIR /app
COPY . /app

RUN pip install --no-cache-dir -e ./stac_fastapi/core
RUN pip install --no-cache-dir -e ./stac_fastapi/sfeos_helpers
RUN pip install --no-cache-dir -e ./stac_fastapi/elasticsearch[dev,server]
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.dev.os
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ WORKDIR /app
COPY . /app

RUN pip install --no-cache-dir -e ./stac_fastapi/core
RUN pip install --no-cache-dir -e ./stac_fastapi/sfeos_helpers
RUN pip install --no-cache-dir -e ./stac_fastapi/opensearch[dev,server]
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.docs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ WORKDIR /opt/src

RUN python -m pip install \
stac_fastapi/core \
stac_fastapi/sfeos_helpers \
stac_fastapi/elasticsearch \
stac_fastapi/opensearch

Expand Down
Loading