Skip to content

Commit 48eb258

Browse files
committed
2024 maintenance
1 parent da929f8 commit 48eb258

File tree

9 files changed

+30
-21
lines changed

9 files changed

+30
-21
lines changed

.github/workflows/test-and-publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.9"]
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9"]
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

@@ -44,13 +44,14 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848

4949
- name: Build source distribution and wheel
5050
run: python3 setup.py sdist bdist_wheel
5151

52-
- uses: actions/upload-artifact@v3
52+
- uses: actions/upload-artifact@v4
5353
with:
54+
name: dist
5455
path: |
5556
dist/*.tar.gz
5657
dist/*.whl
@@ -61,12 +62,12 @@ jobs:
6162
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
6263

6364
steps:
64-
- uses: actions/download-artifact@v3
65+
- uses: actions/download-artifact@v4
6566
with:
66-
name: artifact
6767
path: dist
68+
merge-multiple: true
6869

69-
- uses: pypa/gh-action-pypi-publish@v1.5.1
70+
- uses: pypa/gh-action-pypi-publish@v1.9.0
7071
with:
7172
user: __token__
7273
password: ${{ secrets.pypi_token }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ __pycache__/
66
.mypy_cache/
77
.coverage
88

9+
build/
910
docs/_build/

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [1.0.3] - 9th of July, 2024
10+
911
### Changed
1012
- Removed unnecessary complexity/flexibility by returning `None` instead of `Any` from abstract methods whose return values are not used
1113
- The bundle publishing logic in the signed pre key rotation did not correctly double the retry delay
1214
- Log message improvements
15+
- 2024 maintenance (bumped Python versions, adjusted for updates to pydantic, mypy, pylint, pytest and GitHub actions)
16+
17+
### Fixed
18+
- Fixed a bug where a modified bundle might not be uploaded correctly
1319

1420
## [1.0.2] - 4th of November, 2022
1521

@@ -133,7 +139,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
133139
### Changed
134140
- Upon serialization the current library version is added to the serialized structures, to allow for seamless updates in the future.
135141

136-
[Unreleased]: https://github.com/Syndace/python-omemo/compare/v1.0.2...HEAD
142+
[Unreleased]: https://github.com/Syndace/python-omemo/compare/v1.0.3...HEAD
143+
[1.0.3]: https://github.com/Syndace/python-omemo/compare/v1.0.2...v1.0.3
137144
[1.0.2]: https://github.com/Syndace/python-omemo/compare/v1.0.1...v1.0.2
138145
[1.0.1]: https://github.com/Syndace/python-omemo/compare/v1.0.0...v1.0.1
139146
[1.0.0]: https://github.com/Syndace/python-omemo/compare/v0.14.0...v1.0.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2022 Tim Henkes (Syndace)
3+
Copyright (c) 2024 Tim Henkes (Syndace)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

functionality.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@
153153

154154
# Part of the respective backends
155155

156-
- [ ] a state migration tool/function is provided for migration from legacy python-omemo to the new storage format
156+
- [x] a state migration tool/function is provided for migration from legacy python-omemo to the new storage format
157157
- [ ] a state migration tool/function is provided for migration from libsignal to python-omemo
158158

159-
- [ ] convenience functions for XML (de)serialization is provided using the ElementTree API
160-
- [ ] this part is fully optional, the application may take care of (de)serialization itself
161-
- [ ] installed only when doing `pip install python-omemo-backend-foo[etree]`
159+
- [x] convenience functions for XML (de)serialization is provided using the ElementTree API
160+
- [x] this part is fully optional, the application may take care of (de)serialization itself
161+
- [x] installed only when doing `pip install *backend*[xml]`

omemo/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name" : "OMEMO",
55
"description" : "A Python implementation of the OMEMO Multi-End Message and Object Encryption protocol.",
66
"url" : "https://github.com/Syndace/python-omemo",
7-
"year" : "2022",
7+
"year" : "2024",
88
"author" : "Tim Henkes (Syndace)",
99
"author_email" : "[email protected]",
1010
"categories" : [

omemo/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__all__ = [ "__version__" ] # pylint: disable=unused-variable
22

33
__version__ = {}
4-
__version__["short"] = "1.0.2"
4+
__version__["short"] = "1.0.3"
55
__version__["tag"] = "stable"
66
__version__["full"] = f"{__version__['short']}-{__version__['tag']}"

pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,5 +494,5 @@ min-public-methods=0
494494

495495
# Exceptions that will emit a warning when being caught. Defaults to
496496
# "BaseException, Exception".
497-
overgeneral-exceptions=BaseException,
498-
Exception
497+
overgeneral-exceptions=builtins.BaseException,
498+
builtins.Exception

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from typing import Dict, Union, List
44

5-
from setuptools import setup, find_packages # type: ignore[import]
5+
from setuptools import setup, find_packages # type: ignore[import-untyped]
66

77
source_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), "omemo")
88

@@ -27,11 +27,11 @@
2727
"Programming Language :: Python :: 3",
2828
"Programming Language :: Python :: 3 :: Only",
2929

30-
"Programming Language :: Python :: 3.7",
3130
"Programming Language :: Python :: 3.8",
3231
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
3535

3636
"Programming Language :: Python :: Implementation :: CPython",
3737
"Programming Language :: Python :: Implementation :: PyPy"
@@ -61,7 +61,7 @@
6161
"XEdDSA>=1.0.0,<2",
6262
"typing-extensions>=4.3.0"
6363
],
64-
python_requires=">=3.7",
64+
python_requires=">=3.8",
6565
include_package_data=True,
6666
zip_safe=False,
6767
classifiers=classifiers,

0 commit comments

Comments
 (0)