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

1from setuptools import setup, find_packages 

2import os 

3 

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

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

6 

7 

8def readme(): 

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

10 return f.read() 

11 

12install_requires = [ 

13 'pyyaml', 

14 'fundamentals', 

15 'future', 

16 'docopt', 

17 'psutil', 

18 'python-dateutil', 

19 'coloredlogs' 

20] 

21 

22# READ THE DOCS SERVERS 

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

24if exists: 

25 c_exclude_list = ['healpy', 'astropy', 

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

27 for e in c_exclude_list: 

28 try: 

29 install_requires.remove(e) 

30 except: 

31 pass 

32 

33setup(name="fundamentals", 

34 version=__version__, 

35 description="Some fundamental tools required by most self-respecting python-packages bundled in one place. Very opinionated project setup tools including logging, plain-text settings files and database connections.", 

36 long_description=readme(), 

37 long_description_content_type='text/markdown', 

38 classifiers=[ 

39 'Development Status :: 4 - Beta', 

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

41 'Programming Language :: Python :: 3.7', 

42 'Topic :: Utilities', 

43 ], 

44 keywords=['logging, database'], 

45 url='https://github.com/thespacedoctor/fundamentals', 

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

47 ), 

48 author='David Young', 

49 author_email='davidrobertyoung@gmail.com', 

50 license='MIT', 

51 packages=find_packages(), 

52 include_package_data=True, 

53 install_requires=install_requires, 

54 test_suite='nose2.collector.collector', 

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

56 entry_points={ 

57 'console_scripts': ['mysqlSucker=fundamentals.mysql.directory_script_runner:main', 

58 'yaml2db=fundamentals.mysql.yaml_to_database:main', 

59 # 'fundamentals=fundamentals.cl_utils:main', 

60 'sqlite2mysql=fundamentals.mysql.sqlite2mysql:main'], 

61 }, 

62 zip_safe=False)