Skip to content

Commit

Permalink
Restructure the package
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Jul 2, 2019
1 parent 2632d63 commit 5b0bebf
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 38 deletions.
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='alice.ferrazzi@gmail.com',
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 <alice.ferrazzi@gmail.com>
# 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.

0 comments on commit 5b0bebf

Please sign in to comment.