A package to manage and verify Python project environments using Poetry.
Project description
poetry-env-test
poetry-env-test
is a Python package designed to manage and verify Python project environments using Poetry. This package provides tools to clean and set up project environments, check dependencies, and backup and restore dependency configurations.
Features
- Clean Project Environment: Unset
PYTHONPATH
, remove existing Poetry environments, and reinstall dependencies. - Check Project Setup: Verify the presence and structure of project dependencies.
- Backup and Restore Dependencies: Backup current dependencies to a file and restore them if needed.
Installation
To install poetry-env-test
, you need to have Poetry installed. You can install Poetry by following the official installation guide.
Then, you can add poetry-env-test
to your project using the following command:
poetry add poetry-env-test
Usage
Command Line Interface
This package provides several CLI commands that can be used to manage your project environment.
Check Project Setup
To check the project setup and verify dependencies:
poetry run check-project-setup
Clean Project Setup
To clean the project setup by unsetting PYTHONPATH
, removing existing Poetry environments, and reinstalling dependencies:
poetry run clean-project-setup
Backup Dependencies
To backup the current dependencies to a file:
poetry run backup-dependencies
Contributing
Contributions are welcome! Please follow these steps to contribute:
1. Fork the repository.
2. Create a new branch for your feature or bug-fix.
3. Commit your changes.
4. Push the branch to your fork.
5. Create a pull request.
Please ensure your code follows the project’s coding standards and includes appropriate tests.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Authors
Carrow Morris-Wiltshire - visit my website
Acknowledgments
GPT-4o assisted in making this package. So thank you to all of the contributors to the platforms that LLMs are trained on as well as GPT-4o (if you are reading this).
Project details
Release history Release notifications | RSS feed
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_env_test-0.1.3.tar.gz
.
File metadata
- Download URL: poetry_env_test-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06810c2ef997d71cfea3df6da7a1a1c3d5a4cf7ea1a8576b662c209d637c6dee |
|
MD5 | 6cf67b72c0a2ea22d249f376f96a9689 |
|
BLAKE2b-256 | 91c800e456a7e57fa2d264ee0b2cb5dfa564c43dc80cb26eb4749e6a69afb357 |
File details
Details for the file poetry_env_test-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: poetry_env_test-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ea6932d7593d03f1751f4a04e9f24e8f0d81e21d229d67d6f84bc981f5b510 |
|
MD5 | d36399ff55d556fc2c1e1d5602c1f956 |
|
BLAKE2b-256 | 07e0a6e92c5e8d51934c26547bda9f2cb5298c5e9425a454573d75e5b237aea4 |