Skip to content

Commit 592e67b

Browse files
committed
Add support for Python 3.11 TryStar
1 parent 9748fab commit 592e67b

File tree

13 files changed

+96
-24
lines changed

13 files changed

+96
-24
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
permissions:
1212
contents: write
1313
container:
14-
image: danielflook/python-minifier-build:python3.10-2022-04-12
14+
image: danielflook/python-minifier-build:python3.11-2022-08-23
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -52,9 +52,9 @@ jobs:
5252
runs-on: ubuntu-latest
5353
strategy:
5454
matrix:
55-
python: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
55+
python: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
5656
container:
57-
image: danielflook/python-minifier-build:python${{ matrix.python }}-2022-04-12
57+
image: danielflook/python-minifier-build:python${{ matrix.python }}-2022-08-23
5858
steps:
5959
- name: Test
6060
run: |

.github/workflows/release_test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Create Package
99
runs-on: ubuntu-latest
1010
container:
11-
image: danielflook/python-minifier-build:python3.10-2022-04-12
11+
image: danielflook/python-minifier-build:python3.11-2022-08-23
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
needs: [package]
3838
container:
39-
image: danielflook/python-minifier-build:python3.10-2022-04-12
39+
image: danielflook/python-minifier-build:python3.11-2022-08-23
4040
steps:
4141
- uses: actions/download-artifact@v3
4242
with:
@@ -62,10 +62,10 @@ jobs:
6262
needs: [package]
6363
strategy:
6464
matrix:
65-
python: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
65+
python: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
6666
package_type: [.tar.gz, .whl]
6767
container:
68-
image: danielflook/python-minifier-build:python${{ matrix.python }}-2022-04-12
68+
image: danielflook/python-minifier-build:python${{ matrix.python }}-2022-08-23
6969
steps:
7070
- uses: actions/download-artifact@v3
7171
with:
@@ -95,7 +95,7 @@ jobs:
9595
matrix:
9696
package_type: [.tar.gz, .whl]
9797
container:
98-
image: danielflook/python-minifier-build:python3.10-2022-04-12
98+
image: danielflook/python-minifier-build:python3.11-2022-08-23
9999
steps:
100100
- uses: actions/download-artifact@v3
101101
with:
@@ -104,14 +104,14 @@ jobs:
104104

