Thomas Krijnen
d11440af65
Address failing tests
...
* import-mode=import-lib to prevent temp rename
* Skip some failing tests
* Update stub
* Fix decorator
2026-09-02 15:56:15 +02:00
Andrej730
1165a86317
pyproject: remove redundant "unused imports" comments
...
Since we refer to ruff rules by names
2026-09-01 18:13:03 +05:00
Richard Brice
4cfe1f96f8
Gets the pick list for bSDD properties with Allowed Values working
2026-08-28 08:41:10 -07:00
Andrej730
b6dccce12a
ruff: use readable rule names in selectors
2026-08-10 17:06:56 +05:00
Andrej730
717d6aa2af
ruff: fix pyprojects using select instead of extend-select by mistake
2026-08-10 16:33:01 +05:00
Petru Conduraru
38a005ccf5
ci: fix bSDD 429 rate limiting and restore ColumnPSetsOfSets.ifc schema
...
bsdd.py: the Client made every request with a bare requests.get, so a single
429 from the (unauthenticated, aggressively rate limited) bSDD API failed the
whole test. Route requests through a Session with a mounted urllib3 Retry
(5 attempts, backoff, honouring Retry-After) for 429/5xx, matching how a
resilient API client should behave, not just papering over the test.
ColumnPSetsOfSets.ifc: FILE_SCHEMA was accidentally changed from IFC4X3_ADD2
to IFC2X3 in a7738eeb64 (an unrelated logger refactor), a one line collateral
edit to this fixture. The file's DATA section still uses IFCPROPERTYSETDEFINITIONSET,
an IFC4+ only type. Parsing it against IFC2X3 threw "Entity ... not found in
schema", which silently fell back to interpreting the value as a raw nested
aggregate instead of the intended defined-type wrapper, producing the
double-nested tuple that broke test_stream, test_file and test_rocks in
test_streaming_rocksdb_and_simpletyperefs.py. Restoring the original schema
declared when the fixture was added (ff3fa48332 ) fixes all three.
Generated with the assistance of an AI coding tool.
(cherry picked from commit 6911418c67 )
2026-07-25 23:18:33 +10:00
Andrej730
30c9956fac
bsdd: fix test_get_class_relations
...
`classRelations` doesn't exist on `ClassPropertiesContractV1`, probably was just a typo.
(cherry picked from commit a7a7edfd27 )
2026-07-25 23:15:23 +10:00
Andrej730
147119d5f6
downstream: bsdd: raise informative HTTPError
...
Previously we were just passing `.json()` which allowed too many request
error slip in to later occur as missing attributes on the dictionaries.
2026-07-22 18:51:53 +05:00
Andrej730
ecbd8941de
downstream: bsdd: warn about include_class_properties deprecation
...
See https://github.com/buildingSMART/bSDD/issues/149
2026-07-22 18:51:53 +05:00
Andrej730
26280d24fe
Add ty to check for missing symbols and other simple errors
2026-03-20 15:36:14 +05:00
Andrej730
72f8218fcd
ruff - check for more unused imports
2026-01-26 17:10:02 +05:00
Christoph Mellüh
aafa1b95e8
bSDD Add new class properties and relations API Endpoints ( #7502 )
...
* black .
* add typing
* move function
* add get_class_relations
* add test for class relation
---------
Co-authored-by: Dion Moult <dionmoult@gmail.com >
2026-01-22 10:19:09 +11:00
Christoph Mellüh
ed81a0a4b3
update api to V5 ( #7409 )
2026-01-15 20:52:06 +11:00
Andrej730
13be6ccd45
Sort imports
2025-12-19 18:53:14 +05:00
Andrej730
4db9d60a97
Drop Python 3.9 support as it reached EOL
2025-12-19 18:43:17 +05:00
Dion Moult
a46228a57e
Hotfix to generate IOS docs until we properly package bsdd
2025-11-20 21:16:57 +11:00
Andrej730
428d88f01c
Fix missing bsdd pydantic dependency in #7145
2025-11-17 16:30:26 +05:00
Andrej730
8b751577f4
Fix Ruff UP037 (unnecessary quotes in annotations)
2025-09-30 13:04:48 +05:00
Andrej730
6fbe982623
Fix Ruff UP006 (List -> list)
2025-09-30 13:04:48 +05:00
c-mellueh
9bc8012aa4
remove old function
2025-09-29 23:27:04 +10:00
c-mellueh
407962ec93
black
2025-09-29 23:27:04 +10:00
c-mellueh
21fd09b424
add bsdd_json
2025-09-29 23:27:04 +10:00
Andrej730
a12bb343ca
Fix RUF015 (next() instead of list comprehensions[0])
...
https://docs.astral.sh/ruff/rules/-iterable-allocation-for-first-element/
2025-06-16 19:55:25 +05:00
Andrej
8b4683aef1
replace api.run with static methods
2025-06-09 18:03:19 +05:00
Andrej
92a222cda7
typing
2025-05-30 18:13:10 +05:00
Andrej
62a0c258b2
Fix Ruff UP012 (unnecessary-encode-utf8)
...
https://docs.astral.sh/ruff/rules/unnecessary-encode-utf8/
2025-05-28 18:24:11 +05:00
Dion Moult
a929ab0c4f
Big bSDD overhaul for properties and classifications. See description.
...
* bSDD now supports a couple more args when querying the API.
* Fetching properties via the classification UI has been removed
* The bSDD dictionary selector has been merged into the classification
source dropdown
* The bSDD dictionary selector merged into the property set name
dropdown
* You can now search for properties in the bSDD directly when adding
properties
* You can browse properties via groups or classifications (based on
assigned classifications)
* You can browse properties via keyword (with some limitations due to
the API)
* You can selectively choose which properties you then want to add.
Only basic support right now.
2025-05-28 20:51:08 +10:00
Dion Moult
22f10e5549
Fix #6669 . bSDD now supports test dictionaries, refactor domain to dictionary, support zero length keyword searches, multi-dict support, and basic tests.
...
Feature tests can now have more sophisticated per UIList item spies.
2025-05-17 21:28:12 +10:00
Andrej730
95e76c3ab9
bsdd classes - typing for not required attributes
2024-09-20 22:03:19 +05:00
Andrej730
18476ec7f3
bsdd - update classes according to the latest API
...
Also added yml_to_classes.py script that can extract the classes automatically
2024-09-20 22:03:19 +05:00
Andrej730
eb823a5ecd
bsdd search to check whether query is long enough
...
It's an API requirement and using shorter queries was giving confusing results.
https://github.com/buildingSMART/bSDD/blob/master/Documentation/bSDD%20OpenAPI.yaml
2024-09-18 18:44:33 +05:00
ArturTomczak
bbf8ebcb52
add user-agent header to bSDD calls
...
As explained in: https://github.com/buildingSMART/bSDD/blob/master/Documentation/bSDD%20API.md#http-header-x-user-agent
2024-08-07 21:12:49 +10:00
Andrej730
8523bb317a
bcf, bsdd - add "make test"
2024-08-01 18:01:59 +05:00
Andrej730
6484a529b0
black format
2024-07-26 18:29:18 +05:00
Andrej730
ee5c401823
bsdd - expose bsdd props descriptions to ui
...
Example - https://imgur.com/a/xUUeuF5
2024-07-26 16:29:25 +05:00
Dion Moult
e7b791f4a2
Run black on utils
2024-07-26 12:16:36 +10:00
Andrej730
eac4e80ee9
typing
2024-07-25 18:36:17 +05:00
Dion Moult
0ecc3d3e2a
Share common makefile instructions, use venv for running build, and separate dist/build dirs
2024-07-18 23:43:12 +10:00
Dion Moult
2d5be6cf89
Search replace 0.7.0 with 0.8.0
2024-06-27 11:49:12 +10:00
Dion Moult
d192217e78
bSDD workflow now uses VERSION
2024-06-12 18:44:51 +10:00
Dion Moult
aba8683d5e
Fix #4303 . Declare dependencies for ifctester.
2024-04-18 10:48:23 +02:00
Dion Moult
42db0b18b0
Add bSDD makefile
2024-04-18 10:48:23 +02:00
Dion Moult
89b1616d2b
Publish bSDD to PyPI
2024-04-18 10:48:23 +02:00
jgunstone
487c96e84f
✅ add get_properties test validating that offset and limit are correctly applied
2024-04-17 14:46:07 +02:00
jgunstone
db811152b8
✨ add limit and offset to client functions
2024-04-17 14:46:07 +02:00
jgunstone
d718afc754
🔧 update pip install command assuming that this branch will be merged back
2024-04-17 14:42:54 +02:00
jgunstone
b3441fd5ae
update license and version
2024-04-17 14:42:54 +02:00
jgunstone
94b5647e56
📝 add docs about so to install and develop this package standalone
2024-04-17 14:42:54 +02:00
jgunstone
cb3ff4b05a
✅ add simple tests to ensure the package is working as expected
2024-04-17 14:42:54 +02:00
jgunstone
2a21ccf0aa
🐛 add limit and offset kwargs to get_classes. TODO- I think this needs doing throughout...
2024-04-17 14:42:54 +02:00