setup.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import pathlib
  2. import setuptools
  3. setuptools.setup(
  4. name="pubmed-bibtex",
  5. use_scm_version={
  6. "write_to": pathlib.Path(__file__).parent.joinpath(
  7. "pubmed_bibtex", "version.py"
  8. ),
  9. # `version` triggers pylint C0103
  10. "write_to_template": "__version__ = '{version}'\n",
  11. },
  12. description="Generate BibTeX Entries for PubMed Publications",
  13. long_description=pathlib.Path(__file__)
  14. .parent.joinpath("README.rst")
  15. .read_text(encoding="utf8"),
  16. author="Fabian Peter Hammerle",
  17. author_email="fabian@hammerle.me",
  18. url="https://github.com/fphammerle/pubmed-bibtex",
  19. license="GPLv3+",
  20. keywords=[
  21. "article",
  22. "bibtex",
  23. "citation",
  24. "journal",
  25. "latex",
  26. "publication",
  27. "pubmed",
  28. "reference",
  29. "research",
  30. "tex",
  31. "texmed",
  32. ],
  33. classifiers=[
  34. "Development Status :: 4 - Beta",
  35. "Intended Audience :: Healthcare Industry",
  36. "Intended Audience :: Science/Research",
  37. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  38. # .github/workflows/python.yml
  39. "Programming Language :: Python :: 3.7",
  40. "Programming Language :: Python :: 3.8",
  41. "Programming Language :: Python :: 3.9",
  42. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  43. "Topic :: Utilities",
  44. ],
  45. packages=setuptools.find_packages(),
  46. entry_points={
  47. "console_scripts": [
  48. "pubmed-bibtex = pubmed_bibtex.__main__:_main",
  49. ],
  50. },
  51. # >=3.6 for variable type hints
  52. python_requires=">=3.7", # python<3.7 untested
  53. install_requires=[],
  54. setup_requires=["setuptools_scm"],
  55. tests_require=[
  56. "pylint>=2.3.0,<3",
  57. "pytest<5",
  58. "pytest-cov<3,>=2",
  59. ],
  60. )