Poetry-auto-export

Latest version: v0.3.1

Safety actively analyzes 701370 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.1

What's Changed
* add only_root and only options to _prepare_export_args by RichieCahill in https://github.com/Ddedalus/poetry-auto-export/pull/17
* added pytest-cov by RichieCahill in https://github.com/Ddedalus/poetry-auto-export/pull/16

New Contributors
* RichieCahill made their first contribution in https://github.com/Ddedalus/poetry-auto-export/pull/17

**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.3.0...0.3.1

0.3.0

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:

python
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.

bash
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:

bash
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 https://github.com/Ddedalus/poetry-auto-export/pull/14
* Routine dependency updates
* Test refactors


**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.2.2...0.3.0

0.2.2

**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.2.1...0.2.2

0.2.1

What's Changed
* Bump cryptography from 42.0.1 to 42.0.4 by dependabot in https://github.com/Ddedalus/poetry-auto-export/pull/9
* fix: Not creating the requirements.txt file by Ddedalus in https://github.com/Ddedalus/poetry-auto-export/pull/8

**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.2.0...0.2.1

0.2.0

**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.1.2...0.2.0

0.1.2

What's Changed
* Add repository link by Ddedalus in https://github.com/Ddedalus/poetry-auto-export/pull/1
*
**Full Changelog**: https://github.com/Ddedalus/poetry-auto-export/compare/0.1.1...0.1.2

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.