NumPy Trial Install

How to configure NES for NumPy Trial

Prerequisites

  1. Make sure your project meets the Minimum Requirements to ensure a smooth installation.
  2. The instructions below assume you are using Pip to install your packages. If your project isn't using Pip, you will need to incorporate Pip into your project.

Detailed Instructions

Update pip.conf/pip.ini

Once you have either located or created the configuration file, add the following to the file:

pip.conf/pip.ini
[global]
extra-index-url = https://<NES_ACCESS_TOKEN>@registry.dev.nes.herodevs.com/python/

While this step can be done in different ways, such as using a .env file or directly in the requirements.txt, this is the recommended way to avoid accidentally exposing your token.

Update requirements.txt

Change the version for numpy in the requirements.txt to exactly match the NES version.

requirements.txt
numpy==<NES_VERSION>

Install packages

pip install -r requirements.txt

And just like that, you can run your integration tests against NES for NumPy!