forked from scrapinghub/extruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (66 loc) · 2.2 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
72
73
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
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()
requirements = []
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']},
install_requires=['lxml',
'rdflib<6.0.0;python_version<"3.7"',
'rdflib-jsonld<=0.5.0;python_version<"3.7"',
# rdflib 6.x.y (only on 3.7 and up) contains jsonld
'rdflib>=6.0.0;python_version>="3.7"',
'pyrdfa3',
'mf2py',
'w3lib',
'html-text>=0.5.1',
'six',
'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 :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)