Skip to content

Commit 790638d

Browse files
Maint/py3.13 + v0.1.0 (#233)
* rm empty tests * Add 3.13 and fix FutureWarning * Bump version to v0.1.0 * Update pyproject.toml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 884f77f commit 790638d

File tree

6 files changed

+14
-114
lines changed

6 files changed

+14
-114
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: setup python
1313
uses: actions/setup-python@v3
1414
with:
15-
python-version: 3.9
15+
python-version: 3.12
1616

1717
- name: install gustaf
1818
run: |

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14-
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
1515

1616
steps:
1717
- uses: actions/checkout@v4

gustaf/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
Current version.
44
"""
55

6-
version = "0.0.27"
6+
version = "0.1.0"

gustaf/utils/log.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
import logging
7-
from functools import partial
7+
from functools import partial, partialmethod
88

99

1010
def configure(debug=False, logfile=None):
@@ -101,7 +101,7 @@ def warning(*log):
101101
logger.warning(" ".join(map(str, log)))
102102

103103

104-
def prepended_log(message, log_func):
104+
def prepended_log(message, log_func, as_method=True):
105105
"""
106106
Prepend message before a logging function.
107107
@@ -110,9 +110,13 @@ def prepended_log(message, log_func):
110110
message: str
111111
log_func: function
112112
one of the following - {info, debug, warning}
113+
as_method: bool
114+
If True, uses partialmethod, else partial.
115+
Default is True.
113116
114117
Returns
115118
-------
116119
prepended: function
117120
"""
118-
return partial(log_func, message)
121+
p = partialmethod if as_method else partial
122+
return p(log_func, message)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ keywords = [
1010
"visualization",
1111
"mesh",
1212
]
13-
requires-python = ">=3.8"
13+
requires-python = ">=3.9"
1414
license = {file = "LICENSE.txt"}
1515
classifiers = [
16-
"Development Status :: 3 - Alpha",
16+
"Development Status :: 4 - Beta",
1717
"License :: OSI Approved :: MIT License",
1818
"Programming Language :: Python",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2424
"Natural Language :: English",
2525
"Topic :: Scientific/Engineering",
2626
]

tests/test_basic_calls.py

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)