-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: Fix missing config files from installed package #475
Comments
add a init.py to the METplotpy/metplotpy/plots/config file |
@bikegeek, I can do that, but I believe that only will add .py files to the package. I added a section to the pyproject.toml to specify files that are not python that should be included in the package:
I confirmed that this worked:
|
sounds good!
…On Mon, Nov 18, 2024 at 11:02 AM George McCabe ***@***.***> wrote:
@bikegeek <https://github.com/bikegeek>, I can do that, but I believe
that only will add .py files to the package. I added a section to the
pyproject.toml to specify files that are not python that should be included
in the package:
[tool.setuptools.package-data]
metplotpy = [
"plots/config/**",
]
I confirmed that this worked:
ls
/Users/mccabe/.conda/envs/mpp_test/lib/python3.1/site-packages/metplotpy/plots/config
bar_defaults.yaml mpr_plot_defaults.yaml
box_defaults.yaml performance_diagram_defaults.yaml
contour_defaults.yaml reliability_defaults.yaml
eclv_defaults.yaml revision_box_defaults.yaml
ens_ss_defaults.yaml revision_series_defaults.yaml
equivalence_testing_bounds_defaults.yaml roc_diagram_defaults.yaml
hist_defaults.yaml scatter_defaults.yaml
histogram_2d_defaults.yaml taylor_diagram_defaults.yaml
histogram_defaults.yaml tcmpr_defaults.yaml
hovmoeller_defaults.yaml wind_rose_defaults.yaml
line_defaults.yaml
—
Reply to this email directly, view it on GitHub
<#475 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHTMGXV2TURDCFGS3Z32BITSJAVCNFSM6AAAAABSAD3ZG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBTG43DANRRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
* merged commit to get verison number from version file in docs config file * per #475, add default config files to python package * update version number for development towards beta1 of 3.1.0 * prevent GPU failure running in containers by running kaleido with single process option
#483) * Update conf.py * Per dtcenter/METplus#2336, call custom GHA to trigger METplus use case tests when changes are pushed to main_vX.Y and develop branches * Bugfix #475 main_v3.0 - make default configs available in package (#477) * fix version number for rc1 * get version number from verison file * per #475, add default config files to python package * prevent GPU failure running in containers by running kaleido with single process option * Adding In Memoriam * Removing, superfluous since Github automatically checks * Feature 480 v3.0.0 (#481) * updates for coordinated release: version updates, dates, rotating authors * Clean up text: fix typos, remove duplicates * Update vulnerabilities.yaml update gh-action-pip-audit from 1.0.5 to 1.1.0 * Apply suggestions from code review Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> * Adding space * Removing, superfluous since vulnerability checks are automatically done --------- Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> * Update conf.py added the version number * Update conf.py fixed version number * Update conf.py version number needs quotes * Modified default log level to ERROR to reduce logging messages captured in METviewer * Revert "Modified default log level to ERROR to reduce logging messages captured in METviewer" This reverts commit b273d4b. * Create 2.1.0_casper * update documentation requirements to include all sphinx packages and version numbers (#411) * Absolute import instead of relative for files in metplotpy/contributed/fv3_physics_tend * Not v 2 anymore * Hi * hi * a * Update _version.py * Update conf.py fixed version * Delete metplotpy/_version.py no such file * Accidentally deleted --------- Co-authored-by: bikegeek <3753118+bikegeek@users.noreply.github.com> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com> Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> Co-authored-by: bikegeek <minnawin@ucar.edu>
Describe the Problem
If METplotpy is installed as a python package, running line.py fails because the yaml default config files are not included in the package. Add these files are package data files.
Expected Behavior
Running /metplus/METplotpy/metplotpy/plots/line/line.py should run without producing this error:
Environment
Describe your runtime environment:
1. Machine: (e.g. HPC name, Linux Workstation, Mac Laptop)
2. OS: (e.g. RedHat Linux, MacOS)
3. Software version number(s)
To Reproduce
Describe the steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Post relevant sample data following these instructions:
https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk#ftp
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Milestone and Projects###
Define Related Issue(s)##
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next bugfix version
Select: Coordinated METplus-X.Y Support project for support of the current coordinated release
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: METplotpy-X.Y.Z Development project for development toward the next official release
The text was updated successfully, but these errors were encountered: