Skip to content

Commit 608c179

Browse files
committed
Moved __version__ to version.py
1 parent fb792ab commit 608c179

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
sys.path.insert(0, os.path.abspath('../'))
1414

15-
from lxmlh import __version__
15+
from lxmlh.version import __version__
1616

1717

1818
project = 'lxmlh'

lxmlh/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
validate_file,
2020
validate_zip_file,
2121
)
22-
23-
__version__ = "1.3.2"
22+
from .version import __version__
2423

2524
__all__ = (
2625
"__version__",

lxmlh/version.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Version information for lxmlh."""
2+
3+
__version__ = "1.3.2"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ include-package-data = true
6565
packages = ["lxmlh"]
6666

6767
[tool.setuptools.dynamic]
68-
version = {attr = "lxmlh.__version__"}
68+
version = {attr = "lxmlh.version.__version__"}
6969

7070
[tool.pytest.ini_options]
7171
addopts = "--cov lxmlh --cov-report term-missing --verbose"

0 commit comments

Comments
 (0)