Skip to content

Commit 6370750

Browse files
authored
Merge pull request #105 from sdpython/py10
Update for python 3.10
2 parents 18d782a + 5b94de7 commit 6370750

File tree

6 files changed

+25
-47
lines changed

6 files changed

+25
-47
lines changed

.circleci/config.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/python:3.9.6
5+
- image: cimg/python:3.10.5
66

77
working_directory: ~/repo
88

@@ -43,34 +43,15 @@ jobs:
4343
command: |
4444
sudo apt-get install -y graphviz
4545
46-
- run:
47-
name: Install libproj
48-
command: |
49-
sudo apt-get install -y libgeos-dev libproj-dev proj-data graphviz
50-
5146
- run:
5247
name: Install standard libraries
5348
command: |
54-
python -m venv venv
55-
. venv/bin/activate
56-
pip install scipy matplotlib numpy cython pandas
57-
58-
- run:
59-
name: Install pyproj, shapely, cartopy
60-
command: |
61-
python -m venv venv
62-
. venv/bin/activate
63-
pip install pyproj
64-
pip uninstall -y shapely
65-
pip install --no-binary shapely shapely
66-
pip install cartopy
49+
python -m pip install scipy matplotlib numpy cython pandas
6750
6851
- run:
6952
name: install dependencies
7053
command: |
71-
python -m venv venv
72-
. venv/bin/activate
73-
pip install -r requirements.txt
54+
python -m pip install -r requirements.txt
7455
7556
- save_cache:
7657
paths:
@@ -80,27 +61,22 @@ jobs:
8061
- run:
8162
name: check list of dependencies
8263
command: |
83-
python -m venv venv
84-
. venv/bin/activate
85-
pip freeze
64+
python -m pip freeze
8665
apt list --installed
8766
8867
- run:
8968
name: compile and build
9069
command: |
91-
. venv/bin/activate
9270
python setup.py build_ext --inplace
9371
9472
- run:
9573
name: run tests
9674
command: |
97-
. venv/bin/activate
9875
python setup.py unittests -d 9
9976
10077
- run:
10178
name: wheel
10279
command: |
103-
. venv/bin/activate
10480
python setup.py bdist_wheel
10581
mkdir -p test-reports/dist
10682
cp dist/*.whl test-reports/dist
@@ -121,4 +97,4 @@ jobs:
12197

12298
- store_artifacts:
12399
path: test-reports
124-
destination: test-reports
100+
destination: test-reports

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ language: python
44

55
matrix:
66
include:
7-
- python: 3.9
8-
name: "Py39-024+"
7+
- python: 3.10
8+
name: "Py310"
99
env:
10-
- sklver=">=0.24.2"
10+
- sklver=">=1.1"
1111
- jlver=">=1.0"
1212

1313
before_install:

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017-2021, Xavier Dupré
1+
Copyright (c) 2017-2022, Xavier Dupré
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ image:
22
- Visual Studio 2019
33
environment:
44
matrix:
5-
- PYTHON: "C:\\Python39-x64"
6-
PYTHON_VERSION: "3.9.x"
5+
- PYTHON: "C:\\Python310-x64"
6+
PYTHON_VERSION: "3.10.x"
77
PYTHON_ARCH: "64"
88
SKL: '>=1.0'
99
- PYTHON: "C:\\Python39-x64"
@@ -16,10 +16,10 @@ init:
1616
install:
1717
- "%PYTHON%\\python -m pip install --upgrade pip"
1818
# for many packages
19+
- pip install llvmlite numba
1920
- "%PYTHON%\\Scripts\\pip install -r requirements-win.txt"
2021
# install precompiled versions not available on pypi
21-
- "%PYTHON%\\Scripts\\pymy_install3 llvmlite numba"
22-
- "%PYTHON%\\Scripts\\pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html"
22+
- "%PYTHON%\\Scripts\\pip install torch torchvision torchaudio"
2323
# other dependencies
2424
- "%PYTHON%\\Scripts\\pip install -r requirements.txt --no-deps"
2525
- "%PYTHON%\\Scripts\\pip install scikit-learn%SKL%"

azure-pipelines.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44
vmImage: 'ubuntu-latest'
55
strategy:
66
matrix:
7-
Python39-Linux:
8-
python.version: '3.9'
7+
Python310-Linux:
8+
python.version: '3.10'
99
maxParallel: 3
1010
steps:
1111
- task: UsePythonVersion@0
@@ -51,8 +51,8 @@ jobs:
5151
python -m pip install cibuildwheel
5252
export CIBW_MANYLINUX_X86_64_IMAGE="manylinux_2_24"
5353
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming"
54-
export CIBW_BUILD="cp39-manylinux_x86_64"
55-
python -m cibuildwheel --output-dir dist/wheelhouse39 --platform linux
54+
export CIBW_BUILD="cp39-manylinux_x86_64 cp310-manylinux_x86_64"
55+
python -m cibuildwheel --output-dir dist/wheelhouse_2 --platform linux
5656
displayName: 'Build Package manylinux_x_y'
5757
- script: |
5858
python -m pip install cibuildwheel
@@ -71,8 +71,8 @@ jobs:
7171
vmImage: 'windows-latest'
7272
strategy:
7373
matrix:
74-
Python39-Windows:
75-
python.version: '3.9'
74+
Python310-Windows:
75+
python.version: '3.10'
7676
maxParallel: 3
7777
steps:
7878
- task: UsePythonVersion@0
@@ -92,7 +92,7 @@ jobs:
9292
- script: |
9393
python -m pip install cibuildwheel
9494
set CIBW_BEFORE_BUILD=pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming
95-
set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64 cp39-win_amd64
95+
set CIBW_BUILD=cp37-win_amd64 cp38-win_amd64 cp39-win_amd64 cp310-win_amd64
9696
python -m cibuildwheel --output-dir dist/wheelhouse
9797
displayName: 'Build Package many'
9898
- task: PublishPipelineArtifact@0
@@ -105,8 +105,8 @@ jobs:
105105
vmImage: 'macOS-latest'
106106
strategy:
107107
matrix:
108-
Python39-MacOs:
109-
python.version: '3.9'
108+
Python310-MacOs:
109+
python.version: '3.10'
110110
maxParallel: 3
111111
steps:
112112
- task: UsePythonVersion@0
@@ -159,7 +159,7 @@ jobs:
159159
- script: |
160160
python -m pip install cibuildwheel
161161
export CIBW_BEFORE_BUILD="pip install pybind11 cython numpy scipy pyquickhelper scikit-learn pandas pandas_streaming"
162-
export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64"
162+
export CIBW_BUILD="cp37-macosx_x86_64 cp38-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64"
163163
python -m cibuildwheel --output-dir dist/wheelhouse
164164
displayName: 'Build Package many'
165165
- task: PublishPipelineArtifact@0

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ cython
66
joblib
77
jupyter_sphinx>=0.2
88
jyquickhelper
9+
llvmlite
910
matplotlib
1011
memory_profiler>=0.55
1112
nbconvert>=6.0.2
13+
numba
1214
numpy
1315
onnx
1416
onnxruntime

0 commit comments

Comments
 (0)