Skip to main content

A test package

Project description

pypi包发布

目录结构

meutils-w
----src
--------meutils-w
------------__init__.py
------------test.py
----LICENSE
----pyproject.toml
----README.md
----setup.py

文件内容

__init__.py

if name="__init__":
    f()

test.py

def f():
    print('just a test')

pyproject.toml

[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"

setup.py

from time import time
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
     long_description = fh.read()
setuptools.setup(
     name="meutils-w",
     version="0.0.0",
     author="wangdexiang",
     author_email="k7856499@163.com",
     description="A test package",
     long_description=long_description,
long_description_content_type="text/markdown",
     url="https://github.com/pypa/sampleproject",
     project_urls={
         "Bug Tracker": "https://github.com/pypa/sampleproject/issues",
     },
     classifiers=[
         "Programming Language :: Python :: 3",
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
     ],
     package_dir={"": "src"},
     packages=setuptools.find_packages(where="src"),
     python_requires=">=3.6",
)

安装依赖

pip install build twine

构建测试包

python -m build

上传测试包

python -m twine upload dist/*

更新测试包

python -m twine upload dist/* --skip-existing
#只更新已存在的包

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

meutils-w-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

meutils_w-0.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file meutils-w-0.0.1.tar.gz.

File metadata

  • Download URL: meutils-w-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for meutils-w-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0daf226ce418aeae877edd8f228311dd7e705be0b9ffc138974b51cac33d7b35
MD5 646209d328013f714a3234da3d2d6f7c
BLAKE2b-256 c2570ebe25ef93c74f1ba5db7b40d3eaf42b497a026f70c1ae706ce0b5482aac

See more details on using hashes here.

File details

Details for the file meutils_w-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: meutils_w-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for meutils_w-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4df2c768a56897be6a472475ad3c37d8759fb3b09780978ccdac0fc43122bb9
MD5 06a1a2291fd0ec6ea50a36581f47ef42
BLAKE2b-256 4a6eb9fd6fc008d4f10188987e3963c95339c55bb128ff2f75b9f75bda55858a

See more details on using hashes here.

Supported by

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