Skip to content

Commit

Permalink
drop python v 3.7 add 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Nov 26, 2023
1 parent 12f5372 commit 2e4fb1f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10.x, 3.11]
python-version: [3.8, 3.9, 3.10.x, 3.11, 3.12]
os: [ubuntu-latest]

steps:
Expand All @@ -25,8 +25,6 @@ jobs:
- name: Install testing dependencies
run: |
pip install -U wheel pip
pip install -U ".[test]"
- name: Lint with flake8
run: flake8
pip install --editable ".[test]"
- name: Test with pytest
run: pytest
35 changes: 24 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -33,7 +33,9 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"poppler-utils"
"poppler-utils",
"pyyaml",
"dateparser",
]
# dynamic = ["version"]

Expand All @@ -47,37 +49,48 @@ ocr = ["imagemagick", "ghostscript", "tesseract-ocr"]
pdfplumber = ["pdfplumber"]
pdfminer = ["pdfminer.six"]
ocrmypdf = ["ocrmypdf"]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox", "setuptools"]

[options.extras_require]
test = ["pytest", "pytest-cov", "pdfminer.six", "pdfplumber", "tox"]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox"]

# pyproject.toml
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q -vs --cov invoice2data"
addopts = "-vs --cov invoice2data"
testpaths = [
"tests"
]

[tool.flake8]
ignore = ["E231", "E241", "E203"]
per-file-ignores = [
"__init__.py:F401",
]
exclude = [
"build", "dist", ".git", ".idea", ".cache", ".tox", ".eggs"
]
max-line-length = 120
count = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py312
envlist = py38,py39,py310,py312,flake8
skip_missing_interpreters = True
[testenv]
deps = pytest >= 3.0.0, <4
commands = pytest
extras = test
[testenv:flake8]
commands=flake8 src tests
extras = test
"""

[tool.coverage.run]
branch = true
source = ["src"]

[tool.coverage.report]
show_missing = true
[project.entry-points."invoice2data"]
console_scripts = "invoice2data.main:main"

[tool.setuptools.dynamic]
readme = {file = ["README.md"]}
Expand Down

0 comments on commit 2e4fb1f

Please sign in to comment.