Setting up PyPI publishing#
To publish your package on PyPI requires a PyPI account and for PyPI to be setup for Trusted Publisher.
Gather the information#
You will need the following information:
Owner: The GitHub org that the repo is contained in, e.g.
DiamondLightSourceRepository name: The GitHub repository name, e.g.
python-copier-template-examplePyPI Project Name: The distribution name on PyPI, e.g.
dls-python-copier-template-exampleWorkflow name: The workflow that does publishing,
_pypi.ymlforpython-copier-templateprojectsEnvironment name: The GitHub environment that publishing is done with,
releaseforpython-copier-templateprojects
If publishing to the DiamondLightSource PyPI organisation#
If you are publishing to the DiamondLightSource PyPI organisation then use the above information and follow the Developer Portal Guide on PyPI publishing.
If publishing the PyPI project to another organisation#
If you are publishing to a different PyPI organisation then use the above information in one of the following guides: