A collection of scripts replace local packages with versions and vice versa
Project description
poetry-dev
This package is not maintained anymore
When developing multiple Python packages concurrently with Poetry manageed environments you
can install the local package as path requirements. Ie when you develop bar
which have foo
as dependency, which you also want to edit, you can
do poetry add ../foo
from bar
package. But when you want to publish
bar
, you have to change the path requirement back to a version requirement.
After publishing bar
you have to switch back to foo
as a path requirement
in order to continue develop both concurrently.
This package will help you to improve that task. With one command all version requirements will be changed to path requirements (when the package is checkout in a sibling directory with the same as the package name).
poetry_dev path
This results in a changed pyproject.toml
file. poetry update
is called
to make sure the package on the path is installed as editable package.
Before publishing, the path requirements can be switched back to version requirements with the following command.
poetry_dev version
The version of the dependency on the local path will be
used as minimal caret version in the changed pyproject.toml
and
poetry update
is called to make sure the corresponding version
from the repository will be installed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file poetry_dev-0.2.3.tar.gz
.
File metadata
- Download URL: poetry_dev-0.2.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80821e0769c4f00c234bc9faac00846dc33672ede843535a7040c8fe4decd04 |
|
MD5 | c04b3b8c4047cf199ba4cbf021bff1ee |
|
BLAKE2b-256 | 8fc8861839f65167c0a9919967d3e7c6cb31692fe06bb3c857b30f8b432ca4dd |
File details
Details for the file poetry_dev-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: poetry_dev-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af29c0607fb27504c3bb589996a3e9267d89b39cfe7a297112a1ca5e8390373b |
|
MD5 | 0a1ffec759fd741d187c17610fe216f1 |
|
BLAKE2b-256 | 7f96be27ee4d5548187e340c48eb20054ea33b4387d8343182439734993b0df7 |