Skip to content

Commit

Permalink
AVRO-3808: Drop Python 3.6, Update Pypy (#2373)
Browse files Browse the repository at this point in the history
* AVRO-3808: Drop Python 3.6

* AVRO-3808 Test with Pypy 3.8-3.10
  • Loading branch information
kojiromike authored Jul 21, 2023
1 parent b431018 commit 68d00d9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-lang-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
- '3.9'
- '3.8'
- '3.7'
- '3.6'
- 'pypy-3.7'
- 'pypy-3.6'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -92,9 +93,10 @@ jobs:
- '3.9'
- '3.8'
- '3.7'
- '3.6'
- 'pypy-3.7'
- 'pypy-3.6'
- 'pypy-3.8'
- 'pypy-3.9'
- 'pypy-3.10'

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions lang/py/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ license_files = avro/LICENSE
license = Apache License 2.0
classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Expand All @@ -57,7 +56,7 @@ include_package_data = true
install_requires =
typing-extensions;python_version<"3.8"
zip_safe = true
python_requires = >=3.6
python_requires = >=3.7

[options.entry_points]
console_scripts =
Expand Down
5 changes: 3 additions & 2 deletions lang/py/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ envlist =
docs
lint
typechecks
py36
py37
py38
py39
py310
py311
pypy3.6
pypy3.7
pypy3.8
pypy3.9
pypy3.10


[coverage:run]
Expand Down
23 changes: 19 additions & 4 deletions share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ RUN apt-get -qqy update \
python3-wheel \
python3.10 \
python3.11 \
python3.6 \
python3.7 \
python3.8 \
python3.9 \
Expand Down Expand Up @@ -175,10 +174,26 @@ RUN curl -sSL https://cpanmin.us \
Module::Install::Repository \
&& rm -rf .cpanm

# Install Python packages
ENV PIP_NO_CACHE_DIR=off
# Install Python3
ENV PATH="${PATH}:/opt/pypy3.8/bin:/opt/pypy3.9/bin:/opt/pypy3.10/bin" \
PIP_NO_CACHE_DIR=off

# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG BUILDARCH
RUN case "${BUILDARCH:?}" in \
arm64) pypyarch=aarch64;; \
*) pypyarch=linux64;; \
esac \
&& cd /opt \
&& for url in https://downloads.python.org/pypy/pypy3.8-v7.3.11-"$pypyarch".tar.bz2 \
https://downloads.python.org/pypy/pypy3.9-v7.3.12-"$pypyarch".tar.bz2 \
https://downloads.python.org/pypy/pypy3.10-v7.3.12-"$pypyarch".tar.bz2; \
do curl -fsSL "$url" | tar -xvjpf -; \
done \
&& ln -s pypy3.8* pypy3.8 \
&& ln -s pypy3.9* pypy3.9 \
&& ln -s pypy3.10* pypy3.10

# Install Python3 packages
RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install tox zstandard

Expand Down

0 comments on commit 68d00d9

Please sign in to comment.