You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import os
  2. from setuptools import find_packages, setup
  3. def read(rel_path: str) -> str:
  4. here = os.path.abspath(os.path.dirname(__file__))
  5. with open(os.path.join(here, rel_path), encoding="utf-8") as fp:
  6. return fp.read()
  7. # Package meta-data.
  8. NAME = "abl"
  9. DESCRIPTION = "abductive learning package project"
  10. REQUIRES_PYTHON = ">=3.6.0"
  11. VERSION = None
  12. # BEFORE importing setuptools, remove MANIFEST. Otherwise it may not be
  13. # properly updated when the contents of directories change (true for distutils,
  14. # not sure about setuptools).
  15. if os.path.exists("MANIFEST"):
  16. os.remove("MANIFEST")
  17. here = os.path.abspath(os.path.dirname(__file__))
  18. # What packages are required for this module to be executed?
  19. try:
  20. with open(os.path.join(here, "requirements.txt"), encoding="utf-8") as f:
  21. REQUIRED = f.read().split("\n")
  22. except FileNotFoundError:
  23. # Handle the case where the file does not exist
  24. print("requirements.txt file not found.")
  25. REQUIRED = []
  26. except Exception as e:
  27. # Handle other possible exceptions
  28. print(f"An error occurred: {e}")
  29. REQUIRED = []
  30. EXTRAS = {
  31. "test": [
  32. "pytest-cov",
  33. "black==22.10.0",
  34. ],
  35. }
  36. with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
  37. long_description = f.read()
  38. # Load the package's __version__.py module as a dictionary.
  39. about = {}
  40. if not VERSION:
  41. with open(os.path.join(here, NAME, "__version__.py")) as f:
  42. exec(f.read(), about)
  43. else:
  44. about["__version__"] = VERSION
  45. if __name__ == "__main__":
  46. setup(
  47. name=NAME,
  48. version=about["__version__"],
  49. license="MIT Licence",
  50. url="https://github.com/AbductiveLearning/ABL-Package",
  51. packages=find_packages(),
  52. include_package_data=True,
  53. description=DESCRIPTION,
  54. long_description=long_description,
  55. long_description_content_type="text/markdown",
  56. python_requires=REQUIRES_PYTHON,
  57. install_requires=REQUIRED,
  58. extras_require=EXTRAS,
  59. classifiers=[
  60. "Development Status :: 3 - Alpha",
  61. "Intended Audience :: Science/Research",
  62. "Intended Audience :: Developers",
  63. "Programming Language :: Python",
  64. "Topic :: Software Development",
  65. "Topic :: Scientific/Engineering",
  66. "Operating System :: POSIX :: Linux",
  67. "Programming Language :: Python :: 3.7",
  68. "Programming Language :: Python :: 3.8",
  69. "Programming Language :: Python :: 3.9",
  70. ],
  71. )

An efficient Python toolkit for Abductive Learning (ABL), a novel paradigm that integrates machine learning and logical reasoning in a unified framework.