Skip to content

Commit 0fbf936

Browse files
committed
Assign gis to non-default status
1 parent adf8bf3 commit 0fbf936

File tree

7 files changed

+45
-179
lines changed

7 files changed

+45
-179
lines changed

.github/workflows/format-code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v5
12-
with:
13-
ref: ${{ github.head_ref }}
12+
1413
- name: "Set up Python"
1514
uses: actions/setup-python@v6
1615
with:
@@ -26,6 +25,7 @@ jobs:
2625

2726
- name: Run formatting commands
2827
run: make format
28+
2929
- name: Commit changes
3030
uses: stefanzweifel/git-auto-commit-action@v5
3131
with:

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
all:
22
# Install all dependencies
3-
uv sync --all-groups # Install all optional dependency groups (dev, gis, etc)
3+
# Install all optional dependency groups (dev, gis, etc)
4+
uv sync
5+
6+
gis:
7+
# Install GIS dependencies
8+
uv pip install "GDAL==$(shell gdal-config --version)"
9+
uv sync --group gis
410

511
install:
612
ln -sf $(shell pwd)/bin/macrostrat /usr/local/bin/macrostrat
@@ -13,13 +19,6 @@ test:
1319
# These tests may fail due to an older GDAL version in use.
1420
# We need to figure out how to bundle GDAL or run in a Docker context
1521
uv run macrostrat test all --skip-env -x -s
16-
# poetry run pytest -s -x \
17-
# --ignore=runtime-tests \
18-
# --ignore=services \
19-
# --ignore=v2-transition \
20-
# --ignore=submodules \
21-
# --skip-env \
22-
# .
2322

2423
test-ci:
2524
# We need a fairly recent version of GDAL (3.10) for map integration tests to pass.

cli/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,19 @@ dependencies = [
5252
[project.scripts]
5353
macrostrat = "macrostrat.cli:main"
5454

55+
[project.optional-dependencies]
56+
gis = [
57+
"macrostrat.map-integration[gis]"
58+
]
59+
5560
[dependency-groups]
56-
gis = ["macrostrat.map-integration[gis]"]
5761
dev = [
5862
"snakeviz>=2.2.0,<3",
5963
"macrostrat.package_tools>=1.1.0,<2",
6064
]
6165

6266
[tool.uv]
6367
default-groups = [
64-
"gis",
6568
"dev",
6669
]
6770

map-integration/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ dependencies = [
2121
"python-magic>=0.4.27,<0.5",
2222
"pyyaml~=6.0",
2323
"shapely>=2.0.1,<3",
24+
"macrostrat.core",
2425
]
2526

2627
[project.scripts]
2728
macrostrat-maps = "macrostrat.map_integration:app"
2829

29-
[dependency-groups]
30+
[project.optional-dependencies]
3031
gis = [
3132
"GDAL>=3.10.0,<4",
32-
"macrostrat.core",
3333
]
34+
35+
[dependency-groups]
3436
dev = [
3537
"bandit>=1.7.7,<2",
3638
"black~=24.2",
@@ -41,7 +43,6 @@ dev = [
4143

4244
[tool.uv]
4345
default-groups = [
44-
"gis",
4546
"dev",
4647
]
4748

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[project]
55
name = "macrostrat-system"
66
version = "0.1.0"
7-
requires-python = ">=3.11,<4"
7+
requires-python = ">=3.11,<3.13"
88
dependencies = [
99
"setuptools>=75.8.2,<76",
1010
"macrostrat.cli",
@@ -21,7 +21,6 @@ dev = [
2121
[tool.uv]
2222
package = false
2323
default-groups = [
24-
"gis",
2524
"dev",
2625
]
2726

services/legacy-tileserver/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ WORKDIR /services/main
7373
RUN --mount=type=cache,target=/root/.cache/uv \
7474
--mount=type=bind,source=uv.lock,target=uv.lock \
7575
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
76-
--mount=type=bind,source=deps,target=deps \
7776
uv sync --locked --no-install-project --no-editable --active
7877

7978
# Add source files to project

uv.lock

Lines changed: 26 additions & 161 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)