Skip to content

Commit 3d0ac47

Browse files
committed
suppress pymupdf warning, github auto publisher
1 parent eecccf3 commit 3d0ac47

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Python package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install build tools
21+
run: pip install build twine
22+
23+
- name: Build package
24+
run: python -m build
25+
26+
- name: Publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "PDFSentinel"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
authors = [
55
{ name="Not Empty Foundation", email="dev@not-empty.org" },
66
]

src/pdfsentinel/helper/pymupdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import fitz
33
from typing import Any, List, Tuple
44

5+
fitz.TOOLS.mupdf_display_errors(False)
56

67
def open_document(path: str) -> "fitz.Document":
78
return fitz.open(path)

src/pdfsentinel/sentinel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Any, Dict, List, Optional
44
from .helper import pymupdf
55

6-
76
class PDFSentinel:
87
DEFAULT_CONFIG = {
98
"max_page_size": 2000,

0 commit comments

Comments
 (0)