android自动构建python脚本
零、配置
from setuptools import setup
setup(
author='handy',
author_email='cvdnn@foxmail.com',
url='https://github.com',
license='Apache v2.0',
description='python lang units',
name='py-cli',
version='1.0',
packages=['xcli'],
install_requires=['androguard', 'oss2', 'requests']
)
一、准备环境
pip install twine pytest
二、PyPi
- 在Pypi上注册账号,并创建
API tokens,复制证书到~/.pypirc
[pypi]
username = __token__
password = pypi-xxxxxx
- 设置权限
chmod 600 ~/.pypirc
三、发布SDK
python setup.py sdist
twine upload dist/*
四、应用
# 安装SDK
pip install py-cli
# 运行测试用例
pytest -s
Release files for py-cli 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-cli-1.2.5.tar.gz | 7.6 kB | Details |
Release files / py-cli-1.2.5.tar.gz
| Download URL | py-cli-1.2.5.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
869ef42ecd705d71868d33b8c2bafd792cb824c8c6badae51c89d27c467c9a1c
|
|
BLAKE2b-256 checksum How to use checksums |
3712cc192768a2067e27f54f672cb7a6aab0de70d8ce3345014acfb357d44977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2
|