Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Sonatype PyTorch PyPI Improved Mirror

⚠️ DEPRECATED

This project is now deprecated and has been replaced by native functionality in Nexus Repository Manager 3.91+ (see NEXUS-29440).

Nexus Repository 3.91 and later versions include built-in support for PyTorch PyPI repositories without requiring this mirror. Please refer to the Nexus Repository PyPI documentation for details on configuring PyPI proxy repositories, particularly the "Remote Index Path" field.

This project will no longer be actively maintained.

shield_gh-workflow-test shield_license


This project provides a PyTorch Python index mirror that adds necessary strict PEP 503 format requirements permitting to use it with Nexus Repository.

Usage

Installation

As a Nexus Repository admin, configure a new PyPI proxy repository:

  • define name: pypi-pytorch for example
  • define URL for remote storage: https://sonatype-nexus-community.github.io/pytorch-pypi/whl/

You can also create compute platform specific proxies if necessary, like pypi-pytorch-cu129 pointing to https://sonatype-nexus-community.github.io/pytorch-pypi/whl/cu129/

For nightly versions, simply create a pypi-pytorch-nightly repository pointing to https://sonatype-nexus-community.github.io/pytorch-pypi/whl/nightly/

These PyPI proxies can also be added to your pypi-all group repository if you created one.

Access With pip

Newly created PyPI proxies can now be used with pip using provided --index-url, like:

pip3 install torch==2.8.0+cu129 --index-url http://localhost:8081/repository/pypi-pytorch/simple

or

pip3 install torch --index-url http://localhost:8081/repository/pypi-pytorch-cu129/simple

for nightly

pip3 install torch --index-url http://localhost:8081/repository/pypi-pytorch-nightly/simple

or

pip3 install torch==2.8.0.dev20250613+cu129 http://localhost:8081/repository/pypi-pytorch-nightly/simple

Development

See CONTRIBUTING.md for details.

The Fine Print

Remember:

This project is part of the Sonatype Nexus Community organization, which is not officially supported by Sonatype. Please review the latest pull requests, issues, and commits to understand this project's readiness for contribution and use.

  • File suggestions and requests on this repo through GitHub Issues, so that the community can pitch in
  • Use or contribute to this project according to your organization's policies and your own risk tolerance
  • Don't file Sonatype support tickets related to this project— it won't reach the right people that way

Last but not least of all - have fun!

About

PyTorch Python Index mirror with PEP 503 “simple” compliance updates

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

29 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages