Skip to content

Commit 159bf16

Browse files
committed
build: switch to pyproject.toml
1 parent 153d919 commit 159bf16

File tree

5 files changed

+56
-118
lines changed

5 files changed

+56
-118
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

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: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.9"
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.9",
23+
"Topic :: Database :: Front-Ends",
24+
"Topic :: Scientific/Engineering",
25+
"Topic :: Software Development :: Libraries :: Python Modules",
26+
]
27+
dynamic = [ "version" ]
28+
dependencies = [
29+
"beautifulsoup4==4.13.3",
30+
"requests",
31+
]
32+
33+
[project.optional-dependencies]
34+
all = [
35+
"tika[tests]",
36+
]
37+
tests = [
38+
"memory-profiler>=0.57",
39+
"pytest-benchmark>=3.2.2",
40+
"pytest-cov<2.6",
41+
"python-coveralls",
42+
"pyyaml==5.4.1",
43+
]
44+
45+
[project.urls]
46+
homepage = "http://github.com/chrismattmann/tika-python"
47+
repository = "http://github.com/chrismattmann/tika-python.git"
48+
49+
[project.scripts]
50+
tika-python = "tika.tika:main"
51+
52+
[tool.setuptools]
53+
packages.find.include = [
54+
"tika*",
55+
]
56+
packages.find.exclude = [ "tika.tests*" ]

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)