Skip to content

Commit

Permalink
Fix issue31: adapt to python-tuf 2.0 (#32)
Browse files Browse the repository at this point in the history
* issue31:
adapt to python-tuf 2.0

* issue31:
bump version
  • Loading branch information
dennisvang authored Aug 22, 2022
1 parent f5f3b43 commit bb7b420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ packaging==21.*
requests
securesystemslib[crypto,pynacl]==0.22.*
setuptools>=61.0.0
tuf==1.1.*
tuf==2.*
2 changes: 1 addition & 1 deletion src/tufup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
# https://semver.org/
__version__ = '0.2.1'
__version__ = '0.3.0'

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion src/tufup/repo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def replace_key(
try:
# remove old key_id from roles dict, if found, and remove key
# from keys dict if it is no longer used by any roles
self.roles.root.signed.remove_key(
self.roles.root.signed.revoke_key(
role=role_name, keyid=old_key_id
)
# move old key name from key_map to revoked_key_map
Expand Down

0 comments on commit bb7b420

Please sign in to comment.