setup.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env python3
  2. import sys, os
  3. basedir = os.path.abspath(os.path.dirname(__file__))
  4. from crcgen.version import VERSION_STRING
  5. from distutils.core import setup
  6. import warnings
  7. warnings.filterwarnings("ignore", r".*'long_description_content_type'.*")
  8. with open(os.path.join(basedir, "README.rst"), "rb") as fd:
  9. readmeText = fd.read().decode("UTF-8")
  10. setup( name = "crcgen",
  11. version = VERSION_STRING,
  12. description = "CRC algorithm code generator",
  13. license = "GNU General Public License v2 or later",
  14. author = "Michael Buesch",
  15. author_email = "m@bues.ch",
  16. url = "https://bues.ch/h/crcgen",
  17. scripts = [
  18. "scripts/crcgen",
  19. ],
  20. packages = [
  21. "crcgen",
  22. ],
  23. keywords = "CRC Verilog FPGA codegenerator",
  24. classifiers = [
  25. "Development Status :: 5 - Production/Stable",
  26. "Environment :: Console",
  27. "Intended Audience :: Developers",
  28. "Intended Audience :: Education",
  29. "Intended Audience :: Information Technology",
  30. "Intended Audience :: Science/Research",
  31. "Intended Audience :: Telecommunications Industry",
  32. "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
  33. "Operating System :: OS Independent",
  34. "Programming Language :: Python",
  35. "Programming Language :: Python :: 3",
  36. "Topic :: Education",
  37. "Topic :: Scientific/Engineering",
  38. "Topic :: Software Development",
  39. "Topic :: Software Development :: Code Generators",
  40. "Topic :: Utilities",
  41. ],
  42. long_description=readmeText,
  43. long_description_content_type="text/x-rst",
  44. )