setup.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # python-cc1101 - Python Library to Transmit RF Signals via C1101 Transceivers
  2. #
  3. # Copyright (C) 2020 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/python-cc1101"
  20. setuptools.setup(
  21. name="cc1101",
  22. use_scm_version=True,
  23. packages=setuptools.find_packages(),
  24. description="Python Library & Command Line Tool to Transmit RF Signals via C1101 Transceivers",
  25. long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
  26. long_description_content_type="text/markdown",
  27. author="Fabian Peter Hammerle",
  28. author_email="fabian+python-cc1101@hammerle.me",
  29. url=_REPO_URL,
  30. project_urls={"Changelog": _REPO_URL + "/blob/master/CHANGELOG.md"},
  31. license="GPLv3+",
  32. keywords=[
  33. "ISM",
  34. "SPI",
  35. "automation",
  36. "radio-frequency",
  37. "raspberry-pi",
  38. "transceiver",
  39. "transmission",
  40. "wireless",
  41. ],
  42. classifiers=[
  43. # https://pypi.org/classifiers/
  44. "Development Status :: 4 - Beta",
  45. "Intended Audience :: Developers",
  46. "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
  47. "Operating System :: POSIX :: Linux",
  48. # .github/workflows/python.yml
  49. "Programming Language :: Python :: 3.9",
  50. "Programming Language :: Python :: 3.10",
  51. "Programming Language :: Python :: 3.11",
  52. "Topic :: Home Automation",
  53. "Topic :: Communications",
  54. ],
  55. entry_points={
  56. "console_scripts": [
  57. "cc1101-export-config = cc1101._cli:_export_config",
  58. "cc1101-transmit = cc1101._cli:_transmit",
  59. ]
  60. },
  61. # >=3.6 f-strings, variable type hints, force kwargs with *
  62. # >=3.7 postponed evaluation of type annotations (PEP563)
  63. python_requires=">=3.9", # python<3.9 untested
  64. install_requires=[
  65. # apt install python3-spidev
  66. # https://github.com/doceme/py-spidev
  67. "spidev",
  68. ],
  69. setup_requires=["setuptools_scm"],
  70. tests_require=["pytest"],
  71. )