forked from Jaymon/wishlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (39 loc) · 1.35 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
#!/usr/bin/env python
# http://docs.python.org/distutils/setupscript.html
# http://docs.python.org/2/distutils/examples.html
from setuptools import setup, find_packages
import re
import os
from codecs import open
name = "wishlist"
with open(os.path.join(name, "__init__.py")) as f:
version = re.search("^__version__\s*=\s*[\'\"]([^\'\"]+)", f.read(), flags=re.I | re.M).group(1)
long_description = ""
if os.path.isfile('README.rst'):
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name=name,
version=version,
description='Amazon wishlist scraper',
long_description=long_description,
author='Jay Marcyes',
author_email='[email protected]',
url='http://github.com/Jaymon/{}'.format(name),
packages=[name],
license='GPLv2+',
install_requires=['captain', 'brow', 'beautifulsoup4'],
classifiers=[ # https://pypi.python.org/pypi?:action=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
],
entry_points = {
'console_scripts': [
'{} = {}.__main__:console'.format(name, name),
],
},
)