Skip to content

Commit 4d71810

Browse files
authored
VER: Release 0.15.1
See release notes.
2 parents 472d128 + 39a2224 commit 4d71810

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.10"
1820
- uses: snok/install-poetry@v1
1921
with:
2022
virtualenvs-create: true

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Changelog
22

3-
## 0.15.1 - 2023-07-05
3+
## 0.15.1 - 2023-07-06
44

5-
#### Bug Fixes
6-
- Fixed an `ImportError` observed in Python 3.8
5+
#### Bug fixes
6+
- Fixed an issue with release tests
7+
- Fixed an issue with release workflow
78

8-
## 0.15.0 - 2023-07-03
9+
## 0.15.0 - 2023-07-05
910

1011
#### Enhancements
1112
- Added `symbology_map` property to `Live` client
@@ -17,6 +18,7 @@
1718

1819
#### Bug fixes
1920
- Fixed issue where a large unreadable symbol subscription message could be sent
21+
- Fixed an `ImportError` observed in Python 3.8
2022

2123
#### Breaking changes
2224
- Removed `Encoding`, `Compression`, `Schema`, and `SType` enums as they are now exposed by `databento-dbn`

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databento"
3-
version = "0.15.0"
3+
version = "0.15.1"
44
description = "Official Python client library for Databento"
55
authors = [
66
"Databento <[email protected]>",
@@ -39,6 +39,7 @@ pytest = ">=7.3.1"
3939
pytest-asyncio = ">=0.21.0"
4040
ruff = "^0.0.270"
4141
types-requests = "^2.30.0.0"
42+
tomli = "^2.0.1"
4243

4344
[build-system]
4445
requires = ["poetry-core"]

tests/test_release.py

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
"""
22
Tests specific to releasing a version of databento-python.
33
"""
4+
from __future__ import annotations
5+
46
import operator
57
import re
68
from datetime import date
79

810
import databento
911
import pytest
12+
import tomli
1013

1114
from tests import PROJECT_ROOT
1215

@@ -28,13 +31,29 @@ def fixture_changelog() -> str:
2831
return changelog.read()
2932

3033

34+
@pytest.fixture(name="pyproject_version")
35+
def fixture_pyproject_version() -> str:
36+
"""
37+
Fixture for the version text of project.toml.
38+
39+
Returns
40+
-------
41+
str
42+
43+
"""
44+
with open(PROJECT_ROOT / "pyproject.toml", "rb") as pyproject:
45+
data = tomli.load(pyproject)
46+
return data["tool"]["poetry"]["version"]
47+
3148
@pytest.mark.release
32-
def test_release_changelog(changelog: str) -> None:
49+
def test_release_changelog(changelog: str, pyproject_version: str) -> None:
3350
"""
34-
Test that CHANGELOG.md contains correct version information.
51+
Test that CHANGELOG.md and pyproject.toml contain correct version
52+
information.
3553
3654
This test verifies that:
37-
- The version in `version.py` matches the latest release note.
55+
- The version in `version.py` matches the latest release note
56+
- The version in `version.py` matches the version in `pyproject.toml`
3857
- The versions are unique.
3958
- The versions are ascending.
4059
- The release dates are chronological.
@@ -59,6 +78,9 @@ def test_release_changelog(changelog: str) -> None:
5978
# Ensure latest version matches `__version__`
6079
assert databento.__version__ == versions[0]
6180

81+
# Ensure latest version matches pyproject.toml
82+
assert databento.__version__ == pyproject_version
83+
6284
# Ensure versions are unique
6385
assert len(versions) == len(set(versions))
6486

0 commit comments

Comments
 (0)