hatch-dynamic-versioning (#17)
- remove pkg_resources requirement to output project version - project version is not globally defined in pytest_abra/__init__.py - use hatch dynamic to get version in pyproject.toml Reviewed-on: local-it-infrastructure/e2e_tests#17 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
2dd765a974
commit
8b9dd47f9e
3 changed files with 8 additions and 4 deletions
|
|
@ -2,16 +2,15 @@ import argparse
|
|||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import pkg_resources # type: ignore
|
||||
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.utils import get_session_id
|
||||
|
||||
|
||||
def get_version():
|
||||
return pkg_resources.get_distribution("pytest_abra").version
|
||||
return __version__
|
||||
|
||||
|
||||
def run():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue