Skip to content

Commit a9d8723

Browse files
authored
Merge pull request #145 from PainterQubits/develop
Merge develop into main
2 parents 1a13e8c + 470d824 commit a9d8723

8 files changed

Lines changed: 452 additions & 423 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77
target-branch: "develop"
88

99
- package-ecosystem: "pip"
1010
directory: "/"
1111
schedule:
12-
interval: "weekly"
12+
interval: "monthly"
1313
target-branch: "develop"

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ on:
1111
- develop
1212

1313
env:
14-
POETRY_VERSION: "1.7.0"
14+
POETRY_VERSION: "1.7.1"
1515
MAIN_PYTHON_VERSION: "3.9"
16+
PACKAGE_NAME: "paramdb"
1617

1718
jobs:
1819
ci:
@@ -38,15 +39,15 @@ jobs:
3839

3940
- name: Check formatting (Black)
4041
if: matrix.python_version == env.MAIN_PYTHON_VERSION
41-
run: poetry run black paramdb tests --check
42+
run: poetry run black ${{ env.PACKAGE_NAME }} tests --check
4243

4344
- name: Lint (Flake8)
4445
if: matrix.python_version == env.MAIN_PYTHON_VERSION
45-
run: poetry run flake8 paramdb tests
46+
run: poetry run flake8 ${{ env.PACKAGE_NAME }} tests
4647

4748
- name: Lint (Pylint)
4849
if: matrix.python_version == env.MAIN_PYTHON_VERSION
49-
run: poetry run pylint paramdb tests
50+
run: poetry run pylint ${{ env.PACKAGE_NAME }} tests
5051

5152
- name: Mypy cache
5253
if: matrix.python_version == env.MAIN_PYTHON_VERSION
@@ -59,15 +60,15 @@ jobs:
5960
6061
- name: Type check (Mypy)
6162
if: matrix.python_version == env.MAIN_PYTHON_VERSION
62-
run: poetry run mypy paramdb tests
63+
run: poetry run mypy ${{ env.PACKAGE_NAME }} tests
6364

6465
- name: Test (Pytest)
6566
if: matrix.python_version != env.MAIN_PYTHON_VERSION
6667
run: poetry run pytest
6768

6869
- name: Test (Pytest) with coverage
6970
if: matrix.python_version == env.MAIN_PYTHON_VERSION
70-
run: poetry run pytest --cov=paramdb --cov-report=xml
71+
run: poetry run pytest --cov=${{ env.PACKAGE_NAME }} --cov-report=xml
7172

7273
- name: Upload coverage reports to Codecov
7374
if: matrix.python_version == env.MAIN_PYTHON_VERSION

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [0.10.2] (Dec 5 2023)
11+
12+
### Changed
13+
14+
- Change supported Python versions from `>=3.9,<3.13` to `^3.9` for better compatibility
15+
with other Poetry projects and future versions of Python.
16+
1017
## [0.10.1] (Nov 6 2023)
1118

1219
### Added
@@ -130,7 +137,8 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
130137
- Database class `ParamDB` to store parameters in a SQLite file
131138
- Ability to retrieve the commit history as `CommitEntry` objects
132139

133-
[unreleased]: https://github.com/PainterQubits/paramdb/compare/v0.10.1...develop
140+
[unreleased]: https://github.com/PainterQubits/paramdb/compare/v0.10.2...develop
141+
[0.10.2]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.2
134142
[0.10.1]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.1
135143
[0.10.0]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.0
136144
[0.9.1]: https://github.com/PainterQubits/paramdb/releases/tag/v0.9.1

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ authors:
44
- family-names: "Hadley"
55
given-names: "Alex"
66
title: "ParamDB"
7-
version: 0.10.1
8-
date-released: 2023-11-06
7+
version: 0.10.2
8+
date-released: 2023-12-05
99
url: "https://github.com/PainterQubits/paramdb"

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
project = "ParamDB"
55
copyright = "2023, California Institute of Technology"
66
author = "Alex Hadley"
7-
release = "0.10.1"
7+
release = "0.10.2"
88

99
# General configuration
1010
extensions = [

poetry.lock

Lines changed: 422 additions & 402 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "paramdb"
7-
version = "0.10.1"
7+
version = "0.10.2"
88
description = "Python package for storing and retrieving experiment parameters."
99
authors = ["Alex Hadley <contact@alexhadley.net>"]
1010
license = "BSD-3-Clause"
1111
readme = "README.md"
1212
repository = "https://github.com/PainterQubits/paramdb"
1313

1414
[tool.poetry.dependencies]
15-
python = ">=3.9,<3.13"
15+
python = "^3.9"
1616
typing-extensions = "^4.8.0"
1717
sqlalchemy = "^2.0.23"
1818
zstandard = "^0.22.0"
19-
astropy = {version = "^5.3.4", optional = true}
19+
astropy = { version = "^6.0.0", optional = true }
2020

2121
[tool.poetry.extras]
2222
astropy = ["astropy"]
2323

2424
[tool.poetry.group.dev.dependencies]
25-
pytest = "^7.4.3"
26-
pytest-cov = "^4.1.0"
25+
mypy = "^1.7.1"
2726
flake8 = "^6.1.0"
2827
pylint = "^3.0.2"
29-
mypy = "^1.6.1"
30-
black = "^23.10.1"
28+
black = "^23.11.0"
29+
pytest = "^7.4.3"
30+
pytest-cov = "^4.1.0"
3131

3232
[tool.poetry.group.docs.dependencies]
3333
sphinx = "^7.2.6"
3434
myst-parser = "^2.0.0"
3535
furo = "^2023.9.10"
3636
sphinx-copybutton = "^0.5.2"
3737
jupyter-sphinx = "^0.4.0"
38-
ipykernel = "^6.26.0"
38+
ipykernel = "^6.27.1"
3939
sphinx-autobuild = "^2021.3.14"
4040

4141
[tool.mypy]

tests/_param_data/test_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from tests.helpers import CustomParamList, CustomParamDict
77
from paramdb import ParamData, ParamList, ParamDict
88

9-
ParamCollection = Union[ParamList, ParamDict]
9+
ParamCollection = Union[ParamList[Any], ParamDict[Any]]
1010
Contents = Union[list[Any], dict[str, Any]]
1111
CustomParamCollection = Union[CustomParamList, CustomParamDict]
1212

0 commit comments

Comments
 (0)