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.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 = "abl package project"
  10. REQUIRES_PYTHON = ">=3.8.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:
  23. REQUIRED = []
  24. EXTRAS = {
  25. "test": [
  26. "pytest-cov",
  27. "black==22.10.0",
  28. ],
  29. }
  30. with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
  31. long_description = f.read()
  32. # Load the package's __version__.py module as a dictionary.
  33. about = {}
  34. if not VERSION:
  35. with open(os.path.join(here, NAME, "__version__.py")) as f:
  36. exec(f.read(), about)
  37. else:
  38. about["__version__"] = VERSION
  39. if __name__ == "__main__":
  40. setup(
  41. name=NAME,
  42. version=about["__version__"],
  43. license="MIT Licence",
  44. url="https://github.com/AbductiveLearning/ABL-Package",
  45. packages=find_packages(),
  46. include_package_data=True,
  47. description=DESCRIPTION,
  48. long_description=long_description,
  49. long_description_content_type="text/markdown",
  50. python_requires=REQUIRES_PYTHON,
  51. install_requires=REQUIRED,
  52. extras_require=EXTRAS,
  53. classifiers=[
  54. 'Development Status :: 3 - Alpha',
  55. "Intended Audience :: Science/Research",
  56. "Intended Audience :: Developers",
  57. "Programming Language :: Python",
  58. "Topic :: Software Development",
  59. "Topic :: Scientific/Engineering",
  60. "Operating System :: POSIX :: Linux",
  61. "Programming Language :: Python :: 3.8",
  62. ],
  63. )

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