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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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