Skip to content

Commit

Permalink
setup: deploy aiocoap-proxy as a console entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Mar 17, 2016
1 parent 0e4389c commit 0a9d03c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aiocoap-proxy
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python3

"""This script can be used to access the aiocoap command line proxy when
setup.py is not used to create an entry point for it (eg. when running from the
source directory)."""

import aiocoap.cli.proxy

aiocoap.cli.proxy.sync_main()
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
'linkheader': ['LinkHeader'],
},

entry_points={
'console_scripts': [
'aiocoap-proxy = aiocoap.cli.proxy:sync_main',
]
},

command_options={
'build_sphinx': {
'project': ('setup.py', name),
Expand Down

0 comments on commit 0a9d03c

Please sign in to comment.