105105
- name: Install package
106106
run: |
107-
pip3.10 install dist/*${{ matrix.package_type }}
107+
pip3.11 install dist/*${{ matrix.package_type }}
108108
109109
- name: Checkout
110110
uses: actions/checkout@v2
111111

112112
- name: Test typing
113113
run: |
114-
pip3.10 install mypy types-setuptools
114+
pip3.11 install mypy types-setuptools
115115
mypy typing_test/test_typing.py
116116
117117
if mypy typing_test/test_badtyping.py; then

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["python2.7", "python3.3", "python3.4", "python3.5", "python3.6", "python3.7", "python3.8", "python3.9", "python3.10", "pypy", "pypy3"]
13+
python: ["python2.7", "python3.3", "python3.4", "python3.5", "python3.6", "python3.7", "python3.8", "python3.9", "python3.10", "python3.11", "pypy", "pypy3"]
1414
container:
15-
image: danielflook/python-minifier-build:${{ matrix.python }}-2022-04-12
15+
image: danielflook/python-minifier-build:${{ matrix.python }}-2022-08-23
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2

.github/workflows/xtest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["python2.7", "python3.3", "python3.4", "python3.5", "python3.6", "python3.7", "python3.8", "python3.9", "python3.10", "pypy3"]
13+
python: ["python2.7", "python3.3", "python3.4", "python3.5", "python3.6", "python3.7", "python3.8", "python3.9", "python3.10", "python3.11", "pypy3"]
1414
container:
15-
image: danielflook/python-minifier-build:${{ matrix.python }}-2022-04-12
15+
image: danielflook/python-minifier-build:${{ matrix.python }}-2022-08-23
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Transforms Python source code into it's most compact representation.
44

55
[Try it out!](https://python-minifier.com)
66

7-
python-minifier currently supports Python 2.7 and Python 3.3 to 3.10. Previous releases supported Python 2.6.
7+
python-minifier currently supports Python 2.7 and Python 3.3 to 3.11. Previous releases supported Python 2.6.
88

99
* [PyPI](https://pypi.org/project/python-minifier/)
1010
* [Documentation](https://dflook.github.io/python-minifier/)
@@ -107,7 +107,7 @@ $ pip install python-minifier
107107
Note that python-minifier depends on the python interpreter for parsing source code,
108108
so install using a version of python appropriate for your source.
109109

110-
python-minifier runs with and can minify code written for Python 2.7 and Python 3.3 to 3.10.
110+
python-minifier runs with and can minify code written for Python 2.7 and Python 3.3 to 3.11.
111111

112112
## Usage
113113

docker/Dockerfile-fedora28

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN dnf install -y \
5151
bzip2 \
5252
&& dnf clean all && rm -rf /var/cache/dnf/*
5353

54-
RUN pip3 install 'tox<3' 'virtualenv<16'
54+
RUN pip3 install 'tox<3' 'virtualenv<16' 'setuptools_scm<7'
5555

5656
WORKDIR /tmp/work
5757
ENTRYPOINT ["/bin/bash"]

docker/Dockerfile-fedora36

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM fedora:36 AS python3.11
2+
3+
# CircleCI required tools
4+
RUN dnf install -y \
5+
git \
6+
openssh \
7+
tar \
8+
gzip \
9+
gpg \
10+
ca-certificates \
11+
&& dnf clean all && rm -rf /var/cache/dnf/*
12+
13+
# Development tools
14+
RUN dnf install -y \
15+
@development-tools \
16+
findutils \
17+
zlib-devel \
18+
bzip2-devel \
19+
ncurses-devel \
20+
gdbm-devel \
21+
openssl-devel \
22+
sqlite-devel \
23+
tk-devel \
24+
libuuid-devel \
25+
readline-devel \
26+
libnsl2-devel \
27+
xz-devel \
28+
libffi-devel \
29+
wget \
30+
&& git clone https://github.com/python/cpython.git \
31+
&& cd cpython \
32+
&& git checkout v3.11.0rc1 \
33+
&& ./configure \
34+
&& make \
35+
&& make install \
36+
&& cd .. \
37+
&& rm -rf cpython \
38+
&& dnf clean all && rm -rf /var/cache/dnf/*
39+
40+
# Other packages required for tests
41+
RUN dnf install -y \
42+
bzip2 \
43+
&& dnf clean all && rm -rf /var/cache/dnf/*
44+
45+
RUN pip3 install tox==3.25.1
46+
47+
WORKDIR /tmp/work
48+
ENTRYPOINT ["/bin/bash"]

docker/build-images.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ docker build --tag danielflook/python-minifier-build:python3.9-$DATE -f Dockerfi
2323
docker pull fedora:34
2424
docker build --tag danielflook/python-minifier-build:python3.10-$DATE -f Dockerfile-fedora34 --target python3.10 .
2525

26+
docker pull fedora:36
27+
docker build --tag danielflook/python-minifier-build:python3.11-$DATE -f Dockerfile-fedora36 --target python3.11 .
28+
2629
docker push danielflook/python-minifier-build:python3.3-$DATE
2730
docker push danielflook/python-minifier-build:python2.7-$DATE
2831
docker push danielflook/python-minifier-build:python3.4-$DATE
@@ -32,5 +35,6 @@ docker push danielflook/python-minifier-build:python3.7-$DATE
3235
docker push danielflook/python-minifier-build:python3.8-$DATE
3336
docker push danielflook/python-minifier-build:python3.9-$DATE
3437
docker push danielflook/python-minifier-build:python3.10-$DATE
38+
docker push danielflook/python-minifier-build:python3.11-$DATE
3539
docker push danielflook/python-minifier-build:pypy-$DATE
3640
docker push danielflook/python-minifier-build:pypy3-$DATE

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ To install python-minifier use pip:
99
1010
Note that python-minifier depends on the python interpreter for parsing source code, so install using a version of python appropriate for your source.
1111

12-
python-minifier runs with and can minify code written for Python 2.7 and Python 3.3 to 3.10.
12+
python-minifier runs with and can minify code written for Python 2.7 and Python 3.3 to 3.11.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
long_description=long_desc,
2727
long_description_content_type='text/markdown',
2828

29-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <3.11',
29+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <3.12',
3030
setup_requires=['setuptools_scm'],
3131

3232
classifiers=[
@@ -42,6 +42,7 @@
4242
'Programming Language :: Python :: 3.8',
4343
'Programming Language :: Python :: 3.9',
4444
'Programming Language :: Python :: 3.10',
45+
'Programming Language :: Python :: 3.11',
4546
'Programming Language :: Python :: 2',
4647
'Programming Language :: Python :: 2.7',
4748
'Programming Language :: Python :: Implementation :: CPython',

0 commit comments

Comments
 (0)