Skip to main content

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

  1. Pypi上注册账号,并创建API tokens,复制证书到~/.pypirc
[pypi]
  username = __token__
  password = pypi-xxxxxx
  1. 设置权限
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)

Source distribution for py-cli 1.2.5
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

Release history Release notifications | RSS feed

This release

1.2.5 This release

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page