Giter Club home page Giter Club logo

morning's Introduction

https://badge.fury.io/py/morning.png https://travis-ci.org/Carreau/morning.png?branch=master https://pypip.in/d/morning/badge.png

Morning is a package that should (at some point in the future) deals with all the updates I need to do in the morning on my computer. That is to say :

  • Fetch all the git repos I'm working on.
  • Make sure they are on master:
    • If they are, and can be fast-forwarded, do it and potentially asking me wether or not

installing morning

Note

I'm using Python 3.5 HEAD, and I plan to try to use subprocess.run, so it might not run for you.

Using morning

$ cd this/is/a/git/backed/project
$ mornign add .
adding /Users/bussonniermatthias/this/is/a/git/backed/project to list of git repos to update
$ morning list
/users/bussonniermatthias/dev/flit
/users/bussonniermatthias/dev/ipython
/users/bussonniermatthias/dev/ipython_genutils
/users/bussonniermatthias/dev/ipython_kernel
/users/bussonniermatthias/dev/jupyter_client
/users/bussonniermatthias/dev/jupyter_core
/users/bussonniermatthias/dev/jupyter_nbconvert
/users/bussonniermatthias/dev/jupyter_nbformat
/users/bussonniermatthias/dev/jupyter_notebook
/users/bussonniermatthias/dev/morning
/users/bussonniermatthias/dev/brackets-visualtabs

Updating all these git repos:

# auto-fast-forward

use the following to tell morning to automatically fast forward your repo if on master, and behind origin.

$ git config morning.fast-forward True

End Target:

How it should look like:

Maybe it should also have custom hooks to update homebrew, or alike. Maybe a morning add . would be nice to track a specific component, and also a way to provide a command to run pre/post checkout. (can do that with git hooks)

Local configuration would be in .git/config in the [morning] section.

TODO

Use flit for installation

morning's People

Contributors

carreau avatar minrk avatar

Watchers

 avatar  avatar  avatar

Forkers

minrk

morning's Issues

non existing dirs.

$ morning
/users/bussonniermatthias/dev/flit on branch master -00,+00,
/users/bussonniermatthias/dev/ipython on branch master -00,+00,
/users/bussonniermatthias/dev/ipython_genutils on branch master -00,+00,
/users/bussonniermatthias/dev/ipython_kernel on branch master -00,+00,
/users/bussonniermatthias/dev/jupyter_client on branch master -00,+00,
/users/bussonniermatthias/dev/jupyter_core on branch master -00,+00,
Traceback (most recent call last):
File "/Users/bussonniermatthias/Library/Python/3.5/bin/morning", line 4, in
main()
File "/Users/bussonniermatthias/Library/Python/3.5/lib/python/site-packages/morning/init.py", line 82, in main
status(gfo=True)
File "/Users/bussonniermatthias/Library/Python/3.5/lib/python/site-packages/morning/init.py", line 92, in status
res = run(['git','fetch','origin'],cwd=k, stdout=PIPE, stderr=PIPE)
File "/usr/local/Cellar/python3/HEAD/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 696, in run
with Popen(_popenargs, *_kwargs) as process:
File "/usr/local/Cellar/python3/HEAD/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 950, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/HEAD/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1540, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/users/bussonniermatthias/dev/jupyter_nbconvert'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.