Evvve Platform Logging Lib
Project description
Publishing LoggingLib with Poetry
This guide will walk you through the steps to publish your Python package using Poetry. Poetry is a dependency management and packaging tool for Python projects.
Prerequisites
-
Poetry Installed: Make sure Poetry is installed on your system. You can install it by following the instructions on the Poetry official website.
-
PyPI Account: Ensure you have an account on PyPI. You'll need your username and password for publishing.
Steps to Publish a Python Package
1. Build Your Package
Navigate to your project directory and run the following command to build your package:
poetry build
This command will generate distribution archives (e.g., .whl
and .tar.gz
files) in the dist
directory.
2. Publish Your Package
To publish your package to PyPI, use the following command:
poetry publish --username <your-username> --password <your-password>
Alternatively, you can use the --build
option to build and publish your package in one step:
poetry publish --build --username <your-username> --password <your-password>
3. Using PyPI Token
For better security, you can use an API token instead of your username and password. First, generate an API token from your PyPI account settings.
Then, you can publish your package using the token:
poetry publish --build --username __token__ --password <your-token>
4. Publishing to TestPyPI (Optional)
Before publishing to the official PyPI repository, you might want to publish to TestPyPI to test your package.
To publish to TestPyPI, use the following command:
poetry publish --build --repository testpypi --username <your-username> --password <your-password>
To use an API token with TestPyPI:
poetry publish --build --repository testpypi --username __token__ --password <your-token>
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 logginglib-0.1.1.tar.gz
.
File metadata
- Download URL: logginglib-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 872cfddefc8132feebb1633ccfae08ea69a6fb32d3cd4d37c40048946e9319bc |
|
MD5 | 6e35bbd32d724e956e23397442fcecfd |
|
BLAKE2b-256 | 665b6a147fcd5a01621c11be47ad7bcff77dfedf80c24fe4417c06a642a74778 |
File details
Details for the file logginglib-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: logginglib-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 086bd1f6a74b5c01342f2feb3f1510f8e593bdb7d32a3d396b5ecc573ff9c585 |
|
MD5 | 16542be8b2a46bf087246f12149fc13f |
|
BLAKE2b-256 | 3df86187df44673d9fac339d09888fedce3d5e3f490360a4eb596f746f873719 |