-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI workflows, axe support for EOL python versions Bump version to 0.3.14
- Loading branch information
1 parent
bc0b6b0
commit 6e4f31c
Showing
9 changed files
with
85 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,43 +6,43 @@ on: | |
tags: '*' | ||
pull_request: | ||
|
||
env: | ||
PYTHON_LATEST_TAG: py313 | ||
PYTHON_LATEST_VER: 3.13 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
tests: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
tox: | ||
name: ${{ matrix.env }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- {name: '3.12', python: '3.12', os: ubuntu-latest, tox: py312} | ||
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311} | ||
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} | ||
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} | ||
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} | ||
env: [py39, py310, py311, py312, py313] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: 'pip' | ||
|
||
- name: Upgrade bootstrap packages | ||
run: python -m pip install --upgrade pip tox | ||
|
||
- name: Install tesseract | ||
run: sudo apt-get -y update && sudo apt-get install -y tesseract-ocr tesseract-ocr-fra | ||
|
||
- name: Print tesseract version | ||
run: echo $(tesseract --version) | ||
|
||
- name: Run tox | ||
run: tox -e ${{ matrix.tox }} | ||
env: | ||
PY_COLORS: 1 | ||
TOX_TESTENV_PASSENV: PY_COLORS | ||
|
||
- name: Test pytesseract package installation | ||
run: pip install -U . && pip show pytesseract && python -c 'import pytesseract' | ||
- uses: asottile/workflows/.github/actions/[email protected] | ||
with: | ||
submodules: false | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: | | ||
${{ | ||
(matrix.env == 'py39' || startsWith(matrix.env, 'py39-')) && '3.9' || | ||
(matrix.env == 'py310' || startsWith(matrix.env, 'py310-')) && '3.10' || | ||
(matrix.env == 'py311' || startsWith(matrix.env, 'py311-')) && '3.11' || | ||
(matrix.env == 'py312' || startsWith(matrix.env, 'py312-')) && '3.12' || | ||
(matrix.env == env.PYTHON_LATEST_TAG) && env.PYTHON_LATEST_VER | ||
}} | ||
- name: Install tesseract | ||
run: sudo apt-get -y update && sudo apt-get install -y tesseract-ocr tesseract-ocr-fra | ||
- name: Print tesseract version | ||
run: echo $(tesseract --version) | ||
- name: Update tools | ||
run: python -mpip install --upgrade setuptools tox virtualenv | ||
- name: Run tox | ||
run: tox -e ${{ matrix.env != env.PYTHON_LATEST_TAG && matrix.env || 'pandas' }} | ||
- name: Test pytesseract package installation | ||
if: ${{ matrix.env == env.PYTHON_LATEST_TAG }} | ||
run: python -mpip install -U . && python -mpip show pytesseract && python -c 'import pytesseract' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,37 @@ | ||
[metadata] | ||
name = pytesseract | ||
version = attr: pytesseract.__version__ | ||
author = Samuel Hoffstaetter | ||
author_email = [email protected] | ||
maintainer = Matthias Lee | ||
maintainer_email = [email protected] | ||
description = Python-tesseract is a python wrapper for Google's Tesseract-OCR | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
license = Apache License 2.0 | ||
license_file = LICENSE | ||
keywords = python-tesseract OCR Python | ||
url = https://github.com/madmaze/pytesseract | ||
author = Samuel Hoffstaetter | ||
author_email = [email protected] | ||
maintainer = Matthias Lee | ||
maintainer_email = [email protected] | ||
license = Apache-2.0 | ||
license_files = LICENSE | ||
classifiers = | ||
License :: OSI Approved :: Apache Software License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
keywords = python-tesseract OCR Python | ||
[options] | ||
packages = find: | ||
include_package_data = True | ||
install_requires = | ||
packaging>=21.3 | ||
Pillow>=8.0.0 | ||
python_requires = >=3.8 | ||
[options.entry_points] | ||
console_scripts = | ||
pytesseract = pytesseract.pytesseract:main | ||
packaging>=21.3 | ||
python_requires = >=3.9 | ||
include_package_data = True | ||
[options.packages.find] | ||
exclude = | ||
tests* | ||
testing* | ||
[options.entry_points] | ||
console_scripts = | ||
pytesseract = pytesseract.pytesseract:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
from setuptools import setup | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters