-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into daniel_mbox for dan…
…iel :D Conflicts: memacs/lib/reader.py Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
- Loading branch information
Showing
46 changed files
with
946 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,7 @@ rss/vktmp | |
rss/error.org_archive | ||
filenametimestamps/vktmp/ | ||
benchmarking | ||
Makefile | ||
core | ||
core | ||
vktmp | ||
dist/ | ||
MANIFEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Time-stamp: <2012-07-12 11:38:22 vk> | ||
## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/ | ||
|
||
* How to install and set up Memacs | ||
|
||
** *Obtain Memacs* | ||
|
||
- using one of github download mechanisms OR | ||
- use ~pip install memacs~ which handles dependencies | ||
- you might as well want to use [[http://pypi.python.org/pypi/virtualenv][virtualenv]] before | ||
- make sure that you have *Python v2.7* installed | ||
|
||
** *Choose* the *modules* you want to use | ||
|
||
- read the files in the ~docs~ folder | ||
|
||
** *Set up one module* after another | ||
|
||
- please do read ~docs/FAQs_and_Best_Practices.org~ | ||
- it contains many tips and tricks on how to meet your | ||
requirements and on how to choose a reasonable setup | ||
- start the module of your choice with the argument ~--help~ | ||
- modules are located in the ~bin~ sub-folder | ||
- for example: ~/memacs/bin % ./memacs_svn.py --help~ | ||
- each module has some general arguments and module-specific arguments | ||
- you probably want to *develop and test a module invocation* in the | ||
command line and when it works: | ||
- set up a periodical invocation | ||
- read the ~Invocation~ section of ~docs/FAQs_and_Best_Practices.org~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# note: This file is just for development purposes | ||
|
||
|
||
all: clean quiettest whitespace todo pep8 | ||
|
||
whitespace: | ||
@echo "removing trailing whitespaces" | ||
@find . -name "*.py" -exec remove-trailing-whitespace.py {} \; | ||
|
||
test: | ||
@nosetests | ||
|
||
quiettest: | ||
@nosetests >/dev/null 2>&1 || echo "!!!!!!!!!!!! \n nosetests has errors\n!!!!!!!!!!!!\n" | ||
|
||
todo: | ||
@echo "TODO:" | ||
@grep -Hnr TODO * | grep -v Makefile | grep -v ".pyc" | grep -v ".py~" | grep ".py" | grep -v "tmp" || echo | ||
|
||
pep8: | ||
@echo "pep8:" | ||
@find . -name "*.py" -exec pep8 {} \; | grep -v "tmp" || echo | ||
|
||
pylint: | ||
@echo "pylint:" | ||
@find . -name "*.py" -exec pylint {} \; | grep -v "tmp" || echo | ||
|
||
|
||
exec: | ||
@echo "executing all crontab entries" | ||
@crontab -l | grep . | grep -v "#" | cut -d '*' -f6- | /bin/sh | ||
|
||
clean: | ||
@find -name "*.pyc" -exec rm {} \; | ||
@find -name "*~" -exec rm {} \; | ||
@find -name "#*" -exec rm {} \; | ||
@find -name ".#*" -exec rm {} \; | ||
@rm -rf core | ||
@rm -rf MANIFEST build/ dist | ||
|
||
countorgmodeentries: | ||
@echo "number of orgmode-entries in ~/orgmode/memacs/*.org_archive:" | ||
@grep -Hnr "\*\*" ~/orgmode/memacs/*.org_archive | wc | ||
|
||
upload: | ||
python setup.py sdist upload | ||
|
||
pipcheckouttest: | ||
mkdir -p /tmp/memacs-test | ||
virtualenv /tmp/memacs-test --no-site-packages | ||
source /tmp/memacs-test/bin/activate | ||
pip install memacs | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See Readme.org (open with GNU Emacs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2012-03-10 18:04:01 armin> | ||
|
||
from memacs.photos import PhotosMemacs | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2012-03-10" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for photos (exif)" | ||
PROG_TAG = u"photos" | ||
PROG_DESCRIPTION = u""" | ||
This memacs module will walk through a given folder looking for photos. | ||
If a photo is found, it will get a timestamp from the exif information. | ||
Then an Org-mode file is generated. | ||
""" | ||
COPYRIGHT_YEAR = "2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
if __name__ == "__main__": | ||
memacs = PhotosMemacs( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
) | ||
memacs.handle_main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.