Skip to content

Commit

Permalink
Python 3.9 support, but there are a *ton* of deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Dec 4, 2020
1 parent 762425a commit dc6dc54
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
25 changes: 14 additions & 11 deletions appveyor.yml
@@ -1,13 +1,11 @@
environment:

global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
WITH_COMPILER: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd"

matrix:

# Pre-installed Python versions, which Appveyor may upgrade to
# a later point release.
# See: http://www.appveyor.com/docs/installed-software#python
Expand All @@ -26,24 +24,24 @@ environment:

- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "64"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "64"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7.0"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.0"
PYTHON_ARCH: "64"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "32"
Expand All @@ -52,11 +50,18 @@ environment:
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python39"
PYTHON_VERSION: "3.9.0"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python39-x64"
PYTHON_VERSION: "3.9.0"
PYTHON_ARCH: "64"

branches:
only:
- master

only:
- master

init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"

Expand All @@ -69,12 +74,10 @@ build_script:
- "ECHO %WITH_COMPILER% %PYTHON%/python.exe setup.py bdist_wheel"
- "%WITH_COMPILER% %PYTHON%/python.exe setup.py bdist_wheel"


test_script:
- "%CMD_IN_ENV% %PYTHON%/python.exe -m pytest -sv"

artifacts:
- path: "dist\\*.whl"

#on_success:
# - TODO: upload the content of dist/*.whl to a public wheelhouse
4 changes: 2 additions & 2 deletions simpleparse/stt/TextTools/mxTextTools/mxTextTools.c
Expand Up @@ -2835,7 +2835,7 @@ PyObject *mxTextTools_UnicodeJoin(PyObject *seq,

o = PySequence_GetItem(seq, i);

if PyTuple_Check(o) {
if (PyTuple_Check(o)) {
/* Tuple entry: (string,l,r,[...]) */
register Py_ssize_t l,r;

Expand Down Expand Up @@ -2980,7 +2980,7 @@ PyObject *mxTextTools_Join(PyObject *seq,

o = PySequence_GetItem(seq, i);

if PyTuple_Check(o) {
if (PyTuple_Check(o)) {
/* Tuple entry: (string,l,r,[...]) */
register Py_ssize_t l,r;

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist=py27,py36,py37,py38
envlist=py39,py27,py36,py37,py38
skip_missing_interpreters = True
toxworkdir={toxinidir}/../simpleparse-tox

Expand Down

0 comments on commit dc6dc54

Please sign in to comment.