diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5d1139..bdda05f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Test package run: | - PACKAGE_NAME=`(cd dist && ls *whl | cut -f 1 -d "-")` && echo $PACKAGE_NAME - pip install --pre --find-links ./dist/ $PACKAGE_NAME + pip install --pre --find-links ./dist/ "grimoirelab-toolkit[hashicorp-manager]" cd tests && python run_tests.py release: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 42fcd35..cc761d4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,7 @@ jobs: pipx install poetry - name: Install dependencies run: | - poetry install -vvv --with hashicorp-manager + poetry install -vvv -E hashicorp-manager - name: Lint with flake8 run: | poetry run flake8 diff --git a/grimoirelab_toolkit/credential_manager/__main__.py b/grimoirelab_toolkit/credential_manager/__main__.py deleted file mode 100644 index 2b89c9e..0000000 --- a/grimoirelab_toolkit/credential_manager/__main__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .credential_manager import main - -if __name__ == "__main__": - main() diff --git a/poetry.lock b/poetry.lock index 5362178..ed3b68b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,24 +1,26 @@ -# This file is automatically @generated by Poetry 2.3.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.3.2 and should not be changed by hand. [[package]] name = "certifi" -version = "2026.1.4" +version = "2026.2.25" description = "Python package for providing Mozilla's CA Bundle." -optional = false +optional = true python-versions = ">=3.7" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ - {file = "certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c"}, - {file = "certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120"}, + {file = "certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa"}, + {file = "certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7"}, ] [[package]] name = "charset-normalizer" version = "3.4.4" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -optional = false +optional = true python-versions = ">=3.7" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ {file = "charset_normalizer-3.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e824f1492727fa856dd6eda4f7cee25f8518a12f3c4a56a74e8095695089cf6d"}, {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bd5d4137d500351a30687c2d3971758aac9a19208fc110ccb9d7188fbe709e8"}, @@ -275,9 +277,10 @@ pyflakes = ">=3.4.0,<3.5.0" name = "hvac" version = "2.4.0" description = "HashiCorp Vault API client" -optional = false +optional = true python-versions = "<4.0,>=3.8" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ {file = "hvac-2.4.0-py3-none-any.whl", hash = "sha256:008db5efd8c2f77bd37d2368ea5f713edceae1c65f11fd608393179478649e0f"}, {file = "hvac-2.4.0.tar.gz", hash = "sha256:e0056ad9064e7923e874e6769015b032580b639e29246f5ab1044f7959c1c7e0"}, @@ -293,9 +296,10 @@ parser = ["pyhcl (>=0.4.4,<0.5.0)"] name = "idna" version = "3.11" description = "Internationalized Domain Names in Applications (IDNA)" -optional = false +optional = true python-versions = ">=3.8" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ {file = "idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea"}, {file = "idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"}, @@ -359,9 +363,10 @@ six = ">=1.5" name = "requests" version = "2.32.5" description = "Python HTTP for Humans." -optional = false +optional = true python-versions = ">=3.9" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ {file = "requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6"}, {file = "requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"}, @@ -393,9 +398,10 @@ files = [ name = "urllib3" version = "2.6.3" description = "HTTP library with thread-safe connection pooling, file post, and more." -optional = false +optional = true python-versions = ">=3.9" -groups = ["hashicorp-manager"] +groups = ["main"] +markers = "extra == \"hashicorp-manager\"" files = [ {file = "urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4"}, {file = "urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed"}, @@ -407,7 +413,10 @@ h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["backports-zstd (>=1.0.0) ; python_version < \"3.14\""] +[extras] +hashicorp-manager = ["hvac"] + [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "f5e681c634c281c9b5316b6a11b9f19a9f4d7ecd4ad06d13845e29a7f3c6fbaf" +content-hash = "b8b1dec85167dd080012c4e77d5a03a57d5a50aa1074843b85f9049821214735" diff --git a/pyproject.toml b/pyproject.toml index b066b66..c98773c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,12 +39,10 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.10" python-dateutil = "^2.8.2" +hvac = { version = "^2.3.0", optional = true } -[tool.poetry.group.hashicorp-manager] -optional = true - -[tool.poetry.group.hashicorp-manager.dependencies] -hvac = ">=2.3.0" +[tool.poetry.extras] +hashicorp-manager = ["hvac"] [tool.poetry.group.dev.dependencies] flake8 = "^7.1.1"