setup.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # location-guessing-game-telegram-bot - Telegram Bot Sending Random Wikimedia Commons Photos
  2. #
  3. # Copyright (C) 2021 Fabian Peter Hammerle <fabian@hammerle.me>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. import pathlib
  18. import setuptools
  19. _REPO_URL = "https://github.com/fphammerle/location-guessing-game-telegram-bot"
  20. setuptools.setup(
  21. name="location-guessing-game-telegram-bot",
  22. use_scm_version={
  23. # > AssertionError: cant parse version docker/0.1.0-amd64
  24. # https://github.com/pypa/setuptools_scm/blob/master/src/setuptools_scm/git.py#L15
  25. "git_describe_command": "git describe --dirty --tags --long --match v*",
  26. },
  27. packages=setuptools.find_packages(),
  28. description="Basic Telegram Bot Sending Random Wikimedia Commons Photos",
  29. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  30. long_description_content_type="text/markdown",
  31. author="Fabian Peter Hammerle",
  32. author_email="fabian+location-guessing@hammerle.me",
  33. url=_REPO_URL,
  34. project_urls={"Changelog": _REPO_URL + "/blob/master/CHANGELOG.md"},
  35. license="GPLv3+",
  36. keywords=[
  37. "bot",
  38. "game",
  39. "guessing",
  40. "location",
  41. "photos",
  42. "telegram",
  43. ],
  44. classifiers=[
  45. # https://pypi.org/classifiers/
  46. "Development Status :: 3 - Alpha",
  47. "Intended Audience :: End Users/Desktop",
  48. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  49. "Operating System :: OS Independent",
  50. "Topic :: Games/Entertainment",
  51. # .github/workflows/python.yml
  52. "Programming Language :: Python :: 3.6",
  53. "Programming Language :: Python :: 3.7",
  54. "Programming Language :: Python :: 3.8",
  55. "Programming Language :: Python :: 3.9",
  56. "Programming Language :: Python :: 3.10",
  57. ],
  58. entry_points={
  59. "console_scripts": [
  60. "location-guessing-game-telegram-bot = location_guessing_game_telegram_bot:_main",
  61. ]
  62. },
  63. # f-strings & force kwargs with *
  64. python_requires=">=3.6",
  65. install_requires=[
  66. # >=13.0 provides telegram.chat.Chat.send_location shortcut
  67. # https://github.com/python-telegram-bot/python-telegram-bot/commit/fc5844c13da3b3fb20bb2d0bfcdf1efb1a826ba6#diff-2590f2bde47ea3730442f14a3a029ef77d8f2c8f3186cf5edd7e18bcc7243c39R381
  68. # however, >=13.0 requires python>=3.6
  69. # https://github.com/python-telegram-bot/python-telegram-bot/commit/19a4f9e53a1798b886fd4ce3e5a9a48db9ae5152#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L64
  70. "python-telegram-bot"
  71. ],
  72. setup_requires=["setuptools_scm"],
  73. tests_require=["pytest"],
  74. )