setup.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/python
  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 under
  16. the License.
  17. '''
  18. import os
  19. import setuptools
  20. with open("README.md", "r") as f:
  21. long_description = f.read()
  22. requires = [
  23. "oss2",
  24. "aliyun-python-sdk-core>=2.13.3",
  25. "matplotlib>=3.3.4"
  26. ]
  27. setup_args = {
  28. 'version': "1.0.0",
  29. 'author': "jiaqi.sjq",
  30. 'author_email': "jiaqi.sjq@alibaba-inc.com",
  31. 'description': "python sdk for nls",
  32. 'license':"Apache License 2.0",
  33. 'long_description': long_description,
  34. 'long_description_content_type': "text/markdown",
  35. 'keywords': ["nls", "sdk"],
  36. 'url': "https://github.com/..",
  37. 'packages': ["nls", "nls/websocket"],
  38. 'install_requires': requires,
  39. 'classifiers': [
  40. "Programming Language :: Python :: 3",
  41. "License :: OSI Approved :: Apache Software License",
  42. "Operating System :: OS Independent",
  43. ],
  44. }
  45. setuptools.setup(name='nls', **setup_args)