forked from scrapy/scrapely
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·44 lines (41 loc) · 1.47 KB
/
setup.py
File metadata and controls
executable file
·44 lines (41 loc) · 1.47 KB
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
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
extensions = [
Extension("scrapely._htmlpage",
["scrapely/_htmlpage.pyx"],
include_dirs=[np.get_include()]),
Extension("scrapely.extraction._similarity",
["scrapely/extraction/_similarity.pyx"],
include_dirs=[np.get_include()]),
]
setup(
name='scrapely',
version='0.12.0',
license='BSD',
description='A pure-python HTML screen-scraping library',
author='Scrapy project',
author_email='info@scrapy.org',
url='https://github.com/scrapy/scrapely',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Text Processing :: Markup :: HTML',
],
install_requires=['numpy', 'w3lib', 'cython'],
ext_modules=cythonize(extensions),
)