1
0
forked from Georg/pyacl

Compare commits

...

3 Commits

Author SHA1 Message Date
67d9f915bc
fix: 🐞 dynamic version system for older python and setuptools
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
2024-09-22 02:28:48 +03:00
37a7ea6341
Release version 1.0.1
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-09-22 00:28:34 +02:00
1336676b33 Merge pull request 'feat: replace hatchling to setuptools can be packaged easily at distros' (#1) from osezer/pyacl:feat/setuptools into main
Reviewed-on: Georg/pyacl#1
2024-09-22 00:27:40 +02:00
3 changed files with 9 additions and 10 deletions

View File

@ -8,10 +8,4 @@ An English copy of the Licence is shipped in a file called LICENSE along with th
You may obtain copies of the Licence in any of the official languages at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
"""
import importlib.metadata as importlib_metadata
try:
# This will read version from pyproject.toml
__version__ = importlib_metadata.version(__package__ or __name__)
except importlib_metadata.PackageNotFoundError:
__version__ = "development"
from .__version__ import __version__

1
pyacl/__version__.py Normal file
View File

@ -0,0 +1 @@
__version__ = "1.0.1"

View File

@ -1,12 +1,12 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = 'pyacl'
description = 'High level abstractions over pylibacl'
version = '0.0.1'
readme = "README.md"
dynamic = ["version", "readme"]
authors = [
{ name='Georg Pfuetzenreuter', email='georg+python@lysergic.dev' },
]
@ -44,6 +44,10 @@ dev = [
[tool.setuptools]
include-package-data = true # include non-python files in the package (default)
[tool.setuptools.dynamic]
version = {attr = "pyacl.__version__"}
readme = {file = ["README.md"]}
[tool.setuptools.packages.find]
where = ["."]
exclude = ["scripts", "scripts.*", "docs.*", "tests", "tests.*", "ruff.toml"]