Skip to content

Convert the flat compliance_checker.py module into a proper package so#9

Open
aaschwanden wants to merge 1 commit into
ismip:mainfrom
aaschwanden:main
Open

Convert the flat compliance_checker.py module into a proper package so#9
aaschwanden wants to merge 1 commit into
ismip:mainfrom
aaschwanden:main

Conversation

@aaschwanden

Copy link
Copy Markdown

We would like to run the compliace checker as part of our automated cloud workflow. This requires converting the checker to a proper python package with apyproject.toml files so we can install it within our workflow management environment.

Convert the flat compliance_checker.py module into a proper package so pip install . works and the checker runs from any directory.

  • Move compliance_checker.py to compliance_checker/init.py and add main.py (enables python -m compliance_checker).
  • Move the runtime CSVs into compliance_checker/data/ as the single source of truth; load them via importlib.resources instead of paths relative to the working directory. Drops the workdir arg on run_checker().
  • Add pyproject.toml declaring the package, data files, dependencies, and the ismip7-compliance-checker console script.
  • Repoint the test-file generator at the packaged CSV and the top-level gdfs/ directory; update tests to use the bundled defaults.
  • Update READMEs and .gitignore.
  • Removed restrictive pinning of modules in isschecker_env.ym.
  • All pytest test pass.

  `pip install .` works and the checker runs from any directory.

  - Move compliance_checker.py to compliance_checker/__init__.py and add
    __main__.py (enables `python -m compliance_checker`).
  - Move the runtime CSVs into compliance_checker/data/ as the single
    source of truth; load them via importlib.resources instead of paths
    relative to the working directory. Drops the workdir arg on
    run_checker().
  - Add pyproject.toml declaring the package, data files, dependencies,
    and the `ismip7-compliance-checker` console script.
  - Repoint the test-file generator at the packaged CSV and the top-level
    gdfs/ directory; update tests to use the bundled defaults.
  - Update READMEs and .gitignore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant