Skip to content

Commit

Permalink
op/remove support for python 3.7 (#153)
Browse files Browse the repository at this point in the history
* Update create_docker_image.yml

* add publish_docker_image.yml

* Update publish_docker_image.yml

* Update testing.yml

remove python 3.7

* remove python 3.7

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* deactivate plot_firebase_moabb

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
gcattan and pre-commit-ci[bot] authored Jun 12, 2023
1 parent 28e5070 commit 7f0aa6f
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/create_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches: [ "main" ]
schedule:
- cron: "0 0 1 * *"
release:
types: [published]

jobs:

Expand All @@ -22,8 +20,3 @@ jobs:
run: |
export actor=$(echo ${{ github.actor }} | tr -d '[]')
docker build . --file Dockerfile --tag ghcr.io/${actor}/pyriemann-qiskit:$tag
- name: Publish the Docker image
if: ${{ github.event_name == 'release' }}
run: |
docker login ghcr.io -u ${{ github.actor }} -p $GITHUB_TOKEN
docker push ghcr.io/${{ github.actor }}/pyriemann-qiskit:$tag
31 changes: 31 additions & 0 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Image CI

on:
release:
types: [published]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: false
default: 'info'
tags:
description: 'Tags'
required: false

jobs:
build:
runs-on: ubuntu-latest
env:
tag: $(git rev-parse --short "$GITHUB_SHA")
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
export actor=pyRiemann
docker build . --file Dockerfile --tag ghcr.io/${actor}/pyriemann-qiskit:$tag
- name: Publish the Docker image
run: |
docker login ghcr.io -u ${{ github.actor }} -p $GITHUB_TOKEN
docker push ghcr.io/${{ github.actor }}/pyriemann-qiskit:$tag
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ https://doi.org/10.3897/rio.9.e101006.
_We recommend the use of [Anaconda](https://www.anaconda.com/) to manage python
environements._

`pyRiemann-qiskit` currently supports Windows, Mac and Linux OS with Python 3.7, 3.8 and
3.9.
`pyRiemann-qiskit` currently supports Windows, Mac and Linux OS with Python 3.8 and 3.9.

You can install `pyRiemann-qiskit` release from PyPI:

Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pyRiemann-qiskit: Qiskit wrapper for pyRiemann
<img src="_images/sphx_glr_plot_classify_P300_bi_thumb.png">
</div>
</a>
<a href="auto_examples/ERP/plot_firebase_moabb.html">
<a href="auto_examples/ERP/firebase_moabb.html">
<div class="col-md-3 thumbnail">
<img src="_images/sphx_glr_plot_firebase_moabb_thumb.png">
<img src="_images/sphx_glr_firebase_moabb_thumb.png">
</div>
</a>
<a href="auto_examples/ERP/plot_compare_dim_red.html">
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'Tracker': 'https://github.com/pyRiemann/pyRiemann-qiskit/issues/',
},
platforms='any',
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=['cython', 'pyriemann==0.4',
'qiskit_machine_learning==0.6.1',
'qiskit-ibm-provider==0.5.2',
Expand Down

0 comments on commit 7f0aa6f

Please sign in to comment.