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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 2021 The KubeEdge Authors.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. """Setuptools of sedna"""
  15. from setuptools import setup, find_packages
  16. import sys
  17. import os
  18. assert sys.version_info >= (3, 6), "Sorry, Python < 3.6 is not supported."
  19. with open(os.path.join(os.path.dirname(__file__), "sedna", "README.md"),
  20. "r", encoding="utf-8") as fh:
  21. long_desc = fh.read()
  22. with open(os.path.join(os.path.dirname(__file__), 'sedna', 'VERSION'),
  23. "r", encoding="utf-8") as fh:
  24. __version__ = fh.read().strip()
  25. with open("requirements.txt", "r", encoding="utf-8") as fh:
  26. install_requires = [line.strip() for line in
  27. fh.readlines() if line.strip()]
  28. with open("OWNERS", "r", encoding="utf-8") as fh:
  29. check, approvers = False, set()
  30. for line in fh:
  31. if not line.strip():
  32. continue
  33. if check:
  34. approvers.add(line.strip().split()[-1])
  35. check = (line.startswith("approvers:") or
  36. (line.startswith(" -") and check))
  37. maintainer = ",".join(approvers) or "sedna"
  38. setup(
  39. name='sedna',
  40. version=__version__,
  41. description="The sedna package is designed to help developers \
  42. better use open source frameworks such as tensorflow \
  43. on Sedna project",
  44. packages=find_packages(exclude=["tests", "*.tests",
  45. "*.tests.*", "tests.*"]),
  46. author=maintainer,
  47. author_email="pujie2@huawei.com",
  48. maintainer=maintainer,
  49. maintainer_email="",
  50. include_package_data=True,
  51. python_requires=">=3.6",
  52. long_description=long_desc,
  53. long_description_content_type="text/markdown",
  54. license="Apache License 2.0",
  55. url="https://github.com/kubeedge/sedna",
  56. classifiers=[
  57. "Programming Language :: Python :: 3",
  58. "License :: OSI Approved :: Apache Software License",
  59. "Operating System :: POSIX :: Linux",
  60. ],
  61. install_requires=install_requires,
  62. extras_require={
  63. "tf": ["tensorflow>=1.0.0,<2.0"],
  64. "tf_gpu": ["tensorflow-gpu>=1.0.0,<2.0"],
  65. "pytorch": ["torch==0.4.0", "torchvision==0.2.1"],
  66. "ms": ["mindspore==1.1.1"],
  67. "sklearn": ["pandas>=0.25.0", "scikit-learn==0.24.1"]
  68. },
  69. )