Skip to content

Commit

Permalink
Support python3.10 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbings authored Feb 17, 2022
1 parent 886a940 commit 3403c5a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
fail-fast: false
steps:
- name: Checkout
Expand All @@ -123,7 +123,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
fail-fast: false
steps:
- name: Checkout
Expand All @@ -147,17 +147,17 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
- name: Add MSYS2 MinGW path
run: echo "D:\a\_temp\msys64\mingw64\bin" >> $env:GITHUB_PATH
- name: Install dependencies
run: msys2 depends/install_windows_depends.sh
- name: Add dependency path
run: echo "D:\a\_temp\msys64\mingw64\bin" >> $env:GITHUB_PATH
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ You can check API reference in this documentation.

## Installation

SynthTIGER requires `python>=3.6` and `libraqm`. If you want install dependencies, see [dependencies](depends).
SynthTIGER requires `python>=3.6` and `libraqm`.

To install SynthTIGER from PyPI:

```bash
$ pip install synthtiger
```

If you see a dependency error when you install or run SynthTIGER, install [dependencies](depends).

## Usage

```bash
Expand Down
5 changes: 5 additions & 0 deletions depends/install_macos_depends.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
set -euxo pipefail

# Pillow

brew install \
libtiff \
libjpeg \
Expand Down
5 changes: 5 additions & 0 deletions depends/install_ubuntu_depends.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
set -euxo pipefail

# Pillow

sudo apt install -y \
libtiff5-dev \
libjpeg8-dev \
Expand Down
5 changes: 5 additions & 0 deletions depends/install_windows_depends.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/bash
set -euxo pipefail

# Pillow

pacman --noconfirm -S \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-zlib \
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def read_long_description():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Image Recognition",
Expand Down

0 comments on commit 3403c5a

Please sign in to comment.