-
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
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: