Skip to content

Configure requirements for build. #1236

@dsm-72

Description

@dsm-72

nbdev deployment tends to fail for me because of errors like "numpy not installed"
I have both a requirements.txt file (pip) and a env.yml file (Conda) for creating the environment for working with this project.

From looking at setup.py

# line 27 / 28
requirements = cfg.get('requirements','').split()
if cfg.get('pip_requirements'): requirements += cfg.get('pip_requirements','').split()

it looks like I just need to add requirements to settings.ini e.g.

requirements = pandas==1.3.5 tqdm==4.64.1 numpy==1.23.3

Which I have now done. I pushed and got the error:

github-pages 227 | Error:  No such file or directory @ dir_chdir - /github/workspace/docs

What's going on with the new version of nbdev? It fails if I dont have requirements installed and after basic packages like numpy are included.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions