-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
428 additions
and
248 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
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
contents: read | ||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- | ||
name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
|
@@ -52,11 +52,11 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev', 'pypy3.8', 'pypy3.9'] | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.8', 'pypy3.9', 'pypy3.10'] | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- | ||
name: Start containers | ||
run: | | ||
|
@@ -74,6 +74,10 @@ jobs: | |
name: Install Hatch | ||
run: | | ||
pip3 --quiet install --upgrade hatch | ||
- | ||
name: List installed dependencies | ||
run: | | ||
hatch run pip-list | ||
- | ||
name: Run tests | ||
run: | | ||
|
@@ -101,7 +105,7 @@ jobs: | |
- lint | ||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- | ||
name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
|
@@ -119,7 +123,7 @@ jobs: | |
- | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
name: build-artifacts | ||
path: dist/* | ||
if-no-files-found: error | ||
retention-days: 7 | ||
|
@@ -135,11 +139,11 @@ jobs: | |
- test | ||
steps: | ||
- | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
name: build-artifacts | ||
path: dist | ||
- | ||
name: Get latest release info | ||
|
@@ -173,8 +177,8 @@ jobs: | |
- | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
name: build-artifacts | ||
path: dist | ||
- | ||
name: Publish build to PyPI | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].10 |
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,17 @@ build-backend = "hatchling.build" | |
[project] | ||
name = "tika-client" | ||
dynamic = ["version"] | ||
description = 'A modern REST client for Apache Tika server' | ||
description = "A modern REST client for Apache Tika server" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = "GPL-3.0-only" | ||
license = "MPL-2.0" | ||
keywords = [] | ||
authors = [ | ||
{ name = "Trenton H", email = "[email protected].com" }, | ||
{ name = "Trenton H", email = "rda0128ou@mozmail.com" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"Environment :: Web Environment", | ||
|
@@ -30,7 +30,10 @@ classifiers = [ | |
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy" | ||
] | ||
dependencies = ["httpx ~= 0.24"] | ||
dependencies = [ | ||
"httpx ~= 0.25; python_version >= '3.9'", | ||
"httpx ~= 0.24; python_version < '3.9'" | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/stumpylog/tika-rest-client#readme" | ||
|
@@ -40,14 +43,21 @@ Source = "https://github.com/stumpylog/tika-rest-client" | |
[tool.hatch.version] | ||
path = "src/tika_client/__about__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
".github", | ||
".docker" | ||
] | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"coverage[toml]>=6.5", | ||
"pytest", | ||
"coverage[toml] >= 7.3", | ||
"pytest >= 7.4", | ||
"pytest-sugar", | ||
"pytest-cov", | ||
"pytest-xdist", | ||
"pytest-httpx", | ||
"pytest-httpx ~= 0.26; python_version >= '3.9'", | ||
"pytest-httpx ~= 0.22; python_version < '3.9'", | ||
"python-magic", | ||
] | ||
|
||
|
@@ -69,16 +79,17 @@ cov = [ | |
"cov-report", | ||
"cov-json" | ||
] | ||
pip-list = "pip list" | ||
|
||
[[tool.hatch.envs.all.matrix]] | ||
python = ["3.8", "3.9", "3.10", "3.11"] | ||
|
||
[tool.hatch.envs.lint] | ||
detached = true | ||
dependencies = [ | ||
"black>=23.1.0", | ||
"mypy>=1.0.0", | ||
"ruff>=0.0.243", | ||
"black>=23.10.0", | ||
"mypy>=1.5.0", | ||
"ruff>=0.1.3", | ||
"httpx", | ||
] | ||
|
||
|
@@ -103,43 +114,56 @@ target-version = ["py38"] | |
line-length = 120 | ||
|
||
[tool.ruff] | ||
# https://beta.ruff.rs/docs/settings/ | ||
# https://docs.astral.sh/ruff/settings/ | ||
fix = true | ||
format = "grouped" | ||
output-format = "grouped" | ||
target-version = "py38" | ||
line-length = 120 | ||
# https://beta.ruff.rs/docs/rules/ | ||
# https://docs.astral.sh/ruff/rules/ | ||
extend-select = [ | ||
"A", | ||
"ARG", | ||
"B", | ||
"C", | ||
"COM", | ||
"C4", | ||
"COM", | ||
"DTZ", | ||
"E", | ||
"EM", | ||
"EXE", | ||
"ERA", | ||
"EXE", | ||
"F", | ||
"FBT", | ||
"FLY", | ||
"I", | ||
"ICN", | ||
"INP", | ||
"INP", | ||
"INT", | ||
"ISC", | ||
"N", | ||
"PIE", | ||
"PTH", | ||
"PERF", | ||
"PIE", | ||
"PGH", | ||
"PTH", | ||
"PL", | ||
"PLC", | ||
"PLE", | ||
"PLR", | ||
"PLW", | ||
"PT", | ||
"Q", | ||
"RSE", | ||
"RSE", | ||
"RUF", | ||
"S", | ||
"SIM", | ||
"SIM", | ||
"SLF", | ||
"T", | ||
"T10", | ||
"T20", | ||
"TCH", | ||
"TD", | ||
"TID", | ||
"TRY", | ||
"UP", | ||
"W", | ||
"YTT", | ||
|
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 +1 @@ | ||
__version__ = "0.4.0" | ||
__version__ = "0.5.0" |
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