Skip to content
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

Sparrow Version 4 #339

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 0 additions & 15 deletions .devcontainer/devcontainer.json

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ _docker
.venv/

# Ignore files present on other branches
backend/shared-modules
backend/shared-modules

# IDE files
.idea
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "deps/sadisplay"]
path = deps/sadisplay
url = https://github.com/davenquinn/sadisplay.git
[submodule "backend/python-tools"]
path = backend/shared-modules
url = https://github.com/UW-Macrostrat/python-tools.git
[submodule "deps/postgis-tile-utils"]
path = backend/deps/postgis-tile-utils
url = https://github.com/UW-Macrostrat/postgis-tile-utils.git
Expand Down
862 changes: 442 additions & 420 deletions _cli/poetry.lock

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions _cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,18 @@ envbash = "*"
pytest = "*"
pyyaml = "^6.0.1"
pydantic = "^1.9.0"
# The below pin of 'docker' ensures that we don't encounter
# https://github.com/docker/compose/issues/8499
# It should be deleted when docker-compose dependency is upgraded.
docker = "^6.0.1"
docker = "^7.1.0"

click-default-group = "^1.2.2"
keepachangelog = "2.0.0.dev2"
packaging = "^23.2"

# Utility functions (we would move this to a separate folder, ideally)
"macrostrat.utils" = { path = "../backend/shared-modules/utils", develop = true }
"macrostrat.utils" = "^1.2.1"

# Database backup and schema migration functionality
"macrostrat.dinosaur" = {path = "../backend/shared-modules/dinosaur", develop = true }
"macrostrat.database" = {path = "../backend/shared-modules/database", develop = true }
"macrostrat.dinosaur" = "^3.1.0"
"macrostrat.database" = "^3.3.1"
chardet = "^5.1.0"
charset-normalizer = "2.1.0"

Expand All @@ -41,4 +38,4 @@ sparrow = "sparrow_cli:cli"
[tool.black]
line-length = 88
skip-magic-trailing-comma = true
target-version = ['py38']
target-version = ['py38']
7 changes: 1 addition & 6 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ WORKDIR /app
# For shared modules, first copy only requirements to install their dependencies.
# Poetry must see them as a set of modules.
COPY poetry.lock pyproject.toml /app/
COPY __docker/dummy-shared-module-tree /app/shared-modules
COPY shared-modules/database/pyproject.toml /app/shared-modules/database/
COPY shared-modules/dinosaur/pyproject.toml /app/shared-modules/dinosaur/
COPY shared-modules/utils/pyproject.toml /app/shared-modules/utils/
COPY shared-modules/pyproject.toml /app/shared-modules/pyproject.toml

RUN mkdir -p /app/loader/sparrow/loader && touch /app/loader/sparrow/loader/__init__.py
COPY loader/pyproject.toml /app/loader/
Expand All @@ -42,7 +37,7 @@ COPY ./docker-scripts/* /bin/
## Copy app core
COPY ./ /app/

RUN poetry install --no-interaction --no-ansi
RUN poetry install --no-interaction --no-ansi

# Copy command-line options to a place where they can be easily accessed
# by the wrapper CLI.
Expand Down
6 changes: 2 additions & 4 deletions backend/loader/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ python = "^3.9"
marshmallow = "^3.20.1"
marshmallow-sqlalchemy = "^0.29.0"
marshmallow-jsonschema = "^0.13.0"
GeoAlchemy2 = "^0.9.4"
SQLAlchemy = "^1.4.41"
"macrostrat.database" = "^2.0.1"
"macrostrat.database" = "^3.3.1"
stringcase = "^1.2.0"
shapely = "^1"
typer = "^0.6.1"
rich = "^12.6.0"
rich = "^13"

[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
Expand Down
Loading
Loading