Skip to content

Commit 4db9d60

Browse files
committed
Drop Python 3.9 support as it reached EOL
1 parent eba4405 commit 4db9d60

File tree

13 files changed

+21
-32
lines changed

13 files changed

+21
-32
lines changed

.github/workflows/ci-black-formatting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Action - install python
1515
uses: actions/setup-python@v6
1616
with:
17-
python-version: "3.9"
17+
python-version: "3.10"
1818

1919
- name: Action - install python
2020
uses: actions/setup-python@v6
@@ -33,7 +33,7 @@ jobs:
3333
id: syntax-errors
3434
run: |
3535
ERROR=0
36-
python3.9 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
36+
python3.10 -W error -m compileall -q src/ifcopenshell-python || ERROR=1
3737
python3.11 -W error -m compileall -q src/bonsai || ERROR=1
3838
exit $ERROR
3939
continue-on-error: true

nix/build-all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
USE_CURRENT_PYTHON_VERSION = os.getenv("USE_CURRENT_PYTHON_VERSION")
140140
ADD_COMMIT_SHA = os.getenv("ADD_COMMIT_SHA")
141141

142-
PYTHON_VERSIONS = ["3.9.11", "3.10.3", "3.11.8", "3.12.1", "3.13.6", "3.14.0"]
142+
PYTHON_VERSIONS = ["3.10.3", "3.11.8", "3.12.1", "3.13.6", "3.14.0"]
143143
JSON_VERSION = "3.11.3"
144144
OCE_VERSION = "0.18.3"
145145
OCCT_VERSION = "7.8.1"

src/bsdd/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ authors = [
1010
]
1111
description = "Library to interact with the buildingSMART Data Dictionary"
1212
readme = "README.md"
13-
requires-python = ">=3.9"
13+
requires-python = ">=3.10"
1414
keywords = ["IFC", "bSDD", "BIM"]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"Programming Language :: Python",
18-
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
2120
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
"Programming Language :: Python :: Implementation :: CPython",
2324
"Programming Language :: Python :: Implementation :: PyPy",
2425
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",

src/ifcopenshell-python/docs/ifcopenshell-python/installation.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ ZIP packages
3434
+-------------+---------------------------------+-------------------------------+---------------------------------+-----------------------------------+
3535
| | Linux 64bit | Windows 64bit | MacOS Intel 64bit | MacOS Silicon 64bit |
3636
+=============+=================================+===============================+=================================+===================================+
37-
| Python 3.9 | :ios_python_url:`py39-linux64` | :ios_python_url:`py39-win64` | :ios_python_url:`py39-macos64` | :ios_python_url:`py39-macosm164` |
38-
+-------------+---------------------------------+-------------------------------+---------------------------------+-----------------------------------+
3937
| Python 3.10 | :ios_python_url:`py310-linux64` | :ios_python_url:`py310-win64` | :ios_python_url:`py310-macos64` | :ios_python_url:`py310-macosm164` |
4038
+-------------+---------------------------------+-------------------------------+---------------------------------+-----------------------------------+
4139
| Python 3.11 | :ios_python_url:`py311-linux64` | :ios_python_url:`py311-win64` | :ios_python_url:`py311-macos64` | :ios_python_url:`py311-macosm164` |

src/ifcopenshell-python/ifcopenshell/api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
import inspect
4444
import importlib
4545
import ifcopenshell
46-
from typing import Callable, Any, Optional, TYPE_CHECKING
46+
from collections.abc import Callable
47+
from typing import Any, Optional, TYPE_CHECKING
4748
from functools import partial
4849

4950
if TYPE_CHECKING:

src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
import ifcopenshell.api.owner
2121
import ifcopenshell.util.element
2222
from typing import Any, Union
23-
24-
if sys.version_info >= (3, 10):
25-
from types import EllipsisType
26-
else:
27-
EllipsisType = type(...)
23+
from types import EllipsisType
2824

2925

3026
def edit_attributes(file: ifcopenshell.file, product: ifcopenshell.entity_instance, attributes: dict[str, Any]) -> None:

src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
import ifcopenshell.util.geolocation
2828
import ifcopenshell.util.placement
2929
import ifcopenshell.util.unit
30-
from typing import Optional, Any, Union, Literal, get_args, Callable
30+
from typing import Optional, Any, Union, Literal, get_args
31+
from collections.abc import Callable
3132
from functools import partial
3233

3334

src/ifcopenshell-python/ifcopenshell/util/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import ifcopenshell.guid
2121
import ifcopenshell.util.element
2222
import ifcopenshell.util.representation
23-
from typing import Any, Callable, Optional, Union, Literal, overload
24-
from collections.abc import Generator, Sequence
23+
from typing import Any, Optional, Union, Literal, overload
24+
from collections.abc import Callable, Generator, Sequence
2525
from collections import namedtuple
2626

2727

src/ifcopenshell-python/ifcopenshell/util/mvd_info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
except ImportError:
2727
LARK_AVAILABLE = False
2828

29-
from typing import Callable, Union
29+
from typing import Union
3030
import re
3131

3232
if LARK_AVAILABLE:
@@ -51,9 +51,9 @@
5151
5252
value: /[A-Za-z0-9 _\.-]+/
5353
54-
other_keyword: /[^\[\]]+/
55-
56-
dynamic_option_word: /[^\[\]]+/
54+
other_keyword: /[^\[\]]+/
55+
56+
dynamic_option_word: /[^\[\]]+/
5757
5858
%import common.WS
5959
%ignore WS

src/ifcopenshell-python/ifcopenshell/util/selector.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@
3737
from decimal import Decimal
3838
from typing import Optional, Any, Union
3939
from collections.abc import Iterable
40-
41-
if sys.version_info >= (3, 10):
42-
from types import EllipsisType
43-
else:
44-
EllipsisType = type(...)
40+
from types import EllipsisType
4541

4642

4743
filter_elements_grammar = lark.Lark(

0 commit comments

Comments
 (0)