forku
quickly push a patch
forku
If you patch a python lib in your local virtual env. forku ("fork you") tries to fork the repo and apply the patch.
(This only works if a repo can be found for that library.)
THIS PROJECT REQUIRES GITHUB CLI INSTALLED
requirements
forku requires the following:
- python3
- git
- gh (github cli) : https://cli.github.com/
- virtualenv
install
python3 -m pip install forku
usesage
Pass forku the library you have patched. i.e. python3 -m forku -l theirlib
cd someproject
. venv/bin/activate
python3 -m forku -l domonic
i.e. This would fork the domonic library from github, then move the patches you made to venv/lib/python3.9/site-packages/domonic to the fork and push it back to github.
status
It currently makes a lot of assumption, so wont work for many cases.
- assumes git
- assumes latest version of lib. Careful. If not this could result in reverting code in the target library.
- assumes you have virtualenv
- assumes you are in the correct directory
- assume a dist-info folder exists with METADATA with a Home-page
- assumes you have a github account
- assumes linux?? not sure
See README.md for more information.
TODO -
- add support for other git repos like bitbucket
- add support for other python libs
- add support for other os
- add support for other packing systems
Disclaimer
This is a work in progress. use at your own risk.
Metadata
Release files for forku 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| forku-0.0.2.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forku-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / forku-0.0.2.tar.gz
| Download URL | forku-0.0.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edacde22b418bca6fc87d5b2e1682b9fe00ac50889718e7fa8d374f91bb1f241
|
|
BLAKE2b-256 checksum How to use checksums |
6bd757cc51dd75151b8adc74f99d14d9ae0fa4465d2c06e58f19fe2e87af8b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / forku-0.0.2-py3-none-any.whl
| Download URL | forku-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6a83d3cb27fd1fb09dd46d8712858c9283d45d6315e092fac1884db99d1a654
|
|
BLAKE2b-256 checksum How to use checksums |
fe99131b11f4195301f95356a25dcfecd9274be2a18c750ab5cba88d3bc4e5c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|