-
Notifications
You must be signed in to change notification settings - Fork 182
/
setup.py
76 lines (63 loc) · 1.86 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
74
75
76
#
# Copyright (C) 2008 - Olivier Lauzanne <[email protected]>
#
# Distributed under the BSD license, see LICENSE.txt
from setuptools import setup, find_packages
import os
install_requires = [
'lxml>=2.1',
'cssselect>=1.2.0',
]
def read(*names):
values = dict()
for name in names:
filename = name + '.rst'
if os.path.isfile(filename):
fd = open(filename)
value = fd.read()
fd.close()
else:
value = ''
values[name] = value
return values
long_description = """
%(README)s
See http://pyquery.rtfd.org/ for the full documentation
News
====
%(CHANGES)s
""" % read('README', 'CHANGES')
version = '2.0.2.dev0'
setup(name='pyquery',
version=version,
description='A jquery-like library for python',
long_description=long_description,
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords='jquery html xml scraping',
author='Olivier Lauzanne',
author_email='[email protected]',
maintainer='Gael Pasgrimaud',
maintainer_email='[email protected]',
url='https://github.com/gawel/pyquery',
license='BSD',
packages=find_packages(exclude=[
'bootstrap', 'bootstrap-py3k', 'docs', 'tests', 'README_fixt'
]),
extras_require={
'test': ['requests', 'webob', 'webtest', 'pytest', 'pytest-cov'],
},
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points="""
# -*- Entry points: -*-
""",
)