Skip to content

Commit

Permalink
🗑️ update: deprecate poetry-version-plugin
Browse files Browse the repository at this point in the history
- drop poetry-version-plugin
- now set version in poetry
  • Loading branch information
ezeparziale committed Dec 22, 2022
1 parent 37186b0 commit 184618b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <tiangolo@gmail.com>"]
readme = "README.md"
Expand Down Expand Up @@ -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 = [
Expand Down
3 changes: 2 additions & 1 deletion sqlmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 184618b

Please sign in to comment.