Skip to content

Commit ba5441b

Browse files
committed
Fix: bring phantomjs to the wheel package
1 parent c83d671 commit ba5441b

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include README.rst
22
include CHANGELOG.rst
3+
include snapshot_phantomjs/phantomjs/*.js

setup.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,14 @@
5252
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests"])
5353
EXTRAS_REQUIRE = {}
5454
# You do not need to read beyond this line
55-
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(
56-
sys.executable
57-
)
55+
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
5856
GS_COMMAND = (
59-
"gs snapshot-phantomjs v0.0.2 "
60-
+ "Find 0.0.2 in changelog for more details"
57+
"gs snapshot-phantomjs v0.0.2 " + "Find 0.0.2 in changelog for more details"
6158
)
6259
NO_GS_MESSAGE = (
63-
"Automatic github release is disabled. "
64-
+ "Please install gease to enable it."
65-
)
66-
UPLOAD_FAILED_MSG = (
67-
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND
60+
"Automatic github release is disabled. " + "Please install gease to enable it."
6861
)
62+
UPLOAD_FAILED_MSG = 'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND
6963
HERE = os.path.abspath(os.path.dirname(__file__))
7064

7165

snapshot_phantomjs/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def make_snapshot(
13-
html_path: str, file_type: str, pixel_ratio: int = 2, delay: int = 2, **_
13+
html_path: str, file_type: str, delay: int = 2, pixel_ratio: int = 2, **_
1414
):
1515
chk_phantomjs()
1616
logger.info("Generating file ...")

0 commit comments

Comments
 (0)