Skip to content

Commit

Permalink
chore: bump version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Jun 9, 2023
1 parent ad066b2 commit b5dcf70
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 13 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,28 @@
name: Upload Python Package

on:
workflow_dispatch:
release:
types: [published]

jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

PyPI:
name: Build wheels and push to PyPI
name: Upload to PyPI

needs: [build_sdist]
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
pip install -e '.[dev]'
- name: Test with Pytest on Python ${{ matrix.python-version }}
run: python -m pytest --cov edspdf --cov-report xml
run: python -m pytest --cov edspdf_mupdf --cov-report xml

- name: Upload coverage
uses: codecov/codecov-action@v2
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Tests](https://img.shields.io/github/workflow/status/aphp/edspdf-mupdf/Tests%20and%20Linting?label=tests&style=flat-square)
[![Documentation](https://img.shields.io/github/workflow/status/aphp/edspdf-mupdf/Documentation?label=docs&style=flat-square)](https://aphp.github.io/edspdf/latest/)
[![PyPI](https://img.shields.io/pypi/v/edspdf?color=blue&style=flat-square)](https://pypi.org/project/edspdf-mupdf/)
![Tests](https://img.shields.io/github/actions/workflow/status/aphp/edspdf-mupdf/tests.yml?branch=main&label=tests&style=flat-square)
[![Documentation](https://img.shields.io/github/actions/workflow/status/aphp/edspdf-mupdf/documentation.yml?branch=main&label=docs&style=flat-square)](https://aphp.github.io/edspdf-mupdf/latest/)
[![PyPI](https://img.shields.io/pypi/v/edspdf-mupdf?color=blue&style=flat-square)](https://pypi.org/project/edspdf-mupdf-mupdf/)
[![Codecov](https://img.shields.io/codecov/c/github/aphp/edspdf-mupdf?logo=codecov&style=flat-square)](https://codecov.io/gh/aphp/edspdf-mupdf)
[![DOI](https://zenodo.org/badge/517726737.svg)](https://zenodo.org/badge/latestdoi/517726737)

Expand Down
7 changes: 4 additions & 3 deletions edspdf_mupdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
pass

from io import BytesIO
from typing import Union, Literal
from typing import Union
from typing_extensions import Literal

import fitz as mupdf

from edspdf import Pipeline, registry
from edspdf.structures import Box, Page, PDFDoc, TextBox, TextProperties

__version__ = "0.1.2"
__version__ = "0.2.0"


@registry.factory.register("mupdf-extractor")
Expand Down Expand Up @@ -96,7 +97,7 @@ class MuPdfExtractor:
attribute (defaults to False)
render_dpi: int
DPI to use when rendering the page (defaults to 200)
sort_mode: SortMode
sort_mode: Literal["blocks", "lines", "none"]
Box sorting mode
- "blocks": sort while keeping blocks of boxes intaxct. Use this mode if you
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dynamic = ["version"]
requires-python = ">3.7.6,<4.0,!=3.8.1"

dependencies = [
"edspdf>=0.6.3",
"edspdf>=0.7.0",
"pymupdf~=1.21.0",
"numpy>=1.0.0"
]
Expand All @@ -28,15 +28,14 @@ dev = [
docs = [
"mike~=1.1.2",
"mkdocs@git+https://github.com/mkdocs/mkdocs.git@5af8bd30538ff8f0cfb698c8b90c3020da319f92",
"mkdocstrings>=0.20.0",
"mkdocs-autorefs@git+https://github.com/percevalw/mkdocs-autorefs.git@0652a0031a5402c5abcbac8cf1e846fcadbbacbc",
"mkdocs-bibtex~=2.8.14",
"mkdocstrings==0.20.0",
"mkdocs-autorefs@git+https://github.com/percevalw/[email protected]",
"mkdocs-gen-files~=0.4.0",
"mkdocs-literate-nav~=0.6.0",
"mkdocs-material~=9.1.0",
"mkdocstrings-python~=0.8.3",
"mkdocs-glightbox~=0.3.1",
"mkdocs-autorefs~=0.4.1",
"pybtex~=0.24.0",
]


Expand Down

0 comments on commit b5dcf70

Please sign in to comment.