Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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

54

55

from setuptools import setup, find_packages 

import os 

 

moduleDirectory = os.path.dirname(os.path.realpath(__file__)) 

exec(open(moduleDirectory + "/polyglot/__version__.py").read()) 

 

 

def readme(): 

with open(moduleDirectory + '/README.rst') as f: 

return f.read() 

 

install_requires = [ 

'pyyaml', 

'pypolyglot', 

'fundamentals', 

'requests' 

] 

 

# READ THE DOCS SERVERS 

exists = os.path.exists("/home/docs/") 

if exists: 

c_exclude_list = ['healpy', 'astropy', 

'numpy', 'sherlock', 'wcsaxes', 'HMpTy', 'ligo-gracedb'] 

for e in c_exclude_list: 

try: 

install_requires.remove(e) 

except: 

pass 

 

setup(name="pypolyglot", 

version=__version__, 

description="Translate documents and webpages to various markup languages and document formats (html, epub, mobi ..)", 

long_description=readme(), 

classifiers=[ 

'Development Status :: 4 - Beta', 

'License :: OSI Approved :: MIT License', 

'Programming Language :: Python :: 2.7', 

'Topic :: Utilities', 

], 

keywords=['pdf, html, parser'], 

url='https://github.com/thespacedoctor/polyglot', 

download_url='https://github.com/thespacedoctor/polyglot/archive/v%(__version__)s.zip' % locals( 

), 

author='David Young', 

author_email='davidrobertyoung@gmail.com', 

license='MIT', 

packages=find_packages(), 

include_package_data=True, 

install_requires=install_requires, 

test_suite='nose2.collector.collector', 

tests_require=['nose2', 'cov-core'], 

entry_points={ 

'console_scripts': ['polyglot=polyglot.cl_utils:main'], 

}, 

zip_safe=False)