setup.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python3
  2. # Copyright (C) 2018 Alyssa Rosenzweig <alyssa@rosenzweig.io>
  3. # Copyright (C) 2016-2018 nickolas360 <contact@nickolas360.com>
  4. #
  5. # This file is part of Pagamigo.
  6. #
  7. # Pagamigo is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # Pagamigo is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with Pagamigo. If not, see <http://www.gnu.org/licenses/>.
  19. from setuptools import setup
  20. import os
  21. SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
  22. REPO_URL = "https://notabug.org/alyssa/pagamigo"
  23. DESC_REPLACEMENTS = {
  24. ".. _LICENSE: LICENSE":
  25. ".. _LICENSE: {}/blob/master/LICENSE".format(REPO_URL),
  26. }
  27. def long_description():
  28. with open(os.path.join(SCRIPT_DIR, "README.md"), encoding='utf-8') as f:
  29. lines = f.read().splitlines()
  30. result = []
  31. for line in lines:
  32. result.append(DESC_REPLACEMENTS.get(line, line) + "\n")
  33. return "".join(result)
  34. setup(
  35. name="pagamigo",
  36. version="0.5.0",
  37. description=(
  38. "A free/libre program for making payments with PayPal"
  39. ),
  40. long_description=long_description(),
  41. url="https://notabug.org/alyssa/pagamigo",
  42. author="alyssa",
  43. author_email="alyssa@rosenzweig.io",
  44. license="GNU Affero General Public License v3 or later (AGPLv3+)",
  45. classifiers=[
  46. "Development Status :: 4 - Beta",
  47. "Topic :: Internet",
  48. "License :: OSI Approved :: "
  49. "GNU Affero General Public License v3 or later (AGPLv3+)",
  50. "Operating System :: OS Independent",
  51. "Programming Language :: Python :: 3",
  52. "Programming Language :: Python :: 3.4",
  53. "Programming Language :: Python :: 3.5",
  54. "Programming Language :: Python :: 3.6",
  55. ],
  56. keywords="paypal",
  57. packages=["pagamigo"],
  58. entry_points={
  59. "console_scripts": [
  60. "pagamigo=pagamigo.__main__:main",
  61. ],
  62. },
  63. install_requires=[
  64. "requests>=2.18.1",
  65. "lxml>=4.2.3",
  66. "cssselect>=1.0.3"
  67. ],
  68. )