setup.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import os
  2. import setuptools
  3. with open('README.rst', 'r') as readme:
  4. LONG_DESCRIPTION = readme.read()
  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='Generate BibTeX Entries for PubMed Publications',
  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. license='GPLv3+',
  18. keywords=[
  19. 'article',
  20. 'bibtex',
  21. 'citation',
  22. 'journal',
  23. 'latex',
  24. 'publication',
  25. 'pubmed',
  26. 'reference',
  27. 'research',
  28. 'tex',
  29. 'texmed',
  30. ],
  31. classifiers=[
  32. 'Development Status :: 4 - Beta',
  33. 'Intended Audience :: Healthcare Industry',
  34. 'Intended Audience :: Science/Research',
  35. 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
  36. # .github/workflows/python.yml
  37. 'Programming Language :: Python :: 3.6',
  38. 'Programming Language :: Python :: 3.7',
  39. 'Programming Language :: Python :: 3.8',
  40. 'Topic :: Scientific/Engineering :: Medical Science Apps.',
  41. 'Topic :: Utilities',
  42. ],
  43. packages=setuptools.find_packages(),
  44. entry_points={
  45. 'console_scripts': [
  46. 'pubmed-bibtex = pubmed_bibtex.__main__:main',
  47. ],
  48. },
  49. # >=3.6 for variable type hints
  50. python_requires=">=3.6",
  51. install_requires=[
  52. 'requests>=2,<3',
  53. ],
  54. setup_requires=[
  55. 'setuptools_scm',
  56. ],
  57. tests_require=[
  58. 'pylint>=2.3.0,<3',
  59. 'pytest<5',
  60. 'pytest-cov<3,>=2',
  61. ],
  62. )