Skip to content

Commit eb1558c

Browse files
natewalckerikng
andauthored
Combined dependabot and docklib PRs (#30)
* Combined dependabot and docklib PRs * Update requests to 2.25.1 * Add additional debug output when archs do not match * Update PyYAML to 5.4.1 * Update Python to 3.9.5 * Update github action to do python 3.9.5 * Fix MACOS_VERSION name as they now use 11 upstream instead of 11.0 * Trying minimal to confirm that works * First stab at updating all recommended libs, will need another pr * Fix lib versions * Requests was unhappy with idna 3, reverting to 2.x * Revert pyobjc to 7.0.1 * force compilation for items that lack a universal binary * bad copy pasta * Update release description * Only create a release and upload signed packages if on main * try some more fixes Co-authored-by: erikg <e@eriknicolasgomez.com>
1 parent b680383 commit eb1558c

10 files changed

Lines changed: 86 additions & 51 deletions
Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and upload recommended package
33
env:
44
TYPE: "recommended"
55
DEV_ID: "Developer ID Installer: Clever DevOps Co. (9GQZ7KUFR6)"
6-
PYTHON_VERSION: "3.9.1"
6+
PYTHON_VERSION: "3.9.5"
77

88
on:
99
pull_request:
@@ -36,6 +36,7 @@ jobs:
3636
run: ./build_python_framework_pkgs.zsh "$TYPE" "$DEV_ID" "$PYTHON_VERSION" "${BUILD_DATE}"
3737

3838
- name: Create Release
39+
if: github.ref == 'refs/heads/main'
3940
id: create_release
4041
uses: actions/create-release@v1
4142
env:
@@ -45,12 +46,39 @@ jobs:
4546
release_name: Python ${{env.PYTHON_VERSION}} (${{env.BUILD_DATE_RELEASE}})
4647
body: |
4748
# Notes
48-
Python 3.9.1 Framework
49+
Python 3.9.5 Framework
4950
5051
## Changes
51-
- Universal build! Now supports Apple M1 Machines
52-
- Upgraded Python to 3.9.1
53-
- pyobjc is now 7.0.1
52+
- Upgraded Python to 3.9.5
53+
- Updated the following libraries:
54+
- attrs to 21.2.0
55+
- black to 21.6b0
56+
- certifi to 2021.05.30
57+
- cffi to 1.14.5
58+
- cfgv to 3.3.0
59+
- distlib to 0.3.2
60+
- docklib to 1.3.0
61+
- flake8-bugbear to 21.4.3
62+
- flake8 to 3.9.2
63+
- identify to 2.2.10
64+
- importlib-metadata to 4.6.1
65+
- isort to 5.9.2
66+
- nodeenv to 1.6.0
67+
- packaging to 21.0
68+
- pathspec to 0.8.1
69+
- pre-commit to 2.13.0
70+
- pycodestyle to 2.7.0
71+
- pyflakes to 2.3.1
72+
- PyYAML to 5.4.1
73+
- regex to 2021.7.6
74+
- requests to 2.25.1
75+
- six to 1.16.0
76+
- tokenize-rt to 4.1.0
77+
- toml to 0.10.2
78+
- typed-ast to 1.4.3
79+
- urllib3 to 1.26.6
80+
- virtualenv to 20.0.27
81+
- zipp to 3.5.0
5482
5583
# Flavors of Python
5684
At this time, the automated build process will **only** create the Recommended package
@@ -61,6 +89,7 @@ jobs:
6189
prerelease: true
6290

6391
- name: Upload Unsigned Package Release Asset
92+
if: github.ref == 'refs/heads/main'
6493
uses: actions/upload-release-asset@v1
6594
env:
6695
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -71,6 +100,7 @@ jobs:
71100
asset_content_type: application/x-newton-compatible-pkg
72101

73102
- name: Upload Signed Package Release Asset
103+
if: github.ref == 'refs/heads/main'
74104
uses: actions/upload-release-asset@v1
75105
env:
76106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -81,6 +111,7 @@ jobs:
81111
asset_content_type: application/x-newton-compatible-pkg
82112

83113
- name: Upload Python Framework Release Asset
114+
if: github.ref == 'refs/heads/main'
84115
uses: actions/upload-release-asset@v1
85116
env:
86117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -91,7 +122,7 @@ jobs:
91122
asset_content_type: application/zip
92123

93124
- name: Upload packages
94-
uses: actions/upload-artifact@v1
125+
uses: actions/upload-artifact@v2
95126
with:
96127
name: packages
97128
path: outputs/

build_python_framework_pkgs.zsh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Harcoded versions
99
RP_SHA="93f3fea5290b761b1c25c15f46f7c76641d94d58"
1010
MP_SHA="71c57fcfdf43692adcd41fa7305be08f66bae3e5"
11-
MACOS_VERSION=11.0 # use 10.9 for non-universal
11+
MACOS_VERSION=11 # use 10.9 for non-universal
1212
PYTHON_PRERELEASE_VERSION=
1313
PYTHON_BASEURL="https://www.python.org/ftp/python/%s/python-%s${PYTHON_PRERELEASE_VERSION}-macos%s.pkg"
1414
# Hardcoded paths
@@ -56,7 +56,7 @@ fi
5656
if [ -n "$3" ]; then
5757
PYTHON_VERSION=$3
5858
else
59-
PYTHON_VERSION=3.9.1
59+
PYTHON_VERSION=3.9.5
6060
fi
6161
# Set python bin version based on PYTHON_VERSION
6262
PYTHON_BIN_VERSION="${PYTHON_VERSION%.*}"
@@ -168,6 +168,9 @@ if [ "${TOTAL_SO}" != "${UNIVERSAL_SO}" ] ; then
168168
echo "Shared objects do not match, resulting in a non-universal Python framework."
169169
echo "Total shared objects found: ${TOTAL_SO}"
170170
echo "Universal shared objects found: ${UNIVERSAL_SO}"
171+
UNIVERSAL_SO_ARRAY=("${(@f)$(/usr/bin/find "$TOOLSDIR/$TYPE/payload/${FRAMEWORKDIR}/Python3.framework/Versions/Current/lib" -name "*.so" | /usr/bin/xargs file | /usr/bin/grep "2 architectures" | awk '{print $1;}' | sed 's/:*$//g')}")
172+
TOTAL_SO_ARRAY=("${(@f)$(/usr/bin/find "$TOOLSDIR/$TYPE/payload/${FRAMEWORKDIR}/Python3.framework/Versions/Current/lib" -name "*.so" )}")
173+
echo ${TOTAL_SO_ARRAY[@]} ${UNIVERSAL_SO_ARRAY[@]} | tr ' ' '\n' | sort | uniq -u
171174
exit 1
172175
fi
173176

requirement_files/Sphinx.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ packaging==20.4
1111
Pygments==2.7.4
1212
pyparsing==2.4.7
1313
pytz==2020.1
14-
requests==2.24.0
14+
requests==2.25.1
1515
six==1.15.0
1616
snowballstemmer==2.0.0
1717
Sphinx==3.1.2
@@ -21,4 +21,4 @@ sphinxcontrib-htmlhelp==1.0.3
2121
sphinxcontrib-jsmath==1.0.1
2222
sphinxcontrib-qthelp==1.0.3
2323
sphinxcontrib-serializinghtml==1.1.4
24-
urllib3==1.25.9
24+
urllib3==1.26.5

requirement_files/aspy.yaml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
aspy.yaml==1.3.0
2-
PyYAML==5.3.1
2+
PyYAML==5.4.1

requirement_files/pre-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ identify==1.4.21
66
importlib-metadata==1.7.0
77
nodeenv==1.4.0
88
pre-commit==2.6.0
9-
PyYAML==5.3.1
9+
PyYAML==5.4.1
1010
six==1.15.0
1111
toml==0.10.1
1212
virtualenv==20.0.26

requirement_files/requests.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
certifi==2020.6.20
22
chardet==3.0.4
33
idna==2.10
4-
requests==2.24.0
5-
urllib3==1.25.9
4+
requests==2.25.1
5+
urllib3==1.26.5

requirement_files/rsa.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pyasn1==0.4.8
2-
rsa==4.6
2+
rsa==4.7

requirement_files/slacker.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
certifi==2020.6.20
22
chardet==3.0.4
33
idna==2.10
4-
requests==2.24.0
4+
requests==2.25.1
55
slacker==0.14.0
6-
urllib3==1.25.9
6+
urllib3==1.26.5

requirements_opinionated.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cfgv==3.1.0
1414
chardet==3.0.4
1515
click==7.1.2
1616
distlib==0.3.1
17-
docklib==1.2.0
17+
docklib==1.3.0
1818
docutils==0.16
1919
entrypoints==0.3
2020
filelock==3.0.12
@@ -48,10 +48,10 @@ pytest==5.4.3
4848
python-dateutil==2.8.1
4949
python-dotenv==0.14.0
5050
pytz==2020.1
51-
PyYAML==5.3.1
51+
PyYAML==5.4.1
5252
regex==2020.6.8
53-
requests==2.24.0
54-
rsa==4.6
53+
requests==2.25.1
54+
rsa==4.7
5555
six==1.15.0
5656
slacker==0.14.0
5757
snowballstemmer==2.0.0
@@ -66,7 +66,7 @@ tokenize-rt==4.0.0
6666
toml==0.10.1
6767
typed-ast==1.4.1
6868
--no-binary typed-ast
69-
urllib3==1.25.9
69+
urllib3==1.26.5
7070
virtualenv==20.0.26
7171
wcwidth==0.2.5
7272
xattr==0.9.7

requirements_recommended.txt

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
11
appdirs==1.4.4
2-
aspy.yaml==1.3.0
3-
attrs==19.3.0
4-
black==19.10b0
5-
certifi==2020.6.20
6-
cffi==1.14.4
2+
attrs==21.2.0
3+
black==21.6b0
4+
certifi==2021.05.30
5+
cffi==1.14.5
76
--no-binary cffi
8-
cfgv==3.1.0
7+
cfgv==3.3.0
98
chardet==3.0.4
109
click==7.1.2
11-
distlib==0.3.1
12-
docklib==1.2.0
10+
distlib==0.3.2
11+
docklib==1.3.0
1312
entrypoints==0.3
1413
filelock==3.0.12
15-
flake8-bugbear==20.1.4
16-
flake8==3.8.3
17-
identify==1.4.21
14+
flake8-bugbear==21.4.3
15+
flake8==3.9.2
16+
identify==2.2.10
1817
idna==2.10
19-
importlib-metadata==1.7.0
20-
isort==5.0.6
18+
importlib-metadata==4.6.1
19+
isort==5.9.2
2120
mccabe==0.6.1
22-
nodeenv==1.4.0
23-
packaging==20.4
24-
pathspec==0.8.0
25-
pre-commit==2.6.0
26-
pycodestyle==2.6.0
21+
nodeenv==1.6.0
22+
packaging==21.0
23+
pathspec==0.8.1
24+
pre-commit==2.13.0
25+
pycodestyle==2.7.0
2726
pycparser==2.20
28-
pyflakes==2.2.0
27+
pyflakes==2.3.1
2928
pyobjc==7.0.1
3029
pyparsing==2.4.7
31-
PyYAML==5.3.1
32-
regex==2020.6.8
33-
requests==2.24.0
34-
six==1.15.0
35-
tokenize-rt==4.0.0
36-
toml==0.10.1
37-
typed-ast==1.4.1
30+
PyYAML==5.4.1
31+
--no-binary PyYAML
32+
regex==2021.7.6
33+
--no-binary regex
34+
requests==2.25.1
35+
six==1.16.0
36+
tokenize-rt==4.1.0
37+
toml==0.10.2
38+
typed-ast==1.4.3
3839
--no-binary typed-ast
39-
urllib3==1.25.9
40-
virtualenv==20.0.26
40+
urllib3==1.26.6
41+
virtualenv==20.0.27
4142
xattr==0.9.7
4243
--no-binary xattr
43-
zipp==3.1.0
44+
zipp==3.5.0

0 commit comments

Comments
 (0)