pipackager
___ _____ ___ _
/ _ \\_ \/ _ \__ _ ___| | ____ _ __ _ ___ _ __
/ /_)/ / /\/ /_)/ _` |/ __| |/ / _` |/ _` |/ _ | '__|
/ ___/\/ /_/ ___| (_| | (__| | (_| | (_| | __| |
\/ \____/\/ \__,_|\___|_|\_\__,_|\__, |\___|_|
|___/
Created by rUv
pipackager is a comprehensive tool designed to manage your PyPI package, simplifying tasks such as cleaning old distributions, building new ones, uploading to PyPI, version incrementing, and more.
Installation
To install pipackager, use pip:
pip install pipackager
Usage
You can start the tool by running:
pipackager
This will launch an interactive menu that allows you to manage your PyPI packages with ease.
Features
Main Features
-
Clean Old Distributions:
- Removes old distribution files from the
distdirectory.
- Removes old distribution files from the
-
Build New Distributions:
- Builds new distribution files (source and wheel) using
setuptools.
- Builds new distribution files (source and wheel) using
-
Upload Distributions to PyPI:
- Uploads the built distributions to PyPI using
twine.
- Uploads the built distributions to PyPI using
-
Increment Version Number:
- Patch: Increments the patch version number (e.g., 0.1.0 -> 0.1.1).
- Minor: Increments the minor version number (e.g., 0.1.0 -> 0.2.0).
- Major: Increments the major version number (e.g., 0.1.0 -> 1.0.0).
-
Help Overview:
- Provides an overview of the features and options of the tool.
Advanced Options
-
Create/Update GitHub Actions Workflow:
- Creates or updates a GitHub Actions workflow configuration file to automate build, test, and deployment processes.
-
Run Tests Using Pytest:
- Executes tests using
pytestto ensure your package is working as expected.
- Executes tests using
-
Lint and Format Code:
- Lints your code using
flake8and formats it usingblack.
- Lints your code using
-
Check and Update Dependencies:
- Checks for outdated dependencies and updates them to the latest versions.
-
Generate Start Command:
- Generates a start command for your library, allowing you to execute it easily from the command line.
Environment Variables
pipackager requires the following environment variables for uploading distributions to PyPI:
TWINE_USERNAME: Your PyPI username.TWINE_PASSWORD: Your PyPI password or token.
If these variables are not set, pipackager will prompt you to enter them and will export them for you.
Example Workflow
Here is an example workflow of using pipackager to manage your PyPI package:
-
Clean Old Distributions:
- Select option
1to remove old distribution files.
- Select option
-
Build New Distributions:
- Select option
2to build new distribution files.
- Select option
-
Increment Version Number:
- Select option
4,5, or6to increment the version number (patch, minor, or major).
- Select option
-
Upload Distributions to PyPI:
- Select option
3to upload the new distribution files to PyPI.
- Select option
-
Advanced Options:
- Select option
7to access advanced options such as creating/updating GitHub workflows, running tests, linting and formatting code, checking and updating dependencies, or generating a start command.
- Select option
Help
To view a detailed help overview, select option 8 from the main menu.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
pipackager is designed to streamline the process of managing and deploying your Python packages to PyPI, making it easier to maintain high-quality, well-tested, and properly versioned software.
Metadata
Release files for pipackager 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pipackager-0.4.7.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipackager-0.4.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / pipackager-0.4.7.tar.gz
| Download URL | pipackager-0.4.7.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3656b6b29cd4e917c730cd07ffa550e1661cb1e741ed120329ac49135f8be13
|
|
BLAKE2b-256 checksum How to use checksums |
a484d95014e90bdd73890bb6f943f8af8142567545365fe00927040a0fe2b0dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.13
|
Release files / pipackager-0.4.7-py3-none-any.whl
| Download URL | pipackager-0.4.7-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba7569df9acee48319bfe1e6cc38f7b2dcca31f236487a57111e249c7167836c
|
|
BLAKE2b-256 checksum How to use checksums |
91039b6f423592fee92e80405e9cbc8ae8c871617bc7812e5e38e6ccccbb3f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.13
|