From fb468de8f10ab73766d2a9835baf839f8c835234 Mon Sep 17 00:00:00 2001 From: Omar <102324541+Ofahmy143@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:11:54 +0300 Subject: [PATCH] feat: update release workflow to run on main branch --- .github/workflows/pipeline.yml | 1 + .github/workflows/quality.yml | 2 +- poetry.lock | 55 +++------------------------------- pyproject.toml | 10 +++---- 4 files changed, 10 insertions(+), 58 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 4fb7770..ba54723 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -8,5 +8,6 @@ jobs: uses: DelfinaCare/rls/.github/workflows/quality.yml@main release: + needs: quality-test name: Release uses: DelfinaCare/rls/.github/workflows/release.yml@main diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index be73084..efb72c4 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -25,4 +25,4 @@ jobs: - name: Install Dependencies run: poetry install - name: Run Mypy - run: poetry run mypy src --explicit-package-bases + run: poetry run mypy . diff --git a/poetry.lock b/poetry.lock index 7f06856..5dcd791 100644 --- a/poetry.lock +++ b/poetry.lock @@ -314,26 +314,6 @@ files = [ [package.extras] testing = ["hatch", "pre-commit", "pytest", "tox"] -[[package]] -name = "fastapi" -version = "0.114.2" -description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production" -optional = false -python-versions = ">=3.8" -files = [ - {file = "fastapi-0.114.2-py3-none-any.whl", hash = "sha256:44474a22913057b1acb973ab90f4b671ba5200482e7622816d79105dcece1ac5"}, - {file = "fastapi-0.114.2.tar.gz", hash = "sha256:0adb148b62edb09e8c6eeefa3ea934e8f276dabc038c5a82989ea6346050c3da"}, -] - -[package.dependencies] -pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0" -starlette = ">=0.37.2,<0.39.0" -typing-extensions = ">=4.8.0" - -[package.extras] -all = ["email-validator (>=2.0.0)", "fastapi-cli[standard] (>=0.0.5)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"] -standard = ["email-validator (>=2.0.0)", "fastapi-cli[standard] (>=0.0.5)", "httpx (>=0.23.0)", "jinja2 (>=2.11.2)", "python-multipart (>=0.0.7)", "uvicorn[standard] (>=0.12.0)"] - [[package]] name = "filelock" version = "3.16.1" @@ -681,16 +661,6 @@ files = [ {file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"}, ] -[[package]] -name = "once-py" -version = "0.0.6" -description = "Utility for initialization ensuring functions are called only once" -optional = false -python-versions = ">=3.8" -files = [ - {file = "once_py-0.0.6-py3-none-any.whl", hash = "sha256:9e754f76e0fe9379ff7a18c375eea1d3389f0a5ae02843efa0964440d0ce7278"}, -] - [[package]] name = "packaging" version = "24.1" @@ -1136,23 +1106,6 @@ postgresql-psycopgbinary = ["psycopg[binary] (>=3.0.7)"] pymysql = ["pymysql"] sqlcipher = ["sqlcipher3_binary"] -[[package]] -name = "starlette" -version = "0.38.5" -description = "The little ASGI library that shines." -optional = false -python-versions = ">=3.8" -files = [ - {file = "starlette-0.38.5-py3-none-any.whl", hash = "sha256:632f420a9d13e3ee2a6f18f437b0a9f1faecb0bc42e1942aa2ea0e379a4c4206"}, - {file = "starlette-0.38.5.tar.gz", hash = "sha256:04a92830a9b6eb1442c766199d62260c3d4dc9c4f9188360626b1e0273cb7077"}, -] - -[package.dependencies] -anyio = ">=3.4.0,<5" - -[package.extras] -full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart (>=0.0.7)", "pyyaml"] - [[package]] name = "typing-extensions" version = "4.12.2" @@ -1201,13 +1154,13 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", [[package]] name = "virtualenv" -version = "20.26.5" +version = "20.26.6" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.7" files = [ - {file = "virtualenv-20.26.5-py3-none-any.whl", hash = "sha256:4f3ac17b81fba3ce3bd6f4ead2749a72da5929c01774948e243db9ba41df4ff6"}, - {file = "virtualenv-20.26.5.tar.gz", hash = "sha256:ce489cac131aa58f4b25e321d6d186171f78e6cb13fafbf32a840cee67733ff4"}, + {file = "virtualenv-20.26.6-py3-none-any.whl", hash = "sha256:7345cc5b25405607a624d8418154577459c3e0277f5466dd79c49d5e492995f2"}, + {file = "virtualenv-20.26.6.tar.gz", hash = "sha256:280aede09a2a5c317e409a00102e7077c6432c5a38f0ef938e643805a7ad2c48"}, ] [package.dependencies] @@ -1222,4 +1175,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = ">=3.11" -content-hash = "75ca2ed936ab99fc05338aef71109b44a19bdd232f159f08d956b42c77a52ba2" +content-hash = "5a9ac42344d7946ce894fdae34f4852ff7af06d1681eb0ebad8e0a7cf7c53386" diff --git a/pyproject.toml b/pyproject.toml index c56d558..bb0181b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,6 @@ readme = "README.md" python = ">=3.11" annotated-types = "0.7.0" anyio = "4.4.0" -fastapi = "0.114.2" greenlet = "3.1.0" idna = "3.10" psycopg2 = "2.9.9" @@ -20,10 +19,9 @@ pydantic = "2.9.1" pydantic-core = "2.23.3" sniffio = "1.3.1" sqlalchemy = "2.0.34" -starlette = "0.38.5" typing-extensions = "4.12.2" asyncpg = "^0.29.0" -once-py = "^0.0.6" +alembic = "^1.13.3" [tool.poetry.group.dev.dependencies] @@ -42,7 +40,7 @@ alembic = "^1.13.3" [tool.semantic_release] -branch= "release" +branch= "main" assets = [] commit_message = "{version}\n\nNew Release" commit_parser = "angular" @@ -68,7 +66,7 @@ build_command = "pip install poetry && poetry build" [tool.semantic_release.branches.release-action] -match = "release" +match = "main" [tool.semantic_release.commit_parser_options] @@ -95,7 +93,7 @@ version = "0.3.0" authors = [ { name = "DelfinaCare", email = "open-source@delfina.com" } ] -description = "fastapi sqlalchemy rls integration package" +description = "python sqlalchemy rls integration package for psql" readme = "README.md" requires-python = ">=3.11" classifiers = [