Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure the package #17

Merged
merged 1 commit into from
Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file removed __init__.py
Empty file.
35 changes: 0 additions & 35 deletions bin/elivepatch

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GitPython
requests
requests
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
author='Alice Ferrazzi',
author_email='[email protected]',
license='GNU GPLv2+',
packages=['elivepatch_client'],
scripts=['bin/elivepatch'],
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=["GitPython", "requests"],
entry_points={"console_scripts": ["elivepatch-client = elivepatch_client.__main__:main"]},
)
File renamed without changes.
37 changes: 37 additions & 0 deletions src/elivepatch_client/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) 2017, Alice Ferrazzi <[email protected]>
# Distributed under the terms of the GNU General Public License v2 or later

__version__ = '0.1'
__author__ = 'Alice Ferrazzi'
__license__ = 'GNU GPLv2+'

#===============================================================================
#
# MAIN
#
#-------------------------------------------------------------------------------
def main():
from .argsparser import ArgsParser
from .cli import Main
#import pdb; pdb.set_trace()
import os

root = None
try:
root = os.environ['ROOT']
except KeyError:
pass

main = Main(ArgsParser())
try:
main()
except KeyboardInterrupt:
print('Interrupt received, exiting...')


if __name__ == "__main__":
main()

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.