Skip to content

Commit 20f00d5

Browse files
committed
编写上传脚本
1 parent b3788e7 commit 20f00d5

File tree

3 files changed

+34
-7
lines changed

3 files changed

+34
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
.idea

setup.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
# coding: utf-8
12
from setuptools import setup, find_packages
23

34
setup (
4-
name='tls-sig-api-v2',
5-
version='1.0',
6-
packages=find_packages(),
7-
author_email='weijunyi@tencent.com',
8-
py_modules=[
5+
name = 'tls-sig-api-v2',
6+
version = '1.0',
7+
description ='tls-sig-api-v2 适用于腾讯云通信生成用户账号签名。',
8+
long_description = "适用于新版 key,之前非对称密钥不适用,使用非对称密钥参考 https://github.com/tencentyun/tls-sig-api-python",
9+
author = 'weijunyi',
10+
author_email = 'weijunyi@tencent.com',
11+
license = 'MIT Licence',
12+
packages = find_packages(),
13+
py_modules = [
914
'TLSSigAPI'
1015
],
11-
url='https://github.com/tencentyun/tls-sig-api-v2-python',
12-
license='MIT'
16+
install_requires = [],
17+
url = 'https://github.com/tencentyun/tls-sig-api-v2-python',
18+
platforms = "any"
1319
)

upload.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /bin/sh
2+
3+
rm -rf dist
4+
5+
python setup.py sdist
6+
7+
# 需要确保 twine 已经安装,如果没有安装,安装命令如下
8+
# pip install twine
9+
10+
# 在 ~/ 目录下建立 .pypirc,内如如下
11+
# [distutils]
12+
# index-servers = pypi
13+
#
14+
# [pypi]
15+
# username:你的PyPi用户名
16+
# password:你的PyPi密码
17+
18+
twine upload dist/*.tar.gz
19+

0 commit comments

Comments
 (0)