From 184618b4812d3ef85d9a0f95a9973c112accb8ad Mon Sep 17 00:00:00 2001 From: Ezequiel Parziale Date: Wed, 21 Dec 2022 21:33:08 -0300 Subject: [PATCH] :wastebasket: update: deprecate poetry-version-plugin - drop poetry-version-plugin - now set version in poetry --- .github/workflows/build-docs.yml | 1 - .github/workflows/publish.yml | 1 - .github/workflows/test.yml | 1 - pyproject.toml | 5 +---- sqlmodel/__init__.py | 3 ++- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 39e047c25e..f6d7cd1c34 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -40,7 +40,6 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install "poetry==1.3.1" - python -m poetry self add poetry-version-plugin - name: Configure poetry run: python -m poetry config virtualenvs.create false - name: Install Dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a098e74b1..8986c40f3f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,6 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install "poetry==1.3.1" - python -m poetry self add poetry-version-plugin - name: Configure poetry run: python -m poetry config virtualenvs.create false - name: Install Dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f4d3aafa8..fa5b5bac2f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,6 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install "poetry==1.3.1" - python -m poetry self add poetry-version-plugin - name: Configure poetry run: python -m poetry config virtualenvs.create false - name: Install Dependencies diff --git a/pyproject.toml b/pyproject.toml index 960cdd08c7..a8dbe946eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sqlmodel" -version = "0" +version = "0.0.8" description = "SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness." authors = ["Sebastián Ramírez "] readme = "README.md" @@ -56,9 +56,6 @@ async-exit-stack = {version = "*"} requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" -[tool.poetry-version-plugin] -source = "init" - [tool.coverage.run] parallel = true source = [ diff --git a/sqlmodel/__init__.py b/sqlmodel/__init__.py index 720aa8c929..f65ea5eef4 100644 --- a/sqlmodel/__init__.py +++ b/sqlmodel/__init__.py @@ -1,4 +1,5 @@ -__version__ = "0.0.8" +import importlib.metadata +__version__ = importlib.metadata.version("sqlmodel") # Re-export from SQLAlchemy from sqlalchemy.engine import create_mock_engine as create_mock_engine