Skip to content

Commit

Permalink
Merge pull request #791 from adrianeboyd/chore/v7-python-3.11
Browse files Browse the repository at this point in the history
Updates for python 3.11, set version to v7.4.6
  • Loading branch information
adrianeboyd authored Oct 18, 2022
2 parents 4633214 + 133665c commit ce9b324
Show file tree
Hide file tree
Showing 13 changed files with 597 additions and 342 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
global-include *.h *.S *.c *.cu
global-include *.h *.S *.c *.cu LICENSE
include buildbot.json
include LICENSE
include README.rst
Expand Down
59 changes: 30 additions & 29 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,57 +9,57 @@ jobs:
- job: 'Test'
strategy:
matrix:
Python27Linux:
imageName: 'ubuntu-16.04'
python.version: '2.7'
Python27Mac:
imageName: 'macos-10.15'
python.version: '2.7'
Python35Linux:
imageName: 'ubuntu-16.04'
python.version: '3.5'
Python35Windows:
imageName: 'vs2017-win2016'
python.version: '3.5'
Python35Mac:
imageName: 'macos-10.15'
python.version: '3.5'
Python36Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-latest'
python.version: '3.6'
Python36Windows:
imageName: 'vs2017-win2016'
python.version: '3.6'
Python36Mac:
imageName: 'macos-10.15'
imageName: 'windows-2019'
python.version: '3.6'
Python37Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-latest'
python.version: '3.7'
Python37Windows:
imageName: 'vs2017-win2016'
imageName: 'windows-latest'
python.version: '3.7'
Python37Mac:
imageName: 'macos-10.15'
imageName: 'macos-latest'
python.version: '3.7'
Python38Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-latest'
python.version: '3.8'
Python38Windows:
imageName: 'vs2017-win2016'
imageName: 'windows-latest'
python.version: '3.8'
Python38Mac:
imageName: 'macos-10.15'
imageName: 'macos-latest'
python.version: '3.8'
Python39Linux:
imageName: 'ubuntu-16.04'
imageName: 'ubuntu-latest'
python.version: '3.9'
Python39Windows:
imageName: 'vs2017-win2016'
imageName: 'windows-latest'
python.version: '3.9'
Python39Mac:
imageName: 'macos-10.15'
imageName: 'macos-latest'
python.version: '3.9'
Python310Linux:
imageName: 'ubuntu-latest'
python.version: '3.10'
Python310Windows:
imageName: 'windows-latest'
python.version: '3.10'
Python310Mac:
imageName: 'macos-latest'
python.version: '3.10'
Python311Linux:
imageName: 'ubuntu-latest'
python.version: '3.11.0-rc.2'
Python311Windows:
imageName: 'windows-latest'
python.version: '3.11.0-rc.2'
Python311Mac:
imageName: 'macos-latest'
python.version: '3.11.0-rc.2'
maxParallel: 4
pool:
vmImage: $(imageName)
Expand All @@ -69,6 +69,7 @@ jobs:
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
allowUnstable: true

- script: |
python -m pip install --upgrade pip setuptools
Expand Down
10 changes: 7 additions & 3 deletions build-constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# build version constraints for use with wheelwright + multibuild
numpy==1.15.0; python_version<='3.7'
numpy==1.17.3; python_version=='3.8'
numpy==1.15.0; python_version<='3.7' and platform_machine!='aarch64'
numpy==1.19.2; python_version<='3.7' and platform_machine=='aarch64'
numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64'
numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'
numpy==1.19.3; python_version=='3.9'
numpy; python_version>='3.10'
numpy==1.21.3; python_version=='3.10'
numpy==1.23.2; python_version=='3.11'
numpy; python_version>='3.12'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tqdm>=4.10.0,<5.0.0
pathlib==1.0.1; python_version < "3.4"
# Development dependencies
cython>=0.25
hypothesis>=4.0.0,<6.0.0
hypothesis>=4.0.0,<7.0.0
pytest
mock>=2.0.0,<3.0.0
flake8>=3.5.0,<3.6.0
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def setup_package():
ext_modules=cythonize(ext_modules, language_level=2),
setup_requires=[
"numpy>=1.15.0",
"cython>=0.25",
"cython>=0.25,<3.0",
"murmurhash>=0.28.0,<1.1.0",
"cymem>=2.0.2,<2.1.0",
"preshed>=1.0.1,<3.1.0",
Expand Down Expand Up @@ -247,6 +247,8 @@ def setup_package():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
],
cmdclass={"build_ext": build_ext_subclass},
Expand Down
2 changes: 1 addition & 1 deletion thinc/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py

__name__ = "thinc"
__version__ = "7.4.4"
__version__ = "7.4.6"
__summary__ = "Practical Machine Learning for NLP"
__uri__ = "https://github.com/explosion/thinc"
__author__ = "Matthew Honnibal"
Expand Down
24 changes: 24 additions & 0 deletions thinc/extra/wrapt/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2013-2022, Graham Dumpleton
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
47 changes: 22 additions & 25 deletions thinc/extra/wrapt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
__version_info__ = ("1", "11", "1")
__version__ = ".".join(__version_info__)
__version_info__ = ('1', '14', '1')
__version__ = '.'.join(__version_info__)

from .wrappers import (
ObjectProxy,
CallableObjectProxy,
FunctionWrapper,
BoundFunctionWrapper,
WeakFunctionProxy,
PartialCallableObjectProxy,
resolve_path,
apply_patch,
wrap_object,
wrap_object_attribute,
function_wrapper,
wrap_function_wrapper,
patch_function_wrapper,
transient_function_wrapper,
)
from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper,
BoundFunctionWrapper, WeakFunctionProxy, PartialCallableObjectProxy,
resolve_path, apply_patch, wrap_object, wrap_object_attribute,
function_wrapper, wrap_function_wrapper, patch_function_wrapper,
transient_function_wrapper)

from .decorators import adapter_factory, AdapterFactory, decorator, synchronized
from .decorators import (adapter_factory, AdapterFactory, decorator,
synchronized)

from .importer import (
register_post_import_hook,
when_imported,
notify_module_loaded,
discover_post_import_hooks,
)
from .importer import (register_post_import_hook, when_imported,
notify_module_loaded, discover_post_import_hooks)

# Import of inspect.getcallargs() included for backward compatibility. An
# implementation of this was previously bundled and made available here for
# Python <2.7. Avoid using this in future.

from inspect import getcallargs

# Variant of inspect.formatargspec() included here for forward compatibility.
# This is being done because Python 3.11 dropped inspect.formatargspec() but
# code for handling signature changing decorators relied on it. Exposing the
# bundled implementation here in case any user of wrapt was also needing it.

from .arguments import formatargspec
Loading

0 comments on commit ce9b324

Please sign in to comment.