Releases: Ddedalus/poetry-auto-export
0.3.1: Support `--root-only` and `--only` poetry options
What's Changed
- add only_root and only options to _prepare_export_args by @RichieCahill in #17
- added pytest-cov by @RichieCahill in #16
New Contributors
- @RichieCahill made their first contribution in #17
Full Changelog: 0.3.0...0.3.1
0.3.0: Easy check if the requirements file is in sync with poetry.lock
New Feature: detect lock file changes
Suppose you're working on a project with CI/CD and several contributors. You want the CI/CD to depend on the requirements.txt
file created by poetry-auto-export
, but you need to make sure everyone updates the requirements.txt
file correctly.
To make this easy, poetry-auto-export
puts a SHA1 hash in a comment on top of requirements.xtx
file. In CI/CD you can quickly compute the hash and compare that with the comment without installing poetry or any other dependencies.
Here is an example python script that does this:
import hashlib
from pathlib import Path
lock_hash = hashlib.sha1(Path("poetry.lock").read_bytes()).hexdigest()
first_line = Path("requirements.txt").read_text().split("\n")[0]
if first_line != f"# poetry.lock hash: {lock_hash}":
raise ValueError("requirements.txt is out of date, use the `poetry-auto-export` plugin to update it!")
A more fancy version of the above script is shipped with this package as check_requirements_file.py
.
You can also download it from the Github repository directly, e.g.
curl -O https://raw.githubusercontent.com/Ddedalus/poetry-auto-export/refs/heads/main/poetry_auto_export/check_requirements_file.py
Or pipe straight into python, for a quick one-liner:
curl -sSL https://raw.githubusercontent.com/Ddedalus/poetry-auto-export/refs/heads/main/poetry_auto_export/check_requirements_file.py | python3 -
What's Changed
- Easy check if the requirements file is in sync with poetry.lock by @Ddedalus in #14
- Routine dependency updates
- Test refactors
Full Changelog: 0.2.2...0.3.0
0.2.2: fix error when no pyproject.toml is present
What's Changed
- Fix error when pyproject.toml is missing in the cwd by @Ddedalus in #12
- Release 0.2.2 and package updates by @Ddedalus in #13
Full Changelog: 0.2.1...0.2.2
0.2.1: fix toml parsing issues
What's Changed
- Bump cryptography from 42.0.1 to 42.0.4 by @dependabot in #9
- fix: Not creating the requirements.txt file by @Ddedalus in #8
Full Changelog: 0.2.0...0.2.1
0.2.0: Support multiple export files
Make repository public
MVP of the plugin
Initial release of the plugin with basic functionality.