Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into main #156

Merged
merged 10 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@ version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
target-branch: "develop"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "America/Los_Angeles"
groups:
github-actions:
patterns: ["*"]

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
target-branch: "develop"
schedule:
interval: "weekly"
day: "monday"
time: "04:00"
timezone: "America/Los_Angeles"
groups:
python:
update-types: ["minor", "patch"]
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: pipx install poetry==${{ env.POETRY_VERSION }}

- name: Set up Python with Poetry cache
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: poetry
Expand All @@ -51,7 +51,7 @@ jobs:

- name: Mypy cache
if: matrix.python_version == env.MAIN_PYTHON_VERSION
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .mypy_cache
key: mypy-${{ runner.os }}-python-${{ matrix.python_version }}-${{ github.sha }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
POETRY_VERSION: "1.7.0"
POETRY_VERSION: "1.7.1"

jobs:
build:
Expand All @@ -21,7 +21,7 @@ jobs:
run: poetry build

- name: Upload package artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: paramdb-release
path: dist
Expand All @@ -35,7 +35,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: paramdb-release
path: dist
Expand Down
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.11.0] (Jan 31 2024)

## Added

- `ParamDB.load_commit_entry()` loads a commit entry by ID or the most recent commit.
- `ParamDB.commit_history_with_data()` to retrieve the commit history with data.
- `CommitEntryWithData` to store a commit entry containing data.

## Changed

- `ParamDB.commit()` returns a `CommitEntry` instead of the commit ID.

## Removed

- `ParamDB.latest_commit` is replaced by `ParamDB.load_commit_entry()`

## [0.10.2] (Dec 5 2023)

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

[unreleased]: https://github.com/PainterQubits/paramdb/compare/v0.10.2...develop
[unreleased]: https://github.com/PainterQubits/paramdb/compare/v0.11.0...develop
[0.11.0]: https://github.com/PainterQubits/paramdb/releases/tag/v0.11.0
[0.10.2]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.2
[0.10.1]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.1
[0.10.0]: https://github.com/PainterQubits/paramdb/releases/tag/v0.10.0
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ authors:
- family-names: "Hadley"
given-names: "Alex"
title: "ParamDB"
version: 0.10.2
date-released: 2023-12-05
version: 0.11.0
date-released: 2024-01-31
url: "https://github.com/PainterQubits/paramdb"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2023, California Institute of Technology
Copyright (c) 2023–2024, California Institute of Technology

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ParamDB

[![PyPI Latest Release](https://img.shields.io/pypi/v/paramdb)](https://pypi.org/project/paramdb/)
![PyPI Python Versions](https://img.shields.io/pypi/pyversions/paramdb)
[![PyPI Python Versions](https://img.shields.io/pypi/pyversions/paramdb)](https://pypi.org/project/paramdb/)
[![License](https://img.shields.io/pypi/l/paramdb)](https://github.com/PainterQubits/paramdb/blob/main/LICENSE)
[![CI](https://github.com/PainterQubits/paramdb/actions/workflows/ci.yml/badge.svg)](https://github.com/PainterQubits/paramdb/actions/workflows/ci.yml)
[![Codecov](https://codecov.io/github/PainterQubits/paramdb/branch/main/graph/badge.svg?token=PQEJWLBTBK)](https://codecov.io/github/PainterQubits/paramdb)
Expand Down
1 change: 1 addition & 0 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ All of the following can be imported from `paramdb`.
```{eval-rst}
.. autoclass:: ParamDB
.. autoclass:: CommitEntry
.. autoclass:: CommitEntryWithData
```

## Keys
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# Project information
project = "ParamDB"
copyright = "2023, California Institute of Technology"
copyright = "2023–2024, California Institute of Technology"
author = "Alex Hadley"
release = "0.10.2"
release = "0.11.0"

# General configuration
extensions = [
Expand Down
3 changes: 2 additions & 1 deletion paramdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from paramdb._param_data._dataclasses import Param, Struct
from paramdb._param_data._collections import ParamList, ParamDict
from paramdb._param_data._type_mixins import ParentType, RootType
from paramdb._database import ParamDB, CommitEntry
from paramdb._database import ParamDB, CommitEntry, CommitEntryWithData

__all__ = [
"CLASS_NAME_KEY",
Expand All @@ -22,4 +22,5 @@
"RootType",
"ParamDB",
"CommitEntry",
"CommitEntryWithData",
]
Loading
Loading