Skip to content

Commit

Permalink
chore: refactor, bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Laerte committed Jul 26, 2023
1 parent f11411a commit 08235c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: [email protected]:PyCQA/isort.git
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: [email protected]:psf/black.git
rev: 22.3.0
rev: 23.7.0
hooks:
- id: black
7 changes: 0 additions & 7 deletions aes_pkcs5/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
from importlib.metadata import metadata

__version__, __author__ = list(
map(lambda x: metadata("aes_pkcs5")[x], ["Version", "Author"])
)

__all__ = ("__version__", "__author__")
9 changes: 4 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
from datetime import datetime

from aes_pkcs5 import __author__, __version__
from importlib.metadata import metadata

# -- Project information -----------------------------------------------------

project = "AESPKCS5"
copyright = f"{datetime.utcnow():%Y}, {__author__}"
author = __author__
author = metadata("aes_pkcs5")["Author"]
copyright = f"{datetime.utcnow():%Y}, {author}"

# The full version, including alpha/beta/rc tags
release = "2022"
Expand Down Expand Up @@ -55,4 +54,4 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

version = __version__
version = metadata("aes_pkcs5")["Version"]
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
black>=22.3.0
isort>=5.10.1
pre-commit>=2.19.0
black>=23.7.0
isort>=5.12.0
pre-commit>=3.3.3

0 comments on commit 08235c8

Please sign in to comment.