hatch-dynamic-versioning #17
3 changed files with 8 additions and 4 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
[project]
|
[project]
|
||||||
name = "pytest-abra"
|
name = "pytest-abra"
|
||||||
description = "A pytest plugin to test instances of abra recipes"
|
description = "A pytest plugin to test instances of abra recipes"
|
||||||
|
dynamic = ["version"]
|
||||||
authors = [{name = "Local-IT e.V."}]
|
authors = [{name = "Local-IT e.V."}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "0.2.0"
|
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
|
|
@ -42,6 +42,9 @@ abratest = "pytest_abra.cli:run"
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.version]
|
||||||
|
path = "pytest_abra/__init__.py"
|
||||||
|
|
||||||
[tool.hatch.build]
|
[tool.hatch.build]
|
||||||
include = [
|
include = [
|
||||||
"pytest_abra/*.py",
|
"pytest_abra/*.py",
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@ __all__ = [
|
||||||
"EnvFile",
|
"EnvFile",
|
||||||
"EnvManager",
|
"EnvManager",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
__version__ = "0.3.0"
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,15 @@ import argparse
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pkg_resources # type: ignore
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from pytest_abra import Coordinator
|
from pytest_abra import Coordinator, __version__
|
||||||
from pytest_abra.dir_manager import DirManager
|
from pytest_abra.dir_manager import DirManager
|
||||||
from pytest_abra.utils import get_session_id
|
from pytest_abra.utils import get_session_id
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
return pkg_resources.get_distribution("pytest_abra").version
|
return __version__
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue