setup.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import io
  2. import os
  3. import setuptools
  4. setuptools.setup(
  5. name="kconfiglib",
  6. # MAJOR.MINOR.PATCH, per http://semver.org
  7. version="14.1.0",
  8. description="A flexible Python Kconfig implementation",
  9. # Make sure that README.rst decodes on Python 3 in environments that use
  10. # the C locale (which implies ASCII), by explicitly giving the encoding.
  11. #
  12. # io.open() has the 'encoding' parameter on both Python 2 and 3. open()
  13. # doesn't have it on Python 2. This lets us use the same code for both.
  14. long_description=io.open(
  15. os.path.join(os.path.dirname(__file__), "README.rst"),
  16. encoding="utf-8"
  17. ).read(),
  18. url="https://github.com/ulfalizer/Kconfiglib",
  19. author='Ulf "Ulfalizer" Magnusson',
  20. author_email="ulfalizer@gmail.com",
  21. keywords="kconfig, kbuild, menuconfig, configuration-management",
  22. license="ISC",
  23. py_modules=(
  24. "kconfiglib",
  25. "menuconfig",
  26. "guiconfig",
  27. "genconfig",
  28. "oldconfig",
  29. "olddefconfig",
  30. "savedefconfig",
  31. "defconfig",
  32. "alldefconfig",
  33. "allnoconfig",
  34. "allmodconfig",
  35. "allyesconfig",
  36. "listnewconfig",
  37. "setconfig",
  38. ),
  39. entry_points={
  40. "console_scripts": (
  41. "menuconfig = menuconfig:_main",
  42. "guiconfig = guiconfig:_main",
  43. "genconfig = genconfig:main",
  44. "oldconfig = oldconfig:_main",
  45. "olddefconfig = olddefconfig:main",
  46. "savedefconfig = savedefconfig:main",
  47. "defconfig = defconfig:main",
  48. "alldefconfig = alldefconfig:main",
  49. "allnoconfig = allnoconfig:main",
  50. "allmodconfig = allmodconfig:main",
  51. "allyesconfig = allyesconfig:main",
  52. "listnewconfig = listnewconfig:main",
  53. "setconfig = setconfig:main",
  54. )
  55. },
  56. # Note: windows-curses is not automatically installed on Windows anymore,
  57. # because it made Kconfiglib impossible to install on MSYS2 with pip
  58. # Needs support for unnumbered {} in format() and argparse
  59. python_requires=">=2.7,!=3.0.*,!=3.1.*",
  60. project_urls={
  61. "GitHub repository": "https://github.com/ulfalizer/Kconfiglib",
  62. "Examples": "https://github.com/ulfalizer/Kconfiglib/tree/master/examples",
  63. },
  64. classifiers=[
  65. "Development Status :: 5 - Production/Stable",
  66. "Intended Audience :: Developers",
  67. "Topic :: Software Development :: Build Tools",
  68. "Topic :: System :: Operating System Kernels :: Linux",
  69. "License :: OSI Approved :: ISC License (ISCL)",
  70. "Operating System :: POSIX",
  71. "Operating System :: Microsoft :: Windows",
  72. "Programming Language :: Python :: 2",
  73. "Programming Language :: Python :: 2.7",
  74. "Programming Language :: Python :: 3",
  75. "Programming Language :: Python :: 3.2",
  76. "Programming Language :: Python :: 3.3",
  77. "Programming Language :: Python :: 3.4",
  78. "Programming Language :: Python :: 3.5",
  79. "Programming Language :: Python :: 3.6",
  80. "Programming Language :: Python :: 3.7",
  81. "Programming Language :: Python :: 3.8",
  82. "Programming Language :: Python :: Implementation :: CPython",
  83. "Programming Language :: Python :: Implementation :: PyPy",
  84. ]
  85. )