Ai
13 Star 59 Fork 27

zakzou/weixin-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setup.py 997 Bytes
一键复制 编辑 原始数据 按行查看 历史
zwczou 提交于 2018-07-04 22:35 +08:00 . 更改xml.etree为lxml #30
# -*- coding: utf-8 -*-
import re
import ast
import os
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('weixin/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')
).group(1)))
def fread(fname):
filepath = os.path.join(os.path.dirname(__file__), fname)
if os.path.exists(filepath):
with open(filepath) as f:
return f.read()
setup(
name='weixin-python',
description='Weixin for Python',
long_description=fread('docs/quickstart.rst'),
license='BSD',
packages=find_packages(),
version=version,
author='zwczou',
author_email='zwczou@gmail.com',
url='https://github.com/zwczou/weixin-python',
keywords=['weixin', 'weixin pay', 'weixin login', 'weixin mp', 'weixin python'],
zip_safe=False,
platforms='any',
install_requires=[
"requests",
"lxml"
],
classifiers=[],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zakzou/weixin-python.git
git@gitee.com:zakzou/weixin-python.git
zakzou
weixin-python
weixin-python
master

搜索帮助