Skip to content

Commit c5bd9e5

Browse files
committed
Vendor python dependencies
1 parent a0111aa commit c5bd9e5

14 files changed

+13
-3
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
__pycache__
2+
.python-version
3+
24
node_modules
5+
36
.DS_Store

Diff for: dist/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,9 @@ async function run() {
10181018
await exec.exec("pip", [
10191019
"install",
10201020
"--requirement",
1021-
`${src}/requirements.txt`
1021+
`${src}/requirements.txt`,
1022+
"--no-index",
1023+
`--find-links=${__dirname}/vendor`
10221024
]);
10231025

10241026
// Fetch action inputs

Diff for: dist/vendor/Deprecated-1.2.7.tar.gz

4.81 MB
Binary file not shown.

Diff for: dist/vendor/PyGithub-1.45.tar.gz

111 KB
Binary file not shown.

Diff for: dist/vendor/PyJWT-1.7.1.tar.gz

41 KB
Binary file not shown.

Diff for: dist/vendor/certifi-2019.11.28.tar.gz

153 KB
Binary file not shown.

Diff for: dist/vendor/chardet-3.0.4.tar.gz

1.78 MB
Binary file not shown.

Diff for: dist/vendor/idna-2.8.tar.gz

170 KB
Binary file not shown.

Diff for: dist/vendor/requests-2.22.0.tar.gz

111 KB
Binary file not shown.

Diff for: dist/vendor/six-1.14.0.tar.gz

33.1 KB
Binary file not shown.

Diff for: dist/vendor/urllib3-1.25.8.tar.gz

255 KB
Binary file not shown.

Diff for: dist/vendor/wrapt-1.11.2.tar.gz

26.7 KB
Binary file not shown.

Diff for: index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ async function run() {
1616
await exec.exec("pip", [
1717
"install",
1818
"--requirement",
19-
`${src}/requirements.txt`
19+
`${src}/requirements.txt`,
20+
"--no-index",
21+
`--find-links=${__dirname}/vendor`
2022
]);
2123

2224
// Fetch action inputs

Diff for: package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"description": "An action to create an issue using content from a file",
55
"main": "index.js",
66
"scripts": {
7-
"package": "ncc build index.js -o dist"
7+
"clean": "rm -rf dist",
8+
"build": "ncc build index.js -o dist",
9+
"vendor-deps": "pip download -r src/requirements.txt --no-binary=:all: -d dist/vendor",
10+
"package": "npm run build && npm run vendor-deps"
811
},
912
"repository": {
1013
"type": "git",

0 commit comments

Comments
 (0)