Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ requires = [

[project]
name = "python-re3data"
version = "0.10.0"
description = "The Pythonic client for the re3data API."
readme = "README.md"
keywords = [
Expand Down Expand Up @@ -39,9 +40,6 @@ classifiers = [
"Topic :: Text Processing :: Markup :: XML",
"Typing :: Typed",
]
dynamic = [
"version",
]
dependencies = [
"httpx>=0.27",
"xsdata>=24.5",
Expand Down Expand Up @@ -98,9 +96,6 @@ packages = [
"src/re3data",
]

[tool.hatch.version]
path = "src/re3data/__about__.py"

[tool.hatch.env]
requires = [
"hatch-pip-compile",
Expand Down Expand Up @@ -198,9 +193,6 @@ lint.ignore = [
"D105", # undocumented-magic-method
"D107", # undocumented-public-init
]
lint.per-file-ignores."src/re3data/__about__.py" = [
"D100", # undocumented-public-module
]
lint.per-file-ignores."src/re3data/_resources/*.py" = [
"D101", # undocumented-public-class
"D106", # undocumented-public-nested-class
Expand Down Expand Up @@ -250,7 +242,6 @@ source = [
"re3data",
]
omit = [
"__about__.py",
"__main__.py",
]

Expand Down Expand Up @@ -304,8 +295,8 @@ commit_author = "github-actions[bot] <41898282+github-actions[bot]@users.noreply
commit_message = "chore: release {version}\n\nAutomatically generated by python-semantic-release [skip ci]"
major_on_zero = false
tag_format = "{version}"
version_variables = [
"src/re3data/__about__.py:__version__",
version_toml = [
"pyproject.toml:project.version",
]
build_command = '''
sed -i "s/^version: .*/version: $NEW_VERSION/" CITATION.cff
Expand Down
5 changes: 0 additions & 5 deletions src/re3data/__about__.py

This file was deleted.

5 changes: 4 additions & 1 deletion src/re3data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

"""python-re3data."""

from re3data.__about__ import __version__
from importlib.metadata import version

__version__: str = version("python-re3data")

from re3data._client import AsyncClient, Client, ReturnType
from re3data._exceptions import Re3dataError, RepositoryNotFoundError
from re3data._resources import Re3Data, Repository, RepositoryList, RepositorySummary
Expand Down
Loading