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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| py-cli-1.2.5.tar.gz | 7.6 kB | Without provenance | Details for py-cli-1.2.5.tar.gz |
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
|
Security for py-cli 1.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.