diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 346631c0..7b82f668 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,7 +84,6 @@ jobs: - name: Install and build run: | python -m pip install -r docs/requirements.txt - python -m pip install -e . make docs tests: diff --git a/.readthedocs.yml b/.readthedocs.yml index b9870409..a34d6434 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -7,6 +7,5 @@ build: commands: - pip install -U pip - pip install -U -r docs/requirements.txt - - pip install -e . - make docs - mv docs/_build $READTHEDOCS_OUTPUT diff --git a/Makefile b/Makefile index 27d4e898..cb64d796 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := $(shell python -c "import bootstrap4;print(bootstrap4.__version__)") +VERSION := $(shell sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml) .PHONY: test test: diff --git a/docs/conf.py b/docs/conf.py index 859f96f2..46810fd5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,15 +1,12 @@ -import importlib from datetime import datetime import tomllib -module = importlib.import_module("bootstrap4") - with open("../pyproject.toml", "rb") as f: pyproject = tomllib.load(f) project = pyproject["project"]["name"] -release = module.__version__ +release = pyproject["project"]["version"] version = ".".join(release.split(".")[:2]) author = ", ".join(author["name"] for author in pyproject["project"]["authors"]) year = datetime.now().year diff --git a/requirements-dev.txt b/requirements-dev.txt index 85514cc9..9c8d1209 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -r requirements-test.txt -r docs/requirements.txt -django==5.0 +twine==4.0.2 diff --git a/src/bootstrap4/__about__.py b/src/bootstrap4/__about__.py index 961690fa..68ff86d0 100644 --- a/src/bootstrap4/__about__.py +++ b/src/bootstrap4/__about__.py @@ -1 +1 @@ -__version__ = "23.3.dev0" +__version__ = "23.3.dev1" diff --git a/tests/test_forms.py b/tests/test_forms.py index 8c28d779..b181cb0f 100644 --- a/tests/test_forms.py +++ b/tests/test_forms.py @@ -154,9 +154,7 @@ def test_input_group_addon_button(self): self.assertIn('