setup.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import os
  2. import setuptools
  3. import pubmed_bibtex
  4. LONG_DESCRIPTION = pubmed_bibtex.__doc__.lstrip()
  5. setuptools.setup(
  6. name='pubmed-bibtex',
  7. use_scm_version={
  8. 'write_to': os.path.join('pubmed_bibtex', 'version.py'),
  9. # `version` triggers pylint C0103
  10. 'write_to_template': "__version__ = '{version}'\n",
  11. },
  12. description=LONG_DESCRIPTION.split(sep='\n', maxsplit=1)[0],
  13. long_description=LONG_DESCRIPTION,
  14. author='Fabian Peter Hammerle',
  15. author_email='fabian@hammerle.me',
  16. url='https://github.com/fphammerle/pubmed-bibtex',
  17. # TODO add license
  18. keywords=[
  19. 'article',
  20. 'bibtex',
  21. 'citation',
  22. 'journal',
  23. 'latex',
  24. 'publication',
  25. 'pubmed',
  26. 'reference',
  27. 'research',
  28. 'tex',
  29. ],
  30. classifiers=[
  31. 'Development Status :: 4 - Beta',
  32. 'Intended Audience :: Healthcare Industry',
  33. 'Intended Audience :: Science/Research',
  34. 'Programming Language :: Python :: 3.5',
  35. 'Programming Language :: Python :: 3.6',
  36. 'Programming Language :: Python :: 3.7',
  37. 'Topic :: Scientific/Engineering :: Medical Science Apps.',
  38. 'Topic :: Utilities',
  39. ],
  40. packages=setuptools.find_packages(),
  41. entry_points={
  42. 'console_scripts': [
  43. 'pubmed-bibtex = pubmed_bibtex:_main',
  44. ],
  45. },
  46. python_requires='>=3.5',
  47. install_requires=[
  48. 'requests>=2,<3',
  49. ],
  50. setup_requires=[
  51. 'setuptools_scm',
  52. ],
  53. tests_require=[
  54. 'pylint>=2.3.0,<3',
  55. 'pytest<5',
  56. 'pytest-cov<3,>=2',
  57. ],
  58. )