File tree Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
* [ populate me]
7
7
8
+ ## Version 0.2.5
9
+
10
+ * Match package version and \_\_ version__ (🤦♂️)
11
+ * Use ` importlib_metadata ` so this isn't a problem in the future
12
+
8
13
## Version 0.2.4
9
14
10
15
* Update ` pyee ` dependency breaking build failures on NixOS + Fedora packaging systems (#207 )
Original file line number Diff line number Diff line change 6
6
import logging
7
7
import os
8
8
9
+ try :
10
+ # noinspection PyCompatibility
11
+ from importlib .metadata import version
12
+ except ModuleNotFoundError :
13
+ # noinspection PyUnresolvedReferences
14
+ # <3.8 backport
15
+ from importlib_metadata import version
16
+
17
+ try :
18
+ __version__ = version ('wheel' )
19
+ except Exception :
20
+ pass
21
+
9
22
from appdirs import AppDirs
10
23
11
- __author__ = """Hiroyuki Takagi"""
12
- __email__ = 'miyako.dev@gmail.com'
13
- __version__ = '0.2.4'
14
24
__chromium_revision__ = '588429'
15
25
__base_puppeteer_version__ = 'v1.6.0'
16
26
__pyppeteer_home__ = os .environ .get (
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def get_ws_endpoint(url) -> str:
228
228
with urlopen (url ) as f :
229
229
data = json .loads (f .read ().decode ())
230
230
break
231
- except URLError as e :
231
+ except URLError :
232
232
continue
233
233
time .sleep (0.1 )
234
234
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " pyppeteer"
3
- version = " 0.2.2 "
3
+ version = " 0.2.5 "
4
4
description = " Headless chrome/chromium automation library (unofficial port of puppeteer)"
5
5
readme = ' README.md'
6
6
license = " MIT"
@@ -49,10 +49,13 @@ appdirs = "^1.4.3"
49
49
pyee = " ^8.1.0"
50
50
tqdm = " ^4.42.1"
51
51
urllib3 = " ^1.25.8"
52
- websockets = " ^8.1"
52
+ # todo: update this dep when tox releases patch version w/ https://github.com/tox-dev/tox/pull/1764
53
+ importlib-metadata = { version = " ^2.1.1" , python = " <3.8" }
53
54
54
55
[tool .poetry .dev-dependencies ]
55
- doit = " ^0.32.0"
56
+ tox = " ^3.20.1"
57
+ syncer = " ^1.3.0"
58
+ livereload = " ^2.6.1"
56
59
flake8 = " ^3.7.9"
57
60
livereload = " ^2.6.1"
58
61
m2r = " ^0.2.1"
You can’t perform that action at this time.
0 commit comments