Skip to content

Commit ed10050

Browse files
authored
Update for setuptools v65.0.0, drop python <3.6 (#33)
* Update for setuptools v65.0.0, drop python <3.6 * Remove unused import * Drop python <3.6 from CI
1 parent 0f54c9c commit ed10050

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@ jobs:
99
- job: 'Test'
1010
strategy:
1111
matrix:
12-
Python27Linux:
13-
imageName: 'ubuntu-18.04'
14-
python.version: '2.7'
15-
Python27Mac:
16-
imageName: 'macos-10.15'
17-
python.version: '2.7'
18-
Python35Linux:
19-
imageName: 'ubuntu-18.04'
20-
python.version: '3.5'
21-
Python35Windows:
22-
imageName: 'windows-latest'
23-
python.version: '3.5'
24-
Python35Mac:
25-
imageName: 'macos-10.15'
26-
python.version: '3.5'
2712
Python36Linux:
2813
imageName: 'ubuntu-18.04'
2914
python.version: '3.6'

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from setuptools import Extension, setup
77
from distutils.command.build_ext import build_ext
88
from distutils.sysconfig import get_python_inc
9-
from distutils import ccompiler, msvccompiler
109
from Cython.Build import cythonize
1110

1211

@@ -78,12 +77,6 @@ def setup_package():
7877

7978
include_dirs = [get_python_inc(plat_specific=True)]
8079

81-
if (
82-
ccompiler.new_compiler().compiler_type == "msvc"
83-
and msvccompiler.get_build_version() == 9
84-
):
85-
include_dirs.append(os.path.join(root, "include", "msvc9"))
86-
8780
ext_modules = []
8881
for mod_name in MOD_NAMES:
8982
mod_path = mod_name.replace(".", "/") + ".pyx"
@@ -107,7 +100,7 @@ def setup_package():
107100
url=about["__uri__"],
108101
license=about["__license__"],
109102
ext_modules=cythonize(ext_modules, language_level=2),
110-
setup_requires=["cython>=0.28", "cymem>=2.0.2,<2.1.0", "murmurhash>=0.28.0,<1.1.0"],
103+
python_requires=">=3.6",
111104
install_requires=["cymem>=2.0.2,<2.1.0", "murmurhash>=0.28.0,<1.1.0"],
112105
classifiers=[
113106
"Environment :: Console",
@@ -118,8 +111,6 @@ def setup_package():
118111
"Operating System :: MacOS :: MacOS X",
119112
"Operating System :: Microsoft :: Windows",
120113
"Programming Language :: Cython",
121-
"Programming Language :: Python :: 2.7",
122-
"Programming Language :: Python :: 3.5",
123114
"Programming Language :: Python :: 3.6",
124115
"Programming Language :: Python :: 3.7",
125116
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)