Skip to content

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Oct 19, 2019
1 parent 5d5980f commit a7f1cef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## v0.2.0 (2019-10-19)

* Added support for Poetry 1.0.0b2.

## v0.1.0 (2019-06-05)

* Initial release.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ does the following:
in which case there is a gap between when Python is fully loaded and when
`~/.poetry/bin/poetry` adds the Poetry lib folder to the PYTHONPATH.
* The patched version of `poetry.console.main` will then, when called,
additionally patch `poetry.poetry.Poetry.create` to replace the version
from your pyproject.toml file with the dynamically generated version.
additionally patch either `poetry.poetry.Poetry.create()` or
`poetry.factory.Factory.create_poetry()` (depending on your Poetry version)
to replace the version from your pyproject.toml file with the dynamically
generated version.

## Development
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).
3 changes: 1 addition & 2 deletions poetry_dynamic_versioning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ def _get_version() -> Tuple[Version, str]:


def _patch_poetry_create() -> None:
has_factory_module = True

try:
has_factory_module = True
poetry_factory_module = _state.original_import_func("poetry.factory", fromlist=["Factory"])
original_poetry_create = poetry_factory_module.Factory.create_poetry
except ModuleNotFoundError:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-dynamic-versioning"
version = "0.1.0"
version = "0.2.0"
description = "Plugin for Poetry to enable dynamic versioning based on VCS tags"
license = "MIT"
authors = ["Matthew T. Kennerly <mtkennerly@gmail.com>"]
Expand All @@ -24,7 +24,7 @@ include = ["zzz_poetry_dynamic_versioning.pth"]

[tool.poetry.dependencies]
python = "^3.5"
dunamai = ">= 0.8.0, < 2"
dunamai = ">= 0.8.1, < 2"
tomlkit = ">= 0.4"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit a7f1cef

Please sign in to comment.