setup.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # -*- coding: utf-8 -*-
  2. import setuptools
  3. """
  4. 打包成一个 可执行模块
  5. """
  6. with open("README.md", "r", encoding="utf-8") as fh:
  7. long_description = fh.read()
  8. setuptools.setup(
  9. # 关于项目的介绍 - 随便写都可以
  10. name="APIRunner",
  11. version="0.0.1",
  12. author="zzh",
  13. author_email="zzh",
  14. description="API 自动化测试工具",
  15. license="GPLv3",
  16. long_description=long_description,
  17. long_description_content_type="text/markdown",
  18. url="",
  19. project_urls={
  20. "Bug Tracker": "",
  21. "Contact Us": "",
  22. },
  23. classifiers=[
  24. "Programming Language :: Python :: 3",
  25. "License :: OSI Approved :: GNU General Public License (GPL)",
  26. "Operating System :: OS Independent",
  27. ],
  28. # 需要安装的依赖 -- 工具依赖
  29. install_requires=[
  30. "allure-pytest==2.13.5",
  31. "Jinja2",
  32. "jsonpath",
  33. "pluggy",
  34. "pycparser",
  35. "PyMySQL",
  36. "PySocks",
  37. "pytest",
  38. "PyYAML",
  39. "pyyaml-include==1.3.1",
  40. "requests",
  41. "exceptiongroup",
  42. "jsonpath==0.82.2",
  43. "allure-pytest==2.13.5"
  44. ],
  45. packages=setuptools.find_packages(),
  46. package_data={'': ['*.*']}, # 默认只会加载py文件,设置加载所有的文件。
  47. python_requires=">=3.6",
  48. # 生成一个 可执行文件 例如 windows下面 .exe
  49. entry_points={
  50. 'console_scripts': [
  51. # 可执行文件的名称=执行的具体代码方法
  52. 'apirun=apirun.cli:run'
  53. ]
  54. },
  55. zip_safe=False
  56. )