Rye Easy is a tool to help you manage your Python projects with Rye.
Project description
rye-easy
Rye Easy is a tool to help you manage your Python projects with Rye.
Installation
pip install rye-easy
Usage
Rye Easy provides simple commands to build and publish your Python packages managed with Rye.
Command Line Interface
Build Command
python -m rye_easy build
When you run the build command, the following operations are performed:
- Cleans the
distdirectory to remove any previous build artifacts - Bumps the patch version of your package using
rye version --bump patch - Builds the package using
rye build - Installs the newly built wheel package locally using pip
This is useful for testing your package locally before publishing.
Publish Command
python -m rye_easy publish
When you run the publish command, the following operations are performed:
- Bumps the patch version of your package using
rye version --bump patch - Adds the updated
pyproject.tomlto git staging - Commits the changes with the message "update version"
- Creates a git tag with the new version (prefixed with 'v')
- Pushes the commit to the remote repository
- Pushes the tags to the remote repository
This command automates the entire release process in one step.
As a Python Module
from rye_easy import build, publish
# Build your package
build()
# Publish your package
publish()
Functions
build(): Bumps patch version, builds the package, and installs it locallypublish(): Bumps patch version, commits changes, creates a git tag, and pushes to remoteclean_dist(): Cleans the dist directoryget_version(): Gets the current version from Rye
TODO
- pyproject.toml hatching 버젼 수정하여 build 잘 되게 하기
- github action 에서 배포가 잘될 수 있게 .github\workflows\python-publish.yml을 복사할 수 있게 하기
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rye_easy-0.1.23.tar.gz.
File metadata
- Download URL: rye_easy-0.1.23.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad485673fadec9b165ae69cfcf37c0dd2e69f094c0ce9e74467d3c6f0268f7f9
|
|
| MD5 |
80048968e537280c3f5c2de2bb6ba0c6
|
|
| BLAKE2b-256 |
734e12632f275258cd978dff81516a77350e074edb78692455475aef3fd2a587
|
File details
Details for the file rye_easy-0.1.23-py3-none-any.whl.
File metadata
- Download URL: rye_easy-0.1.23-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4f920f650256d437d8560daf4a3b2583aab7352ea8d41a01ada0d47c54d0bb
|
|
| MD5 |
97ed0cf4f470de1f02c90f7fd08f05b7
|
|
| BLAKE2b-256 |
e577ecae46897a19849630d96e05b78ccb93599f819e364955f83c9dfa8cde95
|