Skip to content

Releases: Ddedalus/poetry-auto-export

0.3.1: Support `--root-only` and `--only` poetry options

15 Oct 20:22
8b09045
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.0...0.3.1

0.3.0: Easy check if the requirements file is in sync with poetry.lock

26 Sep 07:03
ac67500
Compare
Choose a tag to compare

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

23 May 20:18
f00e4d5
Compare
Choose a tag to compare

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

10 Mar 23:43
9862ec9
Compare
Choose a tag to compare

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

26 Jan 18:12
ce65935
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.2...0.2.0

Make repository public

17 Nov 22:35
f2842d0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.1...0.1.2

MVP of the plugin

17 Nov 22:24
Compare
Choose a tag to compare

Initial release of the plugin with basic functionality.