Skip to content

Commit 93c50f8

Browse files
committed
build: switch to pyproject.toml
1 parent 0cb1e18 commit 93c50f8

6 files changed

Lines changed: 65 additions & 119 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
python -m pip install -r requirements.txt
2928
python -m pip install -e .[all]
3029

3130
- name: Run tests
32-
run: pytest -ra --cov=tika
31+
run: pytest -ra --cov
3332

3433
- name: Coveralls parallel
3534
uses: coverallsapp/github-action@v2

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: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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",
43+
"pytest-benchmark",
44+
"pytest-cov",
45+
]
46+
47+
[project.urls]
48+
homepage = "http://github.com/chrismattmann/tika-python"
49+
repository = "http://github.com/chrismattmann/tika-python.git"
50+
51+
[project.scripts]
52+
tika-python = "tika.tika:main"
53+
54+
[tool.setuptools]
55+
packages.find.include = [
56+
"tika*",
57+
]
58+
59+
[tool.setuptools.dynamic]
60+
version = {attr = "tika.__version__"}
61+
62+
[tool.coverage.run]
63+
source = [ "tika" ]
64+
branch = true

requirements.txt

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

setup.py

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

0 commit comments

Comments
 (0)