-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
32 lines (26 loc) · 881 Bytes
/
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
from setuptools import find_packages, setup
import os
import re
def read(*parts):
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, *parts)) as f:
return f.read()
VERSION = re.search(
"^__version__ = '(.*)'$",
read('src', 'http_crawler', '__init__.py'),
re.MULTILINE
).group(1)
if __name__ == '__main__':
setup(
name='http-crawler',
version=VERSION,
description='A library for crawling websites',
long_description=read('README.rst'),
packages=find_packages(where='src'),
package_dir={'': 'src'},
install_requires=['lxml', 'requests', 'tinycss2', 'urllib3'],
url='http://github.com/inglesp/http-crawler',
author='Peter Inglesby',
author_email='peter.inglesby@gmail.com',
license='License :: OSI Approved :: MIT License',
)