แชร์ผ่าน


PyPIPublisher@0 - PyPI publisher v0 task

Use this task to create and upload an sdist or wheel to a PyPI-compatible index using Twine.

Inputs

serviceEndpoint - PyPI connection
string. Required.

Specifies the generic service endpoint where the following PyPI server details are present:

  • Connection Name – Use a connection name of your choice.
  • Server URL – PyPI package server (for example: https://upload.pypi.org/legacy/).
  • User Name – PyPI registered username.
  • Password – password for your PyPI account.

Note: To configure a new generic service endpoint, under your VSTS project, go to Settings -> Services -> New Service Endpoint -> Generic.


wd - Python package path
string. Required.

Specifies the Python package directory published where setup.py is present.


wheel - Upload wheel
boolean. Default value: false.

If set to true, the task will build and publish a universal wheel (platform independent) of this package. More information regarding universal wheels.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Important

The PyPI Publisher task has been deprecated. You can now publish PyPI packages using Twine authentication and custom scripts.

Use this task to create and upload an sdist or wheel to a PyPI-compatible index using Twine.

This task builds an sdist package by running python setup.py sdist with the Python instance in PATH. In addition to the sdist, it can optionally build a universal wheel. It will upload the package to a PyPI index using twine. The task will install the wheel and twine packages with python -m pip install --user.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.0.0 or greater
Task category Utility