FAIRmat-NFDI / nomad-analysis

This repo contains the standard NOMAD plugin for analysis.
https://fairmat-nfdi.github.io/nomad-analysis/
Apache License 2.0
1 stars 0 forks source link

Modifying pyproject to avoid exporting PYTHONPATH #5

Closed ka-sarthak closed 4 months ago

ka-sarthak commented 4 months ago

Changing this

[tool.setuptools.packages.find]
include = ["src"]

to

[tool.setuptools.packages.find]
where = ["src"]

allows to run pytests in the workflow without explicitly exporting the src directory to PYTHONPATH. This way the tests run on the installed package rather than the source code.

From discussions with @hampusnasstrom

ka-sarthak commented 4 months ago

Added some other modifications to the config