Skip to content

Commit dd36b88

Browse files
committed
Merge branch 'master' of github.com:BrickSchema/py-brickschema
2 parents a626ac5 + cbdc688 commit dd36b88

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

.github/workflows/builds.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,26 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ["3.9", "3.10", "3.11"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: Install Poetry
24-
uses: snok/install-poetry@v1
23+
- name: Install uv and set the python version
24+
uses: astral-sh/setup-uv@v6
2525
with:
26-
virtualenvs-create: true
27-
virtualenvs-in-project: true
28-
installer-parallel: true
26+
python-version: ${{ matrix.python-version }}
27+
# Enable caching for uv
28+
enable-cache: true
2929
- name: Set up Java
3030
uses: actions/setup-java@v4
3131
with:
3232
distribution: 'temurin'
3333
java-version: '17'
34-
- name: Load cached venv
35-
id: cached-poetry-dependencies
36-
uses: actions/cache@v4
37-
with:
38-
path: .venv
39-
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
40-
- name: Install dependencies for Python 3.11
41-
# we do *not* install the dedupe extra because its dependency on PyLBFGS requires an older version
42-
# of Cython that is not available in python 3.11
43-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' && matrix.python-version == '3.11'
44-
run: poetry install --no-interaction --no-root -E allegro -E brickify -E web -E orm -E reasonable -E persistence -E bacnet -E networkx
4534
- name: Install all dependencies for other Python versions
46-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' && matrix.python-version != '3.11'
47-
run: poetry install --no-interaction --no-root --all-extras
35+
run: uv sync --all-extras
4836
- name: Run tests
49-
run: |
50-
source .venv/bin/activate
51-
pytest -s -vvvv
37+
run: uv run pytest -s -vvvv
5238

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ homepage = "https://brickschema.org"
88
license = "BSD-3-Clause"
99
readme = "README.md"
1010
dependencies = [
11+
"importlib-resources>=6.5.2",
1112
"owlrl>=7.1.3",
1213
"pyontoenv>=0.3.0a7",
1314
"pyshacl>=0.30.1",
1415
"rdflib>=7.1.4",
1516
"requests>=2.32.4",
1617
]
18+
requires-python = ">=3.10,<4.0"
1719

1820
[project.optional-dependencies]
1921
allegro = [
@@ -50,6 +52,13 @@ bacnet = [
5052
"bac0>=2025.6.10",
5153
]
5254
networkx = [
53-
"networkx>=3.5",
55+
"networkx>=3.0",
56+
]
57+
topquadrant = [
58+
"brick-tq-shacl>=0.4.0a8",
5459
]
5560

61+
[dependency-groups]
62+
dev = [
63+
"pytest>=8.4.1",
64+
]

0 commit comments

Comments
 (0)