Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
6516b767
Commit
6516b767
authored
Dec 06, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace custom shell script with entry_points functionality in setuptools.
parent
24b30520
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
22 deletions
+8
-22
bin/topydo
bin/topydo
+0
-20
setup.py
setup.py
+3
-1
topydo/cli/Main.py
topydo/cli/Main.py
+5
-1
No files found.
bin/topydo
deleted
100755 → 0
View file @
24b30520
#!/usr/bin/env python
# Topydo - A todo.txt client written in Python.
# Copyright (C) 2014 Bram Schoenmakers <me@bramschoenmakers.nl>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
topydo.cli.Main
import
CLIApplication
CLIApplication
().
run
()
setup.py
View file @
6516b767
...
...
@@ -8,7 +8,9 @@ setup(
author
=
"Bram Schoenmakers"
,
author_email
=
"me@bramschoenmakers.nl"
,
url
=
"https://github.com/bram85/topydo"
,
scripts
=
[
"bin/topydo"
],
entry_points
=
{
'console_scripts'
:
[
'topydo = topydo.cli.Main:main'
],
},
classifiers
=
[
"Development Status :: 4 - Beta"
,
"Environment :: Console"
,
...
...
topydo/cli/Main.py
View file @
6516b767
...
...
@@ -220,5 +220,9 @@ class CLIApplication(object):
todofile
.
write
(
str
(
self
.
todolist
))
if
__name__
==
'__main__'
:
def
main
():
""" Main entry point of the CLI. """
CLIApplication
().
run
()
if
__name__
==
'__main__'
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment