Skip to content

gitberg-temp/gitberg-archive

 
 

Repository files navigation

Gitberg

travis status PyPI version

GITenberg is a project to collectively curate ebooks on GitHub. Gitberg is a command line tool to automate tasks on books.

Usage

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 PG
  • gitberg make <bookid> makes a local git repo with extra files
  • gitberg push <bookid> creates a repo on github and pushes to it (one per book)

Examples

cat list_of_repos.txt | gitberg clone -

Config

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'

Testing

To run project tests do:

python setup.py test

Packaging

This project is available as a python package To build this python package, use setup.py

python setup.py sdist

About

A command-line tool for interacting with books in git

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 98.0%
  • Python 2.0%