-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·53 lines (47 loc) · 1.49 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
from setuptools import setup, find_packages
import os
# hack for working with pandocs on windows
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
utf8 = codecs.lookup('utf-8')
func = lambda name, enc=utf8: {True: enc}.get(name == 'mbcs')
codecs.register(func)
# install readme
README = os.path.join(os.path.dirname(__file__), 'README.md')
try:
from newslynx.lib import doc
long_description = doc.convert(open(README).read(), 'md', 'rst')
except:
long_description = ""
REQUIREMENTS = os.path.join(os.path.dirname(__file__), 'requirements.txt')
REQUIREMENTS = open(REQUIREMENTS, 'r').read().splitlines()
VERSION = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(VERSION, 'r').read().strip()
# setup
setup(
name='newslynx-sc-facebook',
version=VERSION,
description='',
long_description=long_description,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
keywords='',
author='Merlynne',
author_email='',
url='http://github.com/newslynx/newslynx-sc-facebook',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
package_data={"newslynx_sc_facebook": ['*.yaml']},
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
tests_require=[]
)