Skip to content

Commit

Permalink
Prepare v4.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed May 28, 2024
1 parent 9e7e1d3 commit 549fa0b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.swp
.cache/
.coverage
.pytest_cache/
.tox/
MANIFEST
build/
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2022 Thomas Kemmer
Copyright (c) 2014-2024 Thomas Kemmer

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
27 changes: 23 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
import pathlib
import sys

src_directory = (pathlib.Path(__file__).parent.parent / "src").resolve()
sys.path.insert(0, str(src_directory))


# Extract the current version from the source.
def get_version():
"""Get the version and release from the source code."""

text = (src_directory / "uritools/__init__.py").read_text()
for line in text.splitlines():
if not line.strip().startswith("__version__"):
continue
full_version = line.partition("=")[2].strip().strip("\"'")
partial_version = ".".join(full_version.split(".")[:2])
return full_version, partial_version


project = "uritools"
copyright = "2014-2023 Thomas Kemmer"
version = "4.0"
release = "4.0.2"
copyright = "2014-2024 Thomas Kemmer"
release, version = get_version()

extensions = [
"sphinx.ext.autodoc",
Expand All @@ -11,4 +30,4 @@
]
exclude_patterns = ["_build"]
master_doc = "index"
html_theme = "default"
html_theme = "classic"
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ url = https://github.com/tkem/uritools/
author = Thomas Kemmer
author_email = [email protected]
license = MIT
license_file = LICENSE
license_files = LICENSE
description = URI parsing, classification and composition
long_description = file: README.rst
classifiers =
Expand Down Expand Up @@ -37,6 +37,8 @@ where = src
max-line-length = 80
exclude = .git, .tox, build
select = C, E, F, W, B, B950, I, N
# E501: line too long (black)
# W503 line break before binary operator (black)
ignore = E501, W503

[build_sphinx]
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ envlist = check-manifest,docs,doctest,flake8,py

[testenv]
deps =
coverage
pytest
pytest-cov
commands =
Expand Down

0 comments on commit 549fa0b

Please sign in to comment.