-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
43 lines (33 loc) · 886 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
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
"""
Lucas Ou 2014 -- http://lucasou.com
Setup guide: http://guide.python-distribute.org/creation.html
python setup.py sdist bdist_wininst upload
"""
import sys
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload') # bdist_wininst
sys.exit()
packages = [
'newspaper',
]
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='newspaper',
version='0.0.9.8',
description='Simplified python article discovery & extraction.',
author='Lucas Ou-Yang',
author_email='[email protected]',
url='https://github.com/codelucas/newspaper/',
packages=packages,
include_package_data=True,
install_requires=required,
license='MIT',
zip_safe=False,
)