setup.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. "Programming Language :: Python :: 3.10",
  43. "Topic :: Scientific/Engineering :: Medical Science Apps.",
  44. "Topic :: Utilities",
  45. ],
  46. packages=setuptools.find_packages(),
  47. entry_points={
  48. "console_scripts": [
  49. "pubmed-bibtex = pubmed_bibtex.__main__:_main",
  50. ],
  51. },
  52. # >=3.6 for variable type hints
  53. python_requires=">=3.7", # python<3.7 untested
  54. install_requires=[],
  55. setup_requires=["setuptools_scm"],
  56. tests_require=[
  57. "pylint>=2.3.0,<3",
  58. "pytest<5",
  59. "pytest-cov<3,>=2",
  60. ],
  61. )