Python-dev-cli

Latest version: v1.1.0

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

Scan your dependencies

Page 1 of 2

1.1.0

Added

- Add `parse_help` setting, to disable parsing script templates in the `dev` CLI help page
- Add `Template Parsing` subsection to the `Caveats` section of `README.md`
- Add caching for `Scripts.context` property, to avoid rebuilding the context dictionary on every access

Changed

- Modify `Scripts.__resolve()` to use `os.path.expandvars()` for parsing environment variables in script templates
- Modify boolean property setters in `Settings` to correctly parse string values as booleans
- Update `README.md` with new `parse_help` setting and information about parsing environment variables

Fixed

- Raise `ModuleNotFoundError` when attempting to import a missing module, instead of raising `TypeError`
- Only raise an exception and show stack trace if `-d` or `--debug` flag is set in `dev` CLI

1.0.5

Fixed

- GitHub Action `publish` workflow missing build step

1.0.4

Added

- Separate tests into a different GitHub Actions workflow, for running tests on pull requests

Changed

- Modify `publish` GitHub Actions workflow to only run on release, using PyPI trusted publishing
- Modify `test` GitHub Actions workflow to test multiple operating systems and Python versions
- Modify `Scripts.run_script()` to not raise a `FileNotFoundError` if the script does not exist; instead, allow
`subprocess.run()` to raise a `CalledProcessError` if the script command fails to run.

Fixed

- Add `_version.py` to `.gitignore` ensure `setuptools_scm` updates that file correctly

1.0.3

Fixed

- Tag commit for release, to ensure `setuptools_scm` does not append `.dev` suffix to version

1.0.2

Fixed

- Issue with `_version.py` causing lint to fail during GitHub Actions publish workflow

1.0.1

Added

- Build system requirements: `setuptools_scm[toml] >=8.0`, `wheel`
- Dynamic version using [setuptools_scm](https://pypi.org/project/setuptools-scm/)
- Version specifiers for dependencies and dev dependencies
- GitHub Actions publish workflow, triggered when release is published

Changed

- Added dynamic badges to `README.md`
- Updated `CONTRIBUTING.md` instructions for setting up local development environment

Removed

- Static version in `pyproject.toml`
- Optional dev dependency: `pip-tools`
- Superfluous `requirements.txt` and `requirements-dev.txt` files
- Dev scripts for `pip-compile` and `pip-sync` commands

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.