File tree Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Expand file tree Collapse file tree 5 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 22
22
23
23
# Documentation
24
24
docs /build /
25
+
26
+ # setuptools-scm
27
+ xskillscore /_version.py
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Internal Changes
18
18
:py:func: `warnings.filterwarnings `. (:pr: `426 `) `Trevor James Smith `_
19
19
- The minimum supported versions for several dependencies have been
20
20
updated. (:pr: `426 `) `Trevor James Smith `_
21
+ - `xskillscore ` now uses `setuptools-scm ` to automatically determine the
22
+ version number. (:pr: `427 `) `Trevor James Smith `_
21
23
22
24
23
25
xskillscore v0.0.26 (2024-03-10)
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Contributors
8
8
* mcsitter (`github <https://github.com/mcsitter/ >`__)
9
9
* Ray Bell (`github <https://github.com/raybellwaves/ >`__
10
10
* Riley X. Brady (`github <https://github.com/bradyrx/ >`__)
11
+ * Trevor James Smith (`github <https://github.com/Zeitsperre/ >`__)
11
12
* Zachary Blackwood (`github <https://github.com/blackary/ >`__)
12
13
13
14
For a list of all the contributions, see the github
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools" , " setuptools-scm" ]
2
+ requires = [" setuptools>=64 " , " setuptools-scm>=8 " ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " xskillscore"
7
- version = " 0.0.26"
8
7
dependencies = [
9
8
" dask[array] >=2023.4.0" ,
10
9
" numpy >=1.24" ,
@@ -33,15 +32,14 @@ classifiers = [
33
32
]
34
33
requires-python = " >=3.9"
35
34
license = {file = " LICENSE.txt" }
36
- dynamic = [" readme" ]
35
+ dynamic = [" readme" , " version " ]
37
36
38
37
[project .optional-dependencies ]
39
- accel = [" bottleneck" , " numba>=0.52 " ]
38
+ accel = [" bottleneck" , " numba >=0.57 " ]
40
39
test = [
41
- " bottleneck " ,
40
+ " xskillscore[accel] " ,
42
41
" cftime" ,
43
42
" matplotlib" ,
44
- " numba >=0.57" ,
45
43
" pre-commit" ,
46
44
" pytest" ,
47
45
" pytest-cov" ,
@@ -73,6 +71,7 @@ packages = ["xskillscore"]
73
71
74
72
[tool .setuptools_scm ]
75
73
fallback_version = " 9999"
74
+ version_file = " xskillscore/_version.py"
76
75
77
76
[tool .setuptools .dynamic ]
78
77
readme = {file = [" README.rst" ], content-type = " text/markdown" }
Original file line number Diff line number Diff line change
1
+ from importlib .metadata import version , PackageNotFoundError
2
+
1
3
# ruff: noqa
2
4
from xskillscore .core import resampling
3
5
from xskillscore .core .accessor import XSkillScoreAccessor
37
39
from xskillscore .core .stattests import multipletests
38
40
from xskillscore .versioning .print_versions import show_versions
39
41
40
- __version__ = "0.0.26"
42
+ try :
43
+ __version__ = version ("xskillscore" )
44
+ except PackageNotFoundError :
45
+ # package is not installed
46
+ pass
You can’t perform that action at this time.
0 commit comments