Skip to content

Commit

Permalink
Refactoring package version placeholder and update 0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ri-gilfanov committed Jun 22, 2021
1 parent 80ed585 commit e8f4182
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 31 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ formats: all
# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion aiohttp_sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
SAView,
)

__version__ = "0.17.0"
__version__ = "0.17.1"

__all__ = [
"SA_DEFAULT_KEY",
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
import os
import sys

sys.path.insert(0, os.path.abspath(".."))
import toml

sys.path.insert(0, os.path.abspath(".."))

# -- Project information -----------------------------------------------------

Expand All @@ -23,7 +24,7 @@
author = "Ruslan Ilyasovich Gilfanov"

# The full version, including alpha/beta/rc tags
release = "0.17.0"
release = toml.load("../pyproject.toml")["tool"]["poetry"]["version"]


# -- General configuration ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
toml
62 changes: 37 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiohttp-sqlalchemy"
version = "0.17.0"
version = "0.17.1"
description = "SQLAlchemy 1.4 / 2.0 support for aiohttp."
authors = [
"Ruslan Ilyasovich Gilfanov <ri.gilfanov@yandex.ru>",
Expand Down Expand Up @@ -44,11 +44,12 @@ aiosqlite = ">=0.17.0"
black = ">=21.6b0"
flake8 = ">=3.9.2"
isort = ">=5.9.1"
mypy = ">=0.902"
mypy = ">=0.910"
pytest = ">=6.2.4"
pytest-cov = ">=2.12.1"
Sphinx = ">=4.0.2"
sphinx_rtd_theme = ">=0.5.2"
types-toml = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
6 changes: 5 additions & 1 deletion tests/test_aiohttp_sqlalchemy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import toml

from aiohttp_sqlalchemy import __version__


def test_version() -> None:
assert __version__ == "0.17.0"
pyproject = toml.load("./pyproject.toml")
version = pyproject["tool"]["poetry"]["version"]
assert __version__ == version

0 comments on commit e8f4182

Please sign in to comment.