Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry_env_test-0.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

poetry_env_test-0.1.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page