From c209588aa101e43bd9d534961755718791d4ee5d Mon Sep 17 00:00:00 2001 From: pksol Date: Mon, 9 May 2022 15:56:09 +0300 Subject: [PATCH] fix production pypi deployment (#11) Fix the production deployment action --- .github/workflows/publish-to-pypi.yml | 4 ++-- poetry.lock | 6 +++--- pyproject.toml | 14 ++++++++------ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 5346dc8..c2360ff 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -78,9 +78,9 @@ jobs: run: | poetry export --dev --without-hashes -f requirements.txt --output test-requirements.txt pip install -r test-requirements.txt - pip install pytest-mock-generator + pip install pytest-fastapi-deps python -m pytest -vvv -k "test_public_api" - export INSTALLED=`pip freeze | grep pytest-mock-generator` + export INSTALLED=`pip freeze | grep pytest-fastapi-deps` echo "installed is: $INSTALLED, and we care about ${INSTALLED:21}" export EXPECTED=`poetry version --short` echo "expected is: $EXPECTED" diff --git a/poetry.lock b/poetry.lock index 1c8270a..b6cff9b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -18,7 +18,7 @@ trio = ["trio (>=0.16)"] [[package]] name = "astroid" -version = "2.11.4" +version = "2.11.5" description = "An abstract syntax tree for Python with inference support." category = "dev" optional = false @@ -790,8 +790,8 @@ anyio = [ {file = "anyio-3.5.0.tar.gz", hash = "sha256:a0aeffe2fb1fdf374a8e4b471444f0f3ac4fb9f5a5b542b48824475e0042a5a6"}, ] astroid = [ - {file = "astroid-2.11.4-py3-none-any.whl", hash = "sha256:da0632b7c046d8361dfe1b1abb2e085a38624961fabe2997565a9c06c1be9d9a"}, - {file = "astroid-2.11.4.tar.gz", hash = "sha256:561dc6015eecce7e696ff7e3b40434bc56831afeff783f0ea853e19c4f635c06"}, + {file = "astroid-2.11.5-py3-none-any.whl", hash = "sha256:14ffbb4f6aa2cf474a0834014005487f7ecd8924996083ab411e7fa0b508ce0b"}, + {file = "astroid-2.11.5.tar.gz", hash = "sha256:f4e4ec5294c4b07ac38bab9ca5ddd3914d4bf46f9006eb5c0ae755755061044e"}, ] atomicwrites = [ {file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"}, diff --git a/pyproject.toml b/pyproject.toml index 52d9253..150638d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "pytest-fastapi-deps" -version = "0.1.4" +version = "0.1.5" description = "A fixture which allows easy replacement of fastapi dependencies for testing" readme = "README.md" authors = ["Peter Kogan "] @@ -18,16 +18,18 @@ keywords = [] #! Update me # Pypi classifiers: https://pypi.org/classifiers/ classifiers = [ #! Update me - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "Topic :: Software Development :: Libraries :: Python Modules", - "License :: OSI Approved :: MIT License", + "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Topic :: Software Development :: Testing", + "Framework :: Pytest", + "License :: OSI Approved :: MIT License", + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Operating System :: OS Independent", ] [tool.poetry.plugins.pytest11]