damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)
https://damnever.github.io/pigar/
BSD 3-Clause "New" or "Revised" License
1.61k stars 90 forks source link

Exclude the package itself from requirements #204

Open The-One-Who-Speaks-and-Depicts opened 2 months ago

The-One-Who-Speaks-and-Depicts commented 2 months ago

Is your feature request related to a problem? Please describe. I had my package installed within the environment, where I developed my package. I have cross-imports between package modules, so each time I run pigar generate within the project folder, my package appears in the requirements.txt.

Describe the solution you'd like Something like --exclude-package option for generate function that takes strings of package names, split by space, and excludes them from generated file.

Describe alternatives you've considered I have tried deleting package from the environment, but then there is a warning of a non-installed package.