Skip to content

Commit

Permalink
Drop old python, add 3.11 instead (#545)
Browse files Browse the repository at this point in the history
* rip requires.io, add github actions badge

* also test 3.11, please

* remove 3.6, 3.7 from Azure pipeline, as tests fail because of dependencies

* add 3.11
  • Loading branch information
wilko77 authored Dec 1, 2022
1 parent 5860ade commit 1378572
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
python: ["3.8", "3.9", "3.10"]
python: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 3 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
.. image:: https://dev.azure.com/data61/Anonlink/_apis/build/status/data61.anonlink?branchName=main
:target: https://dev.azure.com/data61/Anonlink/_build/latest?definitionId=3&branchName=main

.. image:: https://github.com/data61/anonlink/actions/workflows/unittests.yml/badge.svg?branch=main
:target: https://github.com/data61/anonlink/actions/workflows/unittests.yml

.. image:: https://codecov.io/gh/data61/anonlink/branch/main/graph/badge.svg
.. image:: https://codecov.io/gh/data61/anonlink/branch/main/graph/badge.svg?token=04DblXwUsT
:target: https://codecov.io/gh/data61/anonlink


.. image:: https://requires.io/github/data61/anonlink/requirements.svg?branch=main
:target: https://requires.io/github/data61/anonlink/requirements/?branch=main


.. image:: https://pepy.tech/badge/anonlink
:target: https://pepy.tech/project/anonlink

Expand Down
44 changes: 2 additions & 42 deletions azurePipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stages:
# Need to install development libraries for manylinux container
CIBW_BEFORE_ALL_LINUX: 'yum install -y libffi-devel atlas-devel'
# Only build for Python36+, and x64 arch
CIBW_BUILD: 'cp310-* cp39-* cp38-* cp37-* cp36-*'
CIBW_BUILD: 'cp310-* cp39-* cp38-*'
CIBW_SKIP: '*-win32 *-manylinux_i686 *-musllinux_*'
#CIBW_BEFORE_TEST: pip install -r {project}/requirements.txt
#CIBW_TEST_COMMAND: "pytest {project}/tests"
Expand Down Expand Up @@ -45,33 +45,13 @@ stages:
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
- template: .azurePipeline/cibuildwheel_steps.yml
- job: linux_37
displayName: Linux + Python3.7
pool:
vmImage: 'ubuntu-20.04'
variables:
CIBW_BUILD: 'cp37-*'
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- template: .azurePipeline/cibuildwheel_steps.yml
- job: linux_36
displayName: Linux + Python3.6
pool:
vmImage: 'ubuntu-20.04'
variables:
CIBW_BUILD: 'cp36-*'
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- template: .azurePipeline/cibuildwheel_steps.yml
- job: macos
displayName: MacOS
pool:
vmImage: 'macOS-10.15'
variables:
MACOSX_DEPLOYMENT_TARGET: '10.15'
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.9', architecture: x64}}
- template: .azurePipeline/cibuildwheel_steps.yml
Expand All @@ -80,8 +60,6 @@ stages:
pool:
vmImage: 'windows-2019'
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.9', architecture: x64}}
- template: .azurePipeline/cibuildwheel_steps.yml
Expand Down Expand Up @@ -119,12 +97,6 @@ stages:
vmImage: 'ubuntu-20.04'
strategy:
matrix:
Python3.6:
pythonVersion: '3.6'
artifactName: 'wheels.linux36'
Python3.7:
pythonVersion: '3.7'
artifactName: 'wheels.linux37'
Python3.8:
pythonVersion: '3.8'
artifactName: 'wheels.linux38'
Expand All @@ -143,10 +115,6 @@ stages:
vmImage: 'macOS-10.15'
strategy:
matrix:
Python3.7:
pythonVersion: '3.7'
artifactName: 'wheels.macos'
artifactPattern: '**/*cp37*.whl'
Python3.8:
pythonVersion: '3.8'
artifactName: 'wheels.macos'
Expand All @@ -168,14 +136,6 @@ stages:
vmImage: 'windows-2019'
strategy:
matrix:
Python3.6:
pythonVersion: '3.6'
artifactName: 'wheels.windows'
artifactPattern: '**/*cp36m*.whl'
Python3.7:
pythonVersion: '3.7'
artifactName: 'wheels.windows'
artifactPattern: '**/*cp37m*.whl'
Python3.8:
pythonVersion: '3.8'
artifactName: 'wheels.windows'
Expand Down Expand Up @@ -220,7 +180,7 @@ stages:
# the name of an Azure artifacts feed to publish artifacts to
artifactFeed: anonlink
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
- script: 'pip install twine'
- task: DownloadPipelineArtifact@2
inputs:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Security :: Cryptography",
Expand Down

0 comments on commit 1378572

Please sign in to comment.