Skip to content

Commit 52726e2

Browse files
committed
build: switch to pyproject.toml
1 parent 73231e3 commit 52726e2

File tree

6 files changed

+63
-120
lines changed

6 files changed

+63
-120
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.9"]
14+
python-version: ["3.10", "3.12", "3.14"]
1515

1616
steps:
1717
- uses: actions/checkout@v5
@@ -24,7 +24,6 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
python -m pip install -r requirements.txt
2827
python -m pip install -e .[all]
2928
3029
- name: Run tests

MANIFEST.IN

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Installation (with pip)
2020
-----------------------
2121
1. `pip install tika`
2222

23-
Installation (without pip)
24-
--------------------------
25-
1. `python setup.py build`
26-
2. `python setup.py install`
27-
2823
Airgap Environment Setup
2924
------------------------
3025
To get this working in a disconnected environment, download a tika server file (both tika-server.jar and tika-server.jar.md5, which can be found [here](https://repo1.maven.org/maven2/org/apache/tika/tika-server-standard/)) and set the TIKA_SERVER_JAR environment variable to TIKA_SERVER_JAR="file:///<yourpath>/tika-server-standard.jar" which successfully tells `python-tika` to "download" this file and move it to `/tmp/tika-server-standard.jar` and run as background process.

pyproject.toml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [ "setuptools" ]
4+
5+
[project]
6+
name = "tika"
7+
description = "Apache Tika Python library"
8+
readme = "README.md"
9+
keywords = [ "tika", "digital", "babel fish", "apache" ]
10+
license = "Apache-2.0"
11+
authors = [ { name = "Chris Mattmann", email = "chris.a.mattmann@jpl.nasa.gov" } ]
12+
requires-python = ">=3.10"
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Environment :: Console",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: Information Technology",
18+
"Intended Audience :: Science/Research",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
27+
"Topic :: Database :: Front-Ends",
28+
"Topic :: Scientific/Engineering",
29+
"Topic :: Software Development :: Libraries :: Python Modules",
30+
]
31+
dynamic = [ "version" ]
32+
dependencies = [
33+
"beautifulsoup4==4.13.3",
34+
"requests",
35+
]
36+
37+
[project.optional-dependencies]
38+
all = [
39+
"tika[tests]",
40+
]
41+
tests = [
42+
"memory-profiler>=0.57",
43+
"pytest-benchmark>=3.2.2",
44+
"pytest-cov<2.6",
45+
"python-coveralls",
46+
]
47+
48+
[project.urls]
49+
homepage = "http://github.com/chrismattmann/tika-python"
50+
repository = "http://github.com/chrismattmann/tika-python.git"
51+
52+
[project.scripts]
53+
tika-python = "tika.tika:main"
54+
55+
[tool.setuptools]
56+
packages.find.include = [
57+
"tika*",
58+
]
59+
packages.find.exclude = [ "tika.tests*" ]
60+
61+
[tool.setuptools.dynamic]
62+
version = {attr = "tika.__version__"}

requirements.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)