PyPi configuration in Nexus3
There are 5 PyPi repositories present in Nexus3:
Pypi (proxy) - This repository is used to proxy https://pypi.python.org/
https://nexus3.onap.org/repository/PyPi/
Pypi.public (group) - This group consolidates PyPi.release and PyPi. This group should be accessed for reading/pulling purposes.
https://nexus3.onap.org/repository/PyPi.public/
Pypi.release (hosted) - This repository hosts our official releases. This repo does not allow re-deployment
https://nexus3.onap.org/repository/PyPi.release/
Pypi.snapshot (hosted) - Used to host our snapshots meanwhile the release candidate is being worked on. This repo allows re-deployment.
https://nexus3.onap.org/repository/PyPi.snapshot/
Pypi.staging (hosted) - Used for our daily/staging non official publications. This repo allows re-deployment.
https://nexus3.onap.org/repository/PyPi.staging/
PyPi configuration in Jenkins and JJB
Projects can leverage this set of templates when they are a python project that needs to upload python packages to a PyPi repository.
...
There are currently 4 templates available:
- `{project-name}-python-staging-{stream}`
- {project-name}-python-release-{stream}
- {project-name}-{subproject}-python-staging-{stream}
- {project-name}-{subproject}-python-release-{stream}
General Job Information
The "staging" jobs will trigger a Jenkins job that builds the python package and pushes the package to a staging repo located here https://nexus3.onap.org/repository/PyPi.staging/.
...
- project-name
- stream
- tox-dir (optional, default: '')
- tox-envs (optional, default: '')
- python-version
Note | ||
---|---|---|
| ||
tox-dir typically only need to be specified for subprojects. You can specify it though if your tox.ini is somewhere other than the root of your project. tox-envs are set to blank always so they do not overwrite your tox.ini; Setting them blank gives the option to set them if you manually kick off a job for troubleshooting purposes though. |
...