1. 首先创建项目,目录结构如下 worker_package/ ├── LICENSE ├── README.md ├── setup.py └── workerwork ├── __init__.py └── models.py 其中 worker_package/workerwork 是主代码目录,setup.py 是必备的打包文件 setup.py #!/usr/bin/env python # -*- coding:utf-8 -*- # Author: workerwork(workerwork@qq.com) # Description: from setuptools import setup, find_packages setup( name = 'workerwork', version = '0.0.1', keywords='wow', description = 'a library for wow Developer', license = 'MIT License', url = '', author = 'workerwork', author_email = 'workerwork@qq.com', packages = find_packages(), include_package_data = True, platforms = 'any', install_requires = [ 'requests>=2.……

阅读全文