Skip to content

Commit

Permalink
Packaging and entry point fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbroere committed Jul 14, 2018
1 parent 8e6dca6 commit 8c6c376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions blackvue_gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ def list_of_namedtuple_to_csv(list_of_tuples, outputfilename):


def main(**kwargs):
tocsv = kwargs['--to-csv']
filename = kwargs['<filename>']
if len(kwargs) == 0:
kwargs = docopt(__doc__)
tocsv = kwargs.get('--to-csv')
filename = kwargs.get('<filename>')
if filename:
if os.path.isfile(filename):
records = parse_blackvue_nmea(filename=filename)
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@

setup(
name='blackvue_gps',
version='2018.7.14',
version='2018.7.15',
url='https://github.com/bartbroere/blackvue-gps/',
author='Bart Broere',
author_email='[email protected]',
license='MIT License',
description="Parse GPS records created by BlackVue Dashcams.",
keywords='blackvue gps dashcam nmea parse parser',
long_description=readme,
py_modules=['blackvue_gps'],
py_modules=['blackvue_gps', 'blackclue'],
install_requires=dependencies,

entry_points = {
'console_scripts': ['blackvue_gps=blackvue_gps:main'],
},
classifiers=(
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
Expand Down

0 comments on commit 8c6c376

Please sign in to comment.