GITenberg is a project to collectively curate ebooks on GitHub. Gitberg is a command line tool to automate tasks on books.
This project provides a gitberg
command that does the following:
Current development is focused on making the tool usable for arbitrary changes of many repos. This includes:
- !
gitberg report <bookid>
reports an issue in the appropriate GITenberg github repo - !
gitberg get <bookid>
clones a GITenberg repo to your local system - !
gitberg check
checks the build process setup and runs tests on the local book - !
gitberg tag
increments the version number of the book and adds a git tag
Implemented, but not yet ported to be distributable:
gitberg fetch <bookid>
fetches books from PGgitberg make <bookid>
makes a local git repo with extra filesgitberg push <bookid>
creates a repo on github and pushes to it (one per book)
cat list_of_repos.txt | gitberg clone -
Some commands require a config file before they can be used.
These commands will exit with an error if you do not have the correct configuration.
The config file in linux is located at ~/.config/gitberg/config.yaml
.
Main config values:
gh_user: <your github account name>
gh_password: <your github account password>
library_pth: '~/data/library'
To run project tests do:
python setup.py test
This project is available as a python package
To build this python package, use setup.py
python setup.py sdist