A simple module to do repetitive tasks in the morning.
Project description
.. image:: https://badge.fury.io/py/morning.png
:target: http://badge.fury.io/py/morning
.. image:: https://travis-ci.org/Carreau/morning.png?branch=master
:target: https://travis-ci.org/Carreau/morning
.. image:: https://pypip.in/d/morning/badge.png
:target: https://pypi-hypernode.com/pypi/morning
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.
.. code::
pip install morning
Using morning
-------------
.. code::
$ 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
.. code::
$ 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:
.. code::
$ morning
# auto-fast-forward
use the following to tell morning to automatically
fast forward your repo if on master, and behind origin.
.. code::
$ git config morning.fast-forward True
End Target:
-----------
How it should look like:
.. code::
~/dev $ morning
dev/nikola | master | -76
Would you like to git reset origin/master[y/N]?
.... # probably yes
dev/ipython | master | -76,+17
Would you like to git reset origin/master[y/N]?
.... # I probably have unpushed changes.
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.
* Free software: BSD license
* Documentation: https://morning.readthedocs.org.
TODO
----
Use flit for installation
:target: http://badge.fury.io/py/morning
.. image:: https://travis-ci.org/Carreau/morning.png?branch=master
:target: https://travis-ci.org/Carreau/morning
.. image:: https://pypip.in/d/morning/badge.png
:target: https://pypi-hypernode.com/pypi/morning
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.
.. code::
pip install morning
Using morning
-------------
.. code::
$ 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
.. code::
$ 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:
.. code::
$ morning
# auto-fast-forward
use the following to tell morning to automatically
fast forward your repo if on master, and behind origin.
.. code::
$ git config morning.fast-forward True
End Target:
-----------
How it should look like:
.. code::
~/dev $ morning
dev/nikola | master | -76
Would you like to git reset origin/master[y/N]?
.... # probably yes
dev/ipython | master | -76,+17
Would you like to git reset origin/master[y/N]?
.... # I probably have unpushed changes.
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.
* Free software: BSD license
* Documentation: https://morning.readthedocs.org.
TODO
----
Use flit for installation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file morning-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: morning-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa4e81d5e869dc7aceb57440b0fbea53a63d9dce6fe538ce7c1dc041db62fc8 |
|
MD5 | b9e7c5dac466a2e724a10d07e2cce599 |
|
BLAKE2b-256 | be963c2356a7483aec7bbb364ab234a8ae113b734fe7cb6bbf0fc634712ee08f |