setup.py 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # -*- coding: utf-8 -*-
  2. """
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. """
  18. import os
  19. from setuptools import setup, find_packages
  20. """
  21. setup module for alibabacloud_sample.
  22. Created on 25/04/2024
  23. @author:
  24. """
  25. PACKAGE = "alibabacloud_sample"
  26. NAME = "alibabacloud_sample" or "alibabacloud-package"
  27. DESCRIPTION = "Alibaba Cloud SDK Code Sample Library for Python"
  28. AUTHOR = ""
  29. AUTHOR_EMAIL = ""
  30. URL = "https://github.com/aliyun/alibabacloud-sdk"
  31. VERSION = __import__(PACKAGE).__version__
  32. REQUIRES = [
  33. "alibabacloud_ocr-api20210707>=2.0.8, <3.0.0",
  34. "alibabacloud_tea_openapi>=0.3.8, <1.0.0",
  35. "alibabacloud_tea_console>=0.0.1, <1.0.0",
  36. "alibabacloud_tea_util>=0.3.11, <1.0.0",
  37. "alibabacloud_darabonba_stream>=0.0.1, <1.0.0"
  38. ]
  39. LONG_DESCRIPTION = ''
  40. if os.path.exists('./README.md'):
  41. with open("README.md", encoding='utf-8') as fp:
  42. LONG_DESCRIPTION = fp.read()
  43. setup(
  44. name=NAME,
  45. version=VERSION,
  46. description=DESCRIPTION,
  47. long_description=LONG_DESCRIPTION,
  48. long_description_content_type='text/markdown',
  49. author=AUTHOR,
  50. author_email=AUTHOR_EMAIL,
  51. license="Apache License 2.0",
  52. url=URL,
  53. keywords=["alibabacloud","sample"],
  54. packages=find_packages(exclude=["tests*"]),
  55. include_package_data=True,
  56. platforms="any",
  57. install_requires=REQUIRES,
  58. python_requires=">=3.6",
  59. classifiers=(
  60. "Development Status :: 4 - Beta",
  61. "Intended Audience :: Developers",
  62. "License :: OSI Approved :: Apache Software License",
  63. "Programming Language :: Python",
  64. "Programming Language :: Python :: 3",
  65. "Programming Language :: Python :: 3.6",
  66. 'Programming Language :: Python :: 3.7',
  67. 'Programming Language :: Python :: 3.8',
  68. 'Programming Language :: Python :: 3.9',
  69. "Topic :: Software Development"
  70. )
  71. )