Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
chazkii committed Jul 24, 2017
1 parent 7a10b2c commit b42365a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ staticfiles/
/docs/_build/
dist
chromewhip.egg-info
README.rst
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ cmd = page.Page.navigate(url='http://nzherald.co.nz')
# send_command will return once the frameStoppedLoading event is received THAT matches
# the frameId that it is in the returned command payload.
await_on_event_type = page.FrameStoppedLoadingEvent
input_event_type = page.FrameNavigatedEvent

# bug with devtools protocol means the returned command payload for `navigate`
# has the incorrect frameId on first run. running twice is the current workaround.
result = loop.run_until_complete(tab.send_command(cmd, await_on_event_type))
result = loop.run_until_complete(tab.send_command(cmd, await_on_event_type))
# has the incorrect frameId on first run but the low level api is flexible enough
# to deal with this
result = loop.run_until_complete(tab.send_command(cmd, input_event_type, await_on_event_type))

# send_command always returns a dict with keys `ack` and `event`
# `ack` contains the payload on response of a command
Expand Down
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@

here = path.abspath(path.dirname(__file__))


def readme():
try:
with open('README.rst') as f:
return f.read()
except FileNotFoundError:
return ""

setup(
name='chromewhip',

version='v0.1.0-alpha',
version='v0.2.0-alpha',

description='asyncio driver + HTTP server for Chrome devtools protocol',

long_description=readme(),
# The project's main homepage.
url='https://github.com/chuckus/chromewhip',
download_url='https://github.com/chuckus/chromewhip/archive/v0.1.0-alpha.tar.gz',
download_url='https://github.com/chuckus/chromewhip/archive/v0.2.0-alpha.tar.gz',

# Author details
author='Charlie Smith',
Expand Down Expand Up @@ -72,4 +80,4 @@
'chromewhip=chromewhip:main',
],
},
)
)

0 comments on commit b42365a

Please sign in to comment.