Pyproject2conda

Latest version: v0.19.1

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

Scan your dependencies

Page 1 of 3

0.19.1

Changed

- Bugfix in pre-commit hooks. Now respects `header = false` in environments.

0.19.0

Added

- Added pre-commit hooks `pyproject2conda-project`, `pyproject2conda-yaml`, and
`pyproject2conda-requirements`.

Changed

- Changed default of `--overwrite` to `force`. This simplifies using with
`pre-commit`.
- `--commit-command` defaults to `pre-commit` when run under pre-commit

0.18.0

Added

- Can now specify current package in dependency-groups like with extras. For
example, with:

toml
[project]
name = "mypackage"
...

optional-dependencies.opt = [ "opt1" ]

[dependency-groups]
dev = [
"pytest",
"mypackage[opt]"
]


Will render optional dependencies from `opt` extra when using group `dev`

- Added flag `--pip-only` to treat all requirements as pip requirements in
`environment.yaml` files. Closes 8

0.16.0

Changed

- Read default version from first found file, in order,
`.python-version-default` and `.python-version`. This allows for "default"
version being different from pinned version specifier, as the latter can be a
range of python values.

0.15.0

Added

- Can now pass requirements for package with `--req/-r "-e ."` for example.

0.14.0

Added

- `--python` flag now accepts options `default`, `all`, `lowest`, and `highest`.
`default` sets python to value found in `.python-version` file in current
directory. Other options extract values entries of form
`"Programming Language :: Python :: 3.10"'`, etc,from
`pyproject.toml:project.classifiers` table.

- `all`: All specified python version
- `lowest`: Lowest python version
- `highest`: Highest python version

- Added `--reqs-ext` and `--yaml-ext` options.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.