Skip to content

Commit 116fd33

Browse files
committed
drop support for Python 3.5
1 parent 9396786 commit 116fd33

File tree

3 files changed

+8
-36
lines changed

3 files changed

+8
-36
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ jobs:
1212
- name: Install packages
1313
run: sudo apt-get install -y -qq libboost-dev libexpat1-dev zlib1g-dev libbz2-dev libproj-dev libgeos-dev liblz4-dev
1414

15-
- name: Set up Python 3.5
16-
uses: actions/setup-python@v2
17-
with:
18-
python-version: 3.5
19-
20-
- name: Build package 3.5
21-
run: |
22-
pip install build wheel
23-
python -m build
24-
shell: bash
25-
2615
- name: Set up Python 3.6
2716
uses: actions/setup-python@v2
2817
with:
@@ -91,7 +80,7 @@ jobs:
9180
strategy:
9281
fail-fast: false
9382
matrix:
94-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
83+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
9584

9685
steps:
9786
- uses: actions/checkout@v2
@@ -126,13 +115,13 @@ jobs:
126115
cc: gcc-7
127116
cxx: g++-7
128117
platform: ubuntu-18.04
129-
python: 3.5
118+
python: 3.6
130119
deps: release
131120
- compiler: clang-old
132121
cc: clang-6.0
133122
cxx: clang++-6.0
134123
platform: ubuntu-18.04
135-
python: 3.5
124+
python: 3.6
136125
deps: release
137126
- compiler: gcc
138127
cc: gcc-10
@@ -217,19 +206,6 @@ jobs:
217206
run: vcpkg install bzip2:x64-windows expat:x64-windows zlib:x64-windows boost-variant:x64-windows boost-iterator:x64-windows lz4:x86-windows
218207
shell: bash
219208

220-
- name: Set up Python 3.5
221-
uses: actions/setup-python@v2
222-
with:
223-
python-version: 3.5
224-
225-
- name: Build package 3.5
226-
run: |
227-
pip install build wheel
228-
python -m build
229-
shell: bash
230-
env:
231-
CMAKE_TOOLCHAIN_FILE: C:/vcpkg/scripts/buildsystems/vcpkg.cmake
232-
233209
- name: Set up Python 3.6
234210
uses: actions/setup-python@v2
235211
with:
@@ -308,10 +284,7 @@ jobs:
308284
strategy:
309285
fail-fast: false
310286
matrix:
311-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
312-
include:
313-
- python-version: "3.10"
314-
test-args: "-k 'not test_amenity_list'" #no binary wheel for shapely available
287+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
315288

316289
env:
317290
PYTEST_ADDOPTS: ${{ matrix.test-args }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manner.
88

99
## Installation
1010

11-
Pyosmium works with Python >= 3.5. Pypy is known to not work.
11+
Pyosmium works with Python >= 3.6. Pypy is known to not work.
1212

1313
### Using Pip
1414

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def build_extension(self, ext):
131131

132132
versions = get_versions()
133133

134-
if sys.version_info < (3,5):
135-
raise RuntimeError("Python 3.5 or larger required.")
134+
if sys.version_info < (3,6):
135+
raise RuntimeError("Python 3.6 or larger required.")
136136

137137
with open('README.rst', 'r') as descfile:
138138
long_description = descfile.read()
@@ -155,7 +155,6 @@ def build_extension(self, ext):
155155
"Development Status :: 4 - Beta",
156156
"Intended Audience :: Developers",
157157
"License :: OSI Approved :: BSD License",
158-
"Programming Language :: Python :: 3.5",
159158
"Programming Language :: Python :: 3.6",
160159
"Programming Language :: Python :: 3.7",
161160
"Programming Language :: Python :: 3.8",
@@ -167,7 +166,7 @@ def build_extension(self, ext):
167166
ext_modules=[CMakeExtension('cmake_example')],
168167
packages = ['osmium', 'osmium/osm', 'osmium/replication'],
169168
package_dir = {'' : 'src'},
170-
python_requires = ">=3.5",
169+
python_requires = ">=3.6",
171170
install_requires = ['requests'],
172171
cmdclass=dict(build_ext=CMakeBuild, sdist=Pyosmium_sdist),
173172
zip_safe=False,

0 commit comments

Comments
 (0)