Skip to content
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

Support EmPy 4.x configuration API #665

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Support EmPy 4.x configuration API #665

merged 1 commit into from
Sep 20, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Sep 9, 2024

There isn't a clean way to configure EmPy the way we need to which is compatible with both EmPy 3.x and 4.x. Unfortunately, this means that we'll need to have separate code paths.

Additionally, EmPy 4.x doesn't take the name argument to Interpreter.string(). From what I can tell, it wasn't used for anything interesting anyway. In particular, exception traces still contain <string> instead of the file name.

There isn't a clean way to configure EmPy the way we need to which is
compatible with both EmPy 3.x and 4.x. Unfortunately, this means that
we'll need to have separate code paths.

Additionally, EmPy 4.x doesn't take the `name` argument to
Interpreter.string(). From what I can tell, it wasn't used for anything
interesting anyway. In particular, exception traces still contain
`<string>` instead of the file name.
@cottsay cottsay added the enhancement New feature or request label Sep 9, 2024
@cottsay cottsay added this to the 0.17.2 milestone Sep 9, 2024
@cottsay cottsay self-assigned this Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.35%. Comparing base (7cb836e) to head (4c88c48).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
colcon_core/shell/template/__init__.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #665      +/-   ##
==========================================
- Coverage   87.36%   87.35%   -0.02%     
==========================================
  Files          67       67              
  Lines        3917     3921       +4     
  Branches      775      775              
==========================================
+ Hits         3422     3425       +3     
- Misses        391      392       +1     
  Partials      104      104              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cottsay cottsay merged commit fbbb8af into master Sep 20, 2024
36 checks passed
@cottsay cottsay deleted the cottsay/empy-config branch September 20, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants