Skip to content

Commit 0b1c89b

Browse files
authored
Drop EOL Pythons (#35)
1 parent f9b3b13 commit 0b1c89b

File tree

7 files changed

+12
-480
lines changed

7 files changed

+12
-480
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-18.04, windows-2019]
12-
python-version: ["2.7","3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
12+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
1313

14-
exclude:
15-
- python-version: "2.7"
16-
os: windows-2019
17-
- python-version: "3.4"
18-
os: windows-2019
19-
- python-version: "3.5"
20-
os: windows-2019
2114
steps:
2215
- uses: actions/checkout@v2
2316
- name: Set up Python ${{ matrix.python-version }}

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ JSON and encoding JSON to BSON. See `benchmark.py`::
7878
Installing From Source
7979
======================
8080

81-
python-bsonjs supports CPython 2.7, and 3.4+.
81+
python-bsonjs supports CPython 3.6+.
8282

8383
Compiler
8484
````````
@@ -87,10 +87,7 @@ You must build python-bsonjs separately for each version of Python. On
8787
Windows this means you must use the same C compiler your Python version was
8888
built with.
8989

90-
- Python 2.7 requires `Microsoft Visual C++ Compiler for Python 2.7
91-
<https://www.microsoft.com/en-us/download/details.aspx?id=44266>`_
92-
- Python 3.4 requires Microsoft Visual Studio 2010 Professional
93-
- Python 3.5 and up requires Microsoft Visual Studio 2015
90+
- Python 3.6 and up requires Microsoft Visual Studio 2015
9491

9592
Source
9693
``````

build-wheels.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ done
2727

2828
# Install packages and test
2929
for PYBIN in /opt/python/*/bin; do
30+
if [[ ! "${PYBIN}" =~ (36|37|38|39|310) ]]; then
31+
continue
32+
fi
3033
"${PYBIN}/pip" install python-bsonjs --no-index -f dist
3134
# The tests require PyMongo.
3235
"${PYBIN}/pip" install 'pymongo>=3.4' unittest2

0 commit comments

Comments
 (0)