Switch to new CI/CD configuration
We need to adapt this package to the new CI/CD and package format using citools:
-
Modify pyproject.toml:-
Add information from setup.py, -
Add version from version.txt, -
Add requirements from requirements.txtandconda/meta.yaml,
-
-
Empty setup.py:- Leave the call to
setup()for compatibility,
- Leave the call to
-
Remove version.txt, -
Remove requirements.txt, -
Modify conda/meta.yaml,-
Import data from pyproject.toml(name,version, ...), -
Add the source.pathfield with value.., -
Add the build.noarchfield with valuepython, -
Edit the build.scriptto only contain"{{ PYTHON }} -m pip install {{ SRC_DIR }} -vv", -
Remove test and documentation commands and comments,
-
-
Modify .gitlab-ci.ymlto point to citools'python.yml,- Use the fields format instead of the URL,
-
Move files to follow the srclayout:-
the whole bobfolder tosrc/bob/, -
all the tests in tests/, -
the test data files in tests/data, -
Edit the tests to load the data correctly, either with os.path.join(os.path.basename(__file__), "data/xxx.txt")orpkg_resources.resource_filename(__name__, "data/xxx.txt"),
-
-
Activate the packagesoption insettings -> general -> visibilityin the Gitlab project, -
Edit the latest doc badges to point to the sphinxdirectory indoc/[...]/master:-
in README.md, -
in the GitLab project settings,
-
-
Edit the coverage badges to point to the doc's coverage directory: -
in README.md, -
in the GitLab project settings,
-
-
Ensure the CI pipeline passes.
You can look at bob.learn.em for an example of a ported package.
Edited by Yannick DAYER