Skip to content

Commit

Permalink
Merge pull request #118 from MichaelAquilina/console_scripts
Browse files Browse the repository at this point in the history
Use console_scripts to generate executable shim
  • Loading branch information
MichaelAquilina committed May 20, 2018
2 parents b67dc18 + 8096683 commit 4139ba6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
3 changes: 0 additions & 3 deletions bin/s4

This file was deleted.

2 changes: 1 addition & 1 deletion s4/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ def main(arguments):
pass


if __name__ == '__main__':
def entry_point():
main(sys.argv[1:])
20 changes: 6 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,28 @@
requirements = requirements_file.read().split('\n')

setup(
name='s4',
name='S4',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
version=VERSION,
description='Sync your folders to s3 between multiple machines',
description='Fast and cheap synchronisation of files using Amazon S3',
long_description=readme,
install_requires=requirements,
author='Michael Aquilina',
license='GPLv3',
author_email='michaelaquilina@gmail.com',
url='https://github.com/MichaelAquilina/s4',
url='https://github.com/MichaelAquilina/S4',
python_requires=">=3.4",
keywords='aws s3 backup sync',
scripts=[
'bin/s4',
's4/cli.py',
's4/__init__.py',
's4/sync.py',
's4/utils.py',
's4/clients/__init__.py',
's4/clients/local.py',
's4/clients/s3.py',
],
entry_points={
'console_scripts': ['s4=s4.cli:entry_point'],
},
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand Down

0 comments on commit 4139ba6

Please sign in to comment.