-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathsetup.py
71 lines (64 loc) · 1.84 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# mypy: disallow_untyped_defs=False
import os
from setuptools import find_packages, setup
def get_readme():
path = os.path.join(os.path.dirname(__file__), "README.rst")
with open(path) as f:
return f.read().strip()
def get_version():
path = os.path.join(os.path.dirname(__file__), "extruct", "VERSION")
with open(path) as f:
return f.read().strip()
setup(
name="extruct",
version=get_version(),
description="Extract embedded metadata from HTML markup",
long_description=get_readme(),
long_description_content_type="text/x-rst",
author="Scrapinghub",
author_email="[email protected]",
maintainer="Scrapinghub",
maintainer_email="[email protected]",
url="https://github.com/scrapinghub/extruct",
entry_points={
"console_scripts": {
"extruct = extruct.tool:main",
}
},
packages=find_packages(
exclude=[
"tests",
]
),
package_data={"extruct": ["VERSION"]},
python_requires=">=3.8",
install_requires=[
"lxml",
"lxml-html-clean",
"rdflib>=6.0.0",
"pyrdfa3",
"mf2py",
"w3lib",
"html-text>=0.5.1",
"jstyleson",
],
extras_require={
"cli": [
"requests",
],
},
keywords="extruct",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)