Pyproject2conda

Latest version: v0.11.0

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

Scan your dependencies

Page 1 of 2

0.11.0

Added

- Can now access "build-system.requires" as an extra. This can be useful for
creating isolated environments to build a package.

Changed

- Can now specify `pip` as a conda dependency. This is needed for cases that
there are no pip dependencies in the environment, but you want it there for
installing local packages. This may be the case if using `conda-lock` on an
environment. Note that, much like python is always first in the dependency
list, pip is always last.

0.10.0

Added

- Can now specify conda changes using `tool.pyproject2conda.dependencies` table.
This is an alternative to using ` p2c:` comments.
- Refactored code. Split `parser` to `requirements` and `overrides`. Also
cleaned up the parsing logic to hopefully make future changes simpler.

0.9.0

Added

- Default is now to remove whitespace from dependencies. For example, the
dependency `module > 0.1` will become `module>0.1`. To override this
behaviour, pass the option `--no-remove-whitespace`.
- Now supports python version `>3.8,<=3.12`
- Can now specify `extras = false` in pyprojec.toml to skip any extras. The
default (`extras = true`) is the same as `extras = [env_name]` where
`env_name` is the name of the environment (e.g.,
`tool.pyproject2conda.envs.env_name`).

0.8.0

Added

- Added option to either raise error, or print message for environments with no
dependencies.

Changed

- pyproject2conda now works with `pyproject.toml` files with no dependencies.

0.7.0

Added

- Now use `logging` to print info output.

Changed

- cli now uses `typer`. Since the program was already typed, this simplifies the
interface.
- Program can now be called with any of `pyproject2conda`, `p2c`, or
`python -m pyproject2conda`.
- Added cli options to web documentation.
- Fixed small typos and typing issues.
- The cli option `--python-include` now requires an argument. This is due to
`typer` not liking options with zero or one arguments. Instead of the bare
flag `--python-include` including the python spec from `pyproject.toml`, you
have to pass `--python-include infer` to get that behavior.
- Added extra `all` to pip install options. The default is to not include `rich`
or `shellingham`. Using `pip install pyproject2conda[all]` includes these
optional packages. Note that the conda-forge recipe is based on the plain
install (i.e., no `rich` or `shellingham`). However, the conda-froge recipe
for `typer` does include these. That means, if you want to install
`pyproject2conda` without the optional extras, you'll have to use pip.

0.6.1

Changed

- Fixed edge case where `--overwrite=check` and have a `user_config`. Now when
using `p2c project` with a `user_config` and `overwrite=check`, the timestamp
of the output file will be compared to both the `filename=pyproject.toml` and
`user_config`.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.