Skip to main content

学习如何构建python模块,并打包上传pypi

Project description

# -!- coding: utf-8 -!-

# 这是我尝试进行构建的第一个python包

# 配置文件的优先级 setup.py < MANIFEST.in < setup.cfg

#创建.pypirc # windows的用户文件夹目录为: # C:UsersAdministrator.pypirc # .pypirc内容: # # [distutils] # index-servers = pypi # # [pypi] # username: 用户名 # password: 密码

#python setup.py register

#本地打包 #python setup.py sdist build #python setup.py bdist_wheel –universal

#上传到pypi #python setup.py sdist upload #python setup.py bdist_wheel upload

#或者使用twine上传,先安装twine # pip install twine #

rm -rf src/hello_python_demo_demo.egg-info dist build && python setup.py sdist build && python setup.py bdist_wheel –universal twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hello_python_demo-1.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

hello_python_demo-1.0.3-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file hello_python_demo-1.0.3.tar.gz.

File metadata

  • Download URL: hello_python_demo-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for hello_python_demo-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e3066f86c0f6ad2b7ca7ec42c5415f7d18fd9bb03c5405e0029cc769276ddb5a
MD5 b727758815ccf720d32d50953af96b8b
BLAKE2b-256 41ba151fc3350ea1eae4dc494d792fe78dbc1f215c9a864a7fc9e54caf38a5ac

See more details on using hashes here.

File details

Details for the file hello_python_demo-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: hello_python_demo-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for hello_python_demo-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0451048a7c4c34cae326d7343f2f026cbc59448fc73c7288316bf7097dcc1e75
MD5 f757a7833e645895c34fc7fdcd18c068
BLAKE2b-256 c70d0cba79582d2ca844ee46a4ae82abdb76e2f6866dd7f07c49ceecd462043e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page