Skip to content

Commit

Permalink
Merge pull request numba#892 from jamesobutler/drop-python-3.7
Browse files Browse the repository at this point in the history
Bump minimum supported Python version to 3.8
  • Loading branch information
esc committed Dec 5, 2022
2 parents 413d9e1 + ff22dfc commit ed0f625
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 53 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -57,7 +57,7 @@ Key Benefits
Compatibility
=============

llvmlite works with Python 3.7 and greater.
llvmlite works with Python 3.8 and greater.

As of version 0.37.0, llvmlite requires LLVM 11.x.x on all architectures

Expand Down
10 changes: 0 additions & 10 deletions azure-pipelines.yml
Expand Up @@ -5,9 +5,6 @@ jobs:
name: macOS
vmImage: macos-11
matrix:
py37:
PYTHON: '3.7'
CONDA_ENV: cienv
py38:
PYTHON: '3.8'
CONDA_ENV: cienv
Expand All @@ -23,9 +20,6 @@ jobs:
name: Linux
vmImage: ubuntu-20.04
matrix:
py37:
PYTHON: '3.7'
CONDA_ENV: cienv
py38:
PYTHON: '3.8'
CONDA_ENV: cienv
Expand All @@ -43,10 +37,6 @@ jobs:
# pypy:
# PYTHON: pypy
# CONDA_ENV: cienv
py37_wheel:
PYTHON: '3.7'
CONDA_ENV: cienv
WHEEL: 'yes'
py38_wheel:
PYTHON: '3.8'
CONDA_ENV: cienv
Expand Down
38 changes: 0 additions & 38 deletions buildscripts/manylinux2014/README.md

This file was deleted.

37 changes: 37 additions & 0 deletions buildscripts/manylinux_2_17/README.md
@@ -0,0 +1,37 @@
# README: Building manylinux_2_17 Wheels


## Build llvmdev packages for manylinux_2_17

Run the script below to start docker off building `llvmdev` base from the current state of the source tree:

- 32-bit linux: `./buildscripts/manylinux_2_17/docker_run_x32.sh build_llvmdev.sh`
- 64-bit linux: `./buildscripts/manylinux_2_17/docker_run_x64.sh build_llvmdev.sh`
- aarch64 linux: `./buildscripts/manylinux_2_17/docker_run_aaarch64.sh build_llvmdev.sh`

The conda packages will be stored into `<llvmlite_source_root>/docker_output`

Note: the `docker_output` location can be used as a local conda channel.

Finally, upload the conda package to the numba channel under the "manylinux_2_17" label:

`anaconda upload -u numba -l manylinux_2_17 <filepath>`


## Build llvmlite wheel for manylinux_2_17

Run the script below to start docker off building `llvmlite` base from the current state of the source tree:

- 32-bit linux: `./buildscripts/manylinux_2_17/docker_run_x32.sh build_llvmlite.sh <pyver>`
- 64-bit linux: `./buildscripts/manylinux_2_17/docker_run_x64.sh build_llvmlite.sh <pyver>`

The conda packages will be stored into `<llvmlite_source_root>/docker_output/dist_<arch>_<pyver>`

Available Python installations (`<pyver>`) are:

- cp38-cp38
- cp39-cp39
- cp310-cp310


Reference: https://github.com/pypa/manylinux
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion conda-recipes/llvmlite/meta.yaml
Expand Up @@ -37,7 +37,7 @@ requirements:
# llvmdev is built with libz compression support
- zlib # [unix and not (armv6l or armv7l)]
run:
- python >=3.7,<3.10
- python >=3.8,<3.10
- vs2015_runtime # [win]
# osx has dynamically linked libstdc++
- libcxx >=4.0.1 # [osx]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributing.rst
Expand Up @@ -95,7 +95,7 @@ you commit changes. You can skip this check with ``git commit --no-verify``.
Platform support
----------------

Llvmlite will be kept compatible with Python 3.7 and later
Llvmlite will be kept compatible with Python 3.8 and later
under at least Windows, macOS and Linux.

We do not expect contributors to test their code on all platforms. Pull
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -22,7 +22,7 @@
import sys


min_python_version = (3, 7)
min_python_version = (3, 8)
max_python_version = (3, 11) # exclusive


Expand Down Expand Up @@ -199,7 +199,6 @@ def finalize_options(self):
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down

0 comments on commit ed0f625

Please sign in to comment.