Open suvayu opened 2 months ago
I guess I should exclude the notebooks, and yaml files?
Looking great so far!
The doc building should be minor, the workflow is still trying to run setup.py, so just replace that with a default sphinx build command, see e.g. the template workflow: https://github.com/NLeSC/python-template/blob/main/%7B%7Bcookiecutter.directory_name%7D%7D/.github/workflows/documentation.yml To copy-paste (almost) that whole workflow, you also need to add a doc group under [project.optional-dependencies], see here.
Btw, I think the conda package wasn't built for a while already, so not sure whether that stuff is still necessary, but were you planning on porting that still as well? If not, we can always do it later, probably not a priority right now.
I'm a bit confused & unsure about the mixed conda + pip setup. Conda doesn't respect pyproject.toml at all. And to generate the docs, building and installing with (build
) and pip
seems to work.
This mixed setup leads to a lot of duplication of dependency specification; environment.yml
, pyproject.toml
, workflow yamls.
cvasl.vendor.rst:document isn't included in any toctree
@drcandacemakedamoore do you want to generate the docs for the vendored libraries as well? I'm inclined towards yes, since they are not really maintained upstream.
Warning, treated as error: /home/runner/work/cvasl/cvasl/cvasl/vendor/comscan/clustering.py:docstring of sklearn.utils._metadata_requests.RequestMethod.get.
.func:3:undefined label: 'metadata_routing' [ref.ref]
Ok docs build except for this really odd error. I could only find one import from sklearn.utils
:
https://github.com/brainspinner/cvasl/blob/24e44e70373de04f341353c74b0c3a874c175080/cvasl/vendor/comscan/neurocombat.py#L27
and it is not even referenced in any docstring (I was expecting something like :ref:<imported-name>
).
Can you ignore imports (or just that one) in the docs config?
In the pyproject toml you set Python to 3.10, but then in github actions you use 3.11, I don't think 3.10 will work, but I will try to run some checks later
Never mind about this....
setuptools_scm
)tox-conda
for compatibility testingconda-build
step is partialBuild with
python -m build .