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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. def get_version(rel_path: str) -> str:
  8. for line in read(rel_path).splitlines():
  9. if line.startswith("__version__"):
  10. delim = '"' if '"' in line else "'"
  11. return line.split(delim)[1]
  12. raise RuntimeError("Unable to find version string.")
  13. # Package meta-data.
  14. NAME = "learnware"
  15. DESCRIPTION = "learnware market project"
  16. REQUIRES_PYTHON = ">=3.6.0"
  17. VERSION = get_version("learnware/__init__.py")
  18. # BEFORE importing setuptools, remove MANIFEST. Otherwise it may not be
  19. # properly updated when the contents of directories change (true for distutils,
  20. # not sure about setuptools).
  21. if os.path.exists("MANIFEST"):
  22. os.remove("MANIFEST")
  23. # What packages are required for this module to be executed?
  24. # `estimator` may depend on other packages. In order to reduce dependencies, it is not written here.
  25. REQUIRED = [
  26. "numpy>=1.12.0",
  27. "pandas>=0.25.1",
  28. "scipy>=1.0.0",
  29. "matplotlib==3.1.3",
  30. "tqdm",
  31. ]
  32. here = os.path.abspath(os.path.dirname(__file__))
  33. with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
  34. long_description = f.read()
  35. if __name__ == "__main__":
  36. setup(
  37. name=NAME,
  38. version=VERSION,
  39. license="MIT Licence",
  40. url="https://git.nju.edu.cn/learnware/learnware-market",
  41. packages=find_packages(),
  42. include_package_data=True,
  43. description=DESCRIPTION,
  44. long_description=long_description,
  45. long_description_content_type="text/markdown",
  46. python_requires=REQUIRES_PYTHON,
  47. install_requires=REQUIRED,
  48. classifiers=[
  49. "Intended Audience :: Science/Research",
  50. "Intended Audience :: Developers",
  51. "Programming Language :: Python",
  52. "Topic :: Software Development",
  53. "Topic :: Scientific/Engineering",
  54. "Operating System :: POSIX :: Linux",
  55. "Operating System :: Microsoft :: Windows",
  56. "Operating System :: MacOS",
  57. "Programming Language :: Python :: 3.6",
  58. "Programming Language :: Python :: 3.7",
  59. "Programming Language :: Python :: 3.8",
  60. ],
  61. )

基于学件范式,全流程地支持学件上传、检测、组织、查搜、部署和复用等功能。同时,该仓库作为北冥坞系统的引擎,支撑北冥坞系统的核心功能。