PyPIPublisher@0 - PyPI publisher v0 task
Use this task to create and upload an sdist or wheel to a PyPI-compatible index using Twine.
# PyPI publisher v0
# Create and upload an sdist or wheel to a PyPI-compatible index using Twine.
- task: PyPIPublisher@0
inputs:
pypiConnection: # string. Alias: serviceEndpoint. Required. PyPI service connection.
packageDirectory: # string. Alias: wd. Required. Python package directory.
#alsoPublishWheel: false # boolean. Alias: wheel. Also publish a wheel. Default: false.
# PyPI Publisher v0
# Create and upload an sdist or wheel to a PyPI-compatible index using Twine.
- task: PyPIPublisher@0
inputs:
pypiConnection: # string. Alias: serviceEndpoint. Required. PyPI service connection.
packageDirectory: # string. Alias: wd. Required. Python package directory.
#alsoPublishWheel: false # boolean. Alias: wheel. Also publish a wheel. Default: false.
pypiConnection
- PyPI service connection
Input alias: serviceEndpoint
. string
. Required.
Specifies a generic service connection for connecting to the package index.
packageDirectory
- Python package directory
Input alias: wd
. string
. Required.
Specifies the directory of the Python package that is created and published where setup.py
is present.
alsoPublishWheel
- Also publish a wheel
Input alias: wheel
. boolean
. Default value: false
.
Specifies whether to create and publish a universal wheel package (platform independent) in addition to an sdist package. More information about packaging Python projects.
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.
None.
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
.
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 | Package |