Skip to content

Commit

Permalink
Merge pull request #100 from sanzoghenzo/feat/extras_requires
Browse files Browse the repository at this point in the history
build: using extras_require and console_script entry point
  • Loading branch information
novoid authored Jun 5, 2020
2 parents e20e6cd + 8a0f028 commit d094c97
Show file tree
Hide file tree
Showing 75 changed files with 411 additions and 225 deletions.
9 changes: 7 additions & 2 deletions bin/memacs_arbtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
COPYRIGHT_AUTHORS = """Manuel Koell <mankoell@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Arbtt(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -26,5 +27,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
7 changes: 6 additions & 1 deletion bin/memacs_battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
COPYRIGHT_YEAR = "2017"
COPYRIGHT_AUTHORS = """Manuel Koell <mankoell@gmail.com>"""

if __name__ == "__main__":

def main():
memacs = Battery(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -22,3 +23,7 @@
copyright_authors=COPYRIGHT_AUTHORS
)
memacs.handle_main()


if __name__ == "__main__":
main()
10 changes: 7 additions & 3 deletions bin/memacs_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
COPYRIGHT_AUTHORS = """Bala Ramadurai <bala@balaramadurai.net>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Chrome(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -28,6 +29,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
# use_config_parser_name=CONFIG_PARSER_NAME
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
11 changes: 8 additions & 3 deletions bin/memacs_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
Armin Wieser <armin.wieser@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Csv(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -29,6 +30,10 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
# use_config_parser_name=CONFIG_PARSER_NAME
)
# use_config_parser_name=CONFIG_PARSER_NAME
)
memacs.handle_main()


if __name__ == "__main__":
main()
11 changes: 8 additions & 3 deletions bin/memacs_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
Armin Wieser <armin.wieser@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Foo(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -38,6 +39,10 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
# use_config_parser_name=CONFIG_PARSER_NAME
)
# use_config_parser_name=CONFIG_PARSER_NAME
)
memacs.handle_main()


if __name__ == "__main__":
main()
7 changes: 6 additions & 1 deletion bin/memacs_filenametimestamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>,
Armin Wieser <armin.wieser@gmail.com>"""

if __name__ == "__main__":

def main():
global memacs
memacs = FileNameTimeStamps(prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
prog_description=PROG_DESCRIPTION,
Expand All @@ -37,3 +38,7 @@
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS)
memacs.handle_main()


if __name__ == "__main__":
main()
11 changes: 8 additions & 3 deletions bin/memacs_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
COPYRIGHT_AUTHORS = """Raimon Grau <raimonster@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Firefox(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -28,6 +29,10 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
# use_config_parser_name=CONFIG_PARSER_NAME
)
# use_config_parser_name=CONFIG_PARSER_NAME
)
memacs.handle_main()


if __name__ == "__main__":
main()
9 changes: 7 additions & 2 deletions bin/memacs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
Armin Wieser <armin.wieser@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = GitMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -32,5 +33,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
7 changes: 6 additions & 1 deletion bin/memacs_gpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@
COPYRIGHT_AUTHORS = """Manuel Koell <mankoell@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = GPX(prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
prog_short_description=PROG_SHORT_DESCRIPTION,
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS)
memacs.handle_main()


if __name__ == "__main__":
main()
10 changes: 8 additions & 2 deletions bin/memacs_ical.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>,
Armin Wieser <armin.wieser@gmail.com>"""

if __name__ == "__main__":

def main():
global memacs
memacs = CalendarMemacs(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()


if __name__ == "__main__":
main()
9 changes: 7 additions & 2 deletions bin/memacs_imap.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
Armin Wieser <armin.wieser@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = ImapMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -38,5 +39,9 @@
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS,
use_config_parser_name=CONFIG_PARSER_NAME
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
11 changes: 8 additions & 3 deletions bin/memacs_kodi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
COPYRIGHT_AUTHORS = """Max Beutelspacher <max.beutelspacher@mailbox.org>"""


if __name__ == "__main__":
def main():
global memacs
memacs = Kodi(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -24,6 +25,10 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
# use_config_parser_name=CONFIG_PARSER_NAME
)
# use_config_parser_name=CONFIG_PARSER_NAME
)
memacs.handle_main()


if __name__ == "__main__":
main()
8 changes: 7 additions & 1 deletion bin/memacs_lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
COPYRIGHT_YEAR = "2017"
COPYRIGHT_AUTHORS = """Manuel Koell <mankoell@gmail.com>"""

if __name__ == "__main__":

def main():
global memacs
memacs = LastFM(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -25,3 +27,7 @@
use_config_parser_name=CONFIG_PARSER_NAME
)
memacs.handle_main()


if __name__ == "__main__":
main()
11 changes: 8 additions & 3 deletions bin/memacs_mumail.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>,
Stephanus Volke <post@stephanus-volke.de>"""

if __name__ == "__main__":


def main():
global memacs
memacs = MuMail(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -27,5 +28,9 @@
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS,
use_config_parser_name=CONFIG_PARSER_NAME
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
10 changes: 8 additions & 2 deletions bin/memacs_phonecalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>,
Armin Wieser <armin.wieser@gmail.com>"""

if __name__ == "__main__":

def main():
global memacs
memacs = PhonecallsMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -39,5 +41,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
10 changes: 8 additions & 2 deletions bin/memacs_phonecalls_superbackup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
Armin Wieser <armin.wieser@gmail.com>
Ian Barton <ian@manor-farm.org>"""

if __name__ == "__main__":

def main():
global memacs
memacs = PhonecallsSuperBackupMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -40,5 +42,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
10 changes: 8 additions & 2 deletions bin/memacs_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>,
Armin Wieser <armin.wieser@gmail.com>"""

if __name__ == "__main__":

def main():
global memacs
memacs = PhotosMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -28,5 +30,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
9 changes: 7 additions & 2 deletions bin/memacs_rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
Armin Wieser <armin.wieser@gmail.com>"""


if __name__ == "__main__":
def main():
global memacs
memacs = RssMemacs(
prog_version=PROG_VERSION_NUMBER,
prog_version_date=PROG_VERSION_DATE,
Expand All @@ -42,5 +43,9 @@
prog_tag=PROG_TAG,
copyright_year=COPYRIGHT_YEAR,
copyright_authors=COPYRIGHT_AUTHORS
)
)
memacs.handle_main()


if __name__ == "__main__":
main()
Loading

0 comments on commit d094c97

Please sign in to comment.