pyrpo (original) (raw)
Project description
GitHub |PyPI |Documentation |Travis-CI
pyrpo: a shell command wrapper for hg, git, bzr, svn
Features
- Wrap and parse shell commands (largely as a reference)
- Walk for repository directories
- Generate reports for one or more repositories
- Call hg status, git status, etc.
- Generate mercurial .hgsubs
- Generate git .gitsubmodule
- Generate pip requirements.txt
- Generate shell script (to rebuild environment)
- TODO: replicate branches/tags/revisions
- Functional namedtuples, iterators yield -ing generators
- optparse argument parsing (-h, --help)
- cookiecutter-pypackage project templating
Installing
Install from PyPi:
pip install pyrpo
Install from GitHub as editable (add a pyrpo.pth in site-packages):
pip install -e git+https://github.com/westurner/pyrpo#egg=pyrpo
Usage
Print help:
pyrpo --help
Scan for files:
Scan and print a shell report
pyrpo -s . -r sh pyrpo
Generate a TortoiseHG thg-reporegistry.xml file:
pyrpo -s . --thg
Generate a pip report:
pyrpo -r pip
Generate a status report:
pyrpo -r status
Generate an .hgsubs file:
pyrpo -r hgsub
Generate a .gitmodules file:
pyrpo -r gitmodule
Generate an origin report:
pyrpo -r origin
Generate a string report:
pyrpo -r str
License
.
History
release/0.2.3 (2020-10-02 21:36:25 -0400)
git log --reverse --pretty=format:'* %s [%h]' v0.2.2..release/0.2.3
- BLD: setup.py: add sarge to install_requires [2e38b51]
- RLS: __init__,setup.py: v0.2.3, add 3.8 trove classifier [e35e91f]
0.2.2 (2019-04-15)
- Python 3.7 Support
- Minimal tests for each report type
git log --format='* %s [%h]' master..develop
[ ... ]
0.2.1 (2015-05-24)
- BUG: pyrpo.py: sh_full report: cat > %r << EOF [91d5fb7]
- BUG,CLN: pyrpo.py: logname=’pyrpo’ [e029abe]
- BLD: Makefile: pull, push, BROWSERCMD lookups [59cbc66]
- BLD: Makefile: twine [d636e15]
0.2.0 (2015-04-25)
- Development: https://github.com/westurner/pyrpo/commits/develop
- Master: https://github.com/westurner/pyrpo/commits/master
0.1.0 (2014-05-12)
- First release on PyPI.
- Re-packaged from https://github.com/westurner/dotfiles/blob/2813e4ad/scripts/repos.py
Credits
- Wes Turner – https://github.com/westurner
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
File details
Details for the file pyrpo-0.2.3.tar.gz
.
File metadata
- Download URL: pyrpo-0.2.3.tar.gz
- Upload date: Oct 3, 2020
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Hashes for pyrpo-0.2.3.tar.gz | Algorithm | Hash digest | | | ----------- | ---------------------------------------------------------------- | | | SHA256 | 0d3676ad826319b9fdaa9cb760fefc3f81c54efb55fdd44fe97232daac8cacf7 | | | MD5 | f66138c36a46099d4a652dd90f753567 | | | BLAKE2b-256 | 6df6e1ddb51beb68c75ae06757e12f35164cd7149449f68e2fff8f10d5cbc2f4 | |
See more details on using hashes here.
File details
Details for the file pyrpo-0.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pyrpo-0.2.3-py2.py3-none-any.whl
- Upload date: Oct 3, 2020
- Size: 18.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Hashes for pyrpo-0.2.3-py2.py3-none-any.whl | Algorithm | Hash digest | | | ----------- | ---------------------------------------------------------------- | | | SHA256 | a8b911f4641dd60100189ab58b21d7fedd8dc614097e900dc47ecbdbe12f06f6 | | | MD5 | 6210d3564ee36459b2e4d6faa3a5e089 | | | BLAKE2b-256 | a0ccd11ae2fe9df919a9fddb8bc4e913308afafec36bcc98bfde2c966f85747e | |