Skip to content

Commit 7bccab6

Browse files
authored
fix: remove relative paths (#87)
* ci: remove relative paths * fix ci.
1 parent 5a0f75e commit 7bccab6

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,20 @@ jobs:
4040
max-parallel: 3
4141
matrix:
4242
python-version: ["3.10", "3.11", "3.12"]
43-
package-name: ["geos-ats", "geos-mesh", "geos-posp", "geos-timehistory", "geos-trame", "geos-utils", "geos-xml-tools", "geos-xml-viewer", "hdf5-wrapper", "pygeos-tools"]
44-
43+
package-name:
44+
- geos-ats
45+
- geos-mesh
46+
- geos-posp
47+
- geos-timehistory
48+
- geos-trame
49+
- geos-utils
50+
- geos-xml-tools
51+
- geos-xml-viewer
52+
- hdf5-wrapper
53+
- pygeos-tools
54+
include:
55+
- package-name: pygeos-tools
56+
dependencies: "geos-utils geos-mesh"
4557
steps:
4658
- uses: actions/checkout@v4
4759
- uses: mpi4py/setup-mpi@v1
@@ -55,7 +67,19 @@ jobs:
5567
run: |
5668
python -m pip install --upgrade pip
5769
python -m pip install pytest yapf toml
70+
71+
DEPS="${{ matrix.dependencies || '' }}"
72+
73+
if [ -n "$DEPS" ]; then
74+
echo "Installing additional dependencies: $DEPS"
75+
for dep in $DEPS; do
76+
python -m pip install ./$dep
77+
done
78+
fi
79+
80+
echo "Installing main package..."
5881
python -m pip install ./${{ matrix.package-name }}/[test]
82+
5983
- name: Lint with yapf
6084
# working-directory: ./${{ matrix.package-name }}
6185
run: |
@@ -65,5 +89,4 @@ jobs:
6589
run:
6690
# python -m pytest ./${{ matrix.package-name }} --doctest-modules --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html |
6791
# wrap pytest to avoid error when no tests in the package
68-
sh -c 'python -m pytest ./${{ matrix.package-name }}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
69-
92+
sh -c 'python -m pytest ./${{ matrix.package-name }}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'

pygeos-tools/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ classifiers = [
2424
requires-python = ">= 3.10"
2525

2626
dependencies = [
27-
"geos-utils @ file:./geos-utils",
28-
"geos-mesh @ file:./geos-mesh",
27+
"geos-utils",
28+
"geos-mesh",
2929
"matplotlib",
3030
"scipy",
3131
"mpi4py",

0 commit comments

Comments
 (0)