PyPi Server


Description

This is a private PyPi compatible python repository serving the nitonrock ecosystem with 68 packages.
To install and publish packages you must be a registered user.

The complete list of packages can be found here or via the simple index.

Install Packages

Setup

Create or edit the file ~/.netrc and add the following with your user name and password:

    
    machine pypi.nitonrock.com
      login <your_nitonrock_username>
      password <your_nitonrock_password>
  

To use pip to install libraries, add the following in your file ~/.pip/pip.conf:

    
    [global]
    index-url =  https://pypi.org/simple/
    extra-index-url = https://pypi.nitonrock.com/simple/
    trusted-host = pypi.org pypi.nitonrock.com
  
and, in the terminal, simply run: pip install PACKAGE


To use poetry to install libraries, run this:

    
    poetry config repositories.nitonrock https://pypi.nitonrock.com/
    poetry config http-basic.nitonrock <your_nitonrock_username> <your_nitonrock_password>
  
and add the following to your project file pyproject.toml:
    
    [[tool.poetry.source]]
    name = "nitonrock"
    url = "https://pypi.nitonrock.com/"
    priority = 'supplemental'
    
  

Publish Packages

Create or edit the file ~/.pypirc and add the following with your respective username and password:

    
    [distutils]
    index-servers =
      pypi
      nrp

    [pypi]
    username: <your_pypi_username>
    password: <your_pypi_passwordd>

    [nrp]
    repository: https://pypi.nitonrock.com
    username: <your_nitonrock_username>
    password: <your_nitonrock_password>
    
  

In the terminal, at the root of your package, simply run:

    python -m build
    twine upload -r nrp
  

Or with poetry run:

    poetry build
    poetry publish -r nrp
  

Version

Nitonrock PyPi Server 1.0.3