Skip to content

Commit e63ea67

Browse files
committed
Attempt to improve installation process
1 parent 0ab7107 commit e63ea67

File tree

7 files changed

+272
-271
lines changed

7 files changed

+272
-271
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
all:
2-
poetry lock --no-update
2+
poetry lock
33
poetry install --only=dev
4-
macrostrat poetry run mono install
4+
# This breaks on fresh installs, not sure
5+
./bin/macrostrat poetry run mono install
56
poetry install
67
# Install the version of the GDAL bindings that matches the native lib.
78
# This is breakable and should be replaced with a more robust solution.

cli/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
all:
2-
poetry lock --no-update
2+
poetry lock
33
poetry install
44

55
install:

cli/poetry.lock

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ toml = "^0.10.2"
4646
greenlet = "^3.0.3"
4747
paramiko = "^3.4.0"
4848

49+
[tool.poetry.group.gis.dependencies]
50+
"macrostrat.map-integration" = { path = "../map-integration", develop = true, extras = ["gis"] }
51+
4952
[tool.poetry.scripts]
5053
macrostrat = "macrostrat.cli:main"
5154

map-integration/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ python-dotenv = "^1"
2525
python-magic = "^0.4.27"
2626
pyyaml = "^6.0"
2727
shapely = "^2.0.1"
28+
29+
[tool.poetry.group.gis.dependencies]
2830
GDAL = "^3.8.0"
2931

3032
"macrostrat.core" = { path = "../core", develop = true }

poetry.lock

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

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
# This Poetry config is mostly a proxy to the cli Poetry config,
2+
# with some extra packages for code formatting and import sorting.
3+
# Install GIS tools as well with `poetry install --with=gis`
4+
15
[tool.poetry]
26
package-mode = false
37

48
[tool.poetry.dependencies]
59
python = "^3.11"
610
"macrostrat.cli" = { path = "./cli", develop = true }
711

12+
[tool.poetry.group.gis.dependencies]
13+
"macrostrat.cli" = { path = "./cli", develop = true, extras = ["gis"] }
14+
815
[tool.poetry.group.dev.dependencies]
916
black = "^24.8.0"
1017
isort = "^5.13.2"

0 commit comments

Comments
 (0)