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

Fixed AttributeError: editable_mode in setup.py #1715

Conversation

reinecke
Copy link
Collaborator

The setup.py build_py action uses the editable_mode attribute, however there are some invocation paths where this isn't set.

This adds defaulting behavior to avoid an AttributeError in those cases.

Reference associated tests.

I validated this through the various make, pip, and python setup.py... commands.

…setup.py

Signed-off-by: Eric Reinecke <reinecke.eric@gmail.com>
@reinecke reinecke force-pushed the fix/editable-mode-attributeerror branch from 2d3cb16 to 7ca70a1 Compare March 30, 2024 17:12
Signed-off-by: Eric Reinecke <reinecke.eric@gmail.com>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.96%. Comparing base (82068e3) to head (16e9975).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1715   +/-   ##
=======================================
  Coverage   79.96%   79.96%           
=======================================
  Files         197      197           
  Lines       21867    21867           
  Branches     4338     4338           
=======================================
  Hits        17487    17487           
  Misses       2249     2249           
  Partials     2131     2131           
Flag Coverage Δ
py-unittests 79.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82068e3...16e9975. Read the comment docs.

@reinecke reinecke added this to the Public Beta 16 milestone Mar 30, 2024
Copy link
Contributor

@apetrynet apetrynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@reinecke reinecke merged commit abe8308 into AcademySoftwareFoundation:main Mar 30, 2024
45 checks passed
@reinecke reinecke deleted the fix/editable-mode-attributeerror branch March 30, 2024 17:33
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.

3 participants