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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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("README.md", "r") as fh:
  20. long_desc = fh.read()
  21. with open(os.path.join(os.path.dirname(__file__), 'sedna', 'VERSION'),
  22. "r", encoding="utf-8") as fh:
  23. __version__ = fh.read().strip()
  24. with open("requirements.txt", "r", encoding="utf-8") as fh:
  25. install_requires = [line.strip() for line in
  26. fh.readlines() if line.strip()]
  27. setup(
  28. name='sedna',
  29. version=__version__,
  30. description="The sedna package is designed to help developers \
  31. better use open source frameworks such as tensorflow \
  32. on Sedna project",
  33. packages=find_packages(exclude=["tests", "*.tests",
  34. "*.tests.*", "tests.*"]),
  35. author="",
  36. author_email="",
  37. maintainer="",
  38. maintainer_email="",
  39. include_package_data=True,
  40. python_requires=">=3.6",
  41. long_description=long_desc,
  42. long_description_content_type="text/markdown",
  43. license="Apache License 2.0",
  44. url="https://github.com/kubeedge/sedna",
  45. classifiers=[
  46. "Programming Language :: Python :: 3",
  47. "License :: OSI Approved :: Apache Software License",
  48. "Operating System :: POSIX :: Linux",
  49. ],
  50. install_requires=install_requires,
  51. extras_require={
  52. "tf": ["tensorflow>=1.0.0,<2.0"],
  53. "tf_gpu": ["tensorflow-gpu>=1.0.0,<2.0"],
  54. "pytorch": ["torch==0.4.0", "torchvision==0.2.1"],
  55. "ms": ["mindspore==1.1.1"],
  56. "sklearn": ["pandas>=0.25.0", "scikit-learn==0.24.1"]
  57. },
  58. )