Skip to content

Commit 3b905c8

Browse files
authored
Merge pull request #31 from xsuite/release/v0.3.8
Release 0.3.8
2 parents 8081c81 + 5361756 commit 3b905c8

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xaux"
3-
version = "0.3.7"
3+
version = "0.3.8"
44
description = "Support tools for Xsuite packages"
55
authors = ["Frederik F. Van der Veken <[email protected]>",
66
"Thomas Pugnat <[email protected]>",
@@ -12,7 +12,7 @@ include = ["LICENSE", "NOTICE"]
1212

1313

1414
[tool.poetry.dependencies]
15-
python = ">=3.8"
15+
python = ">=3.8,<3.15"
1616

1717
[poetry.group.dev.dependencies]
1818
pytest = ">=7.3"

tests/pytest_all_versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#files='test_fs*.py'
44
files=''
55

6-
for i in 8 9 10 11 12 13
6+
for i in 8 9 10 11 12 13 14
77
do
88
source ~/miniforge3/bin/activate python3.$i
99
python -c "import sys; print(f'Testing xaux in Python version {sys.version.split()[0]}')"

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
from xaux import __version__
77

88
def test_version():
9-
assert __version__ == '0.3.7'
9+
assert __version__ == '0.3.8'
1010

xaux/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@
88
from .dev_tools import import_package_version # Stub to get dev_tools in the namespace
99
from .tools import singleton, ClassProperty, ClassPropertyMeta, timestamp, ranID, system_lock, get_hash, \
1010
ProtectFile, ProtectFileError
11+
12+
_tempdir_cache = None
13+
def __getattr__(name):
14+
global _tempdir_cache
15+
if name == "tempdir":
16+
if not _tempdir_cache:
17+
from .fs.temp import _tempdir
18+
_tempdir_cache = _tempdir
19+
return FsPath(_tempdir_cache)
20+
raise AttributeError(f"module {__name__} has no attribute {name}")

xaux/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
# ===================
1111
# Do not change
1212
# ===================
13-
__version__ = '0.3.7'
13+
__version__ = '0.3.8'
1414
# ===================

0 commit comments

Comments
 (0)