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

chore: remove pkg_resources and test command #1014

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

henryiii
Copy link
Contributor

  • fix: drop pkg_resources
  • fix: drop custom test command

henryiii added 2 commits July 21, 2023 07:02
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii henryiii force-pushed the henryiii/fix/pkg_res branch from 867b771 to dde5e79 Compare July 21, 2023 11:37
@henryiii henryiii changed the title fix: pkg_resource & remove test chore: remove pkg_resources and test command Jul 21, 2023
@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.19%. Comparing base (bd8802f) to head (dde5e79).
Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1014      +/-   ##
==========================================
- Coverage   86.26%   86.19%   -0.07%     
==========================================
  Files          33       32       -1     
  Lines        1587     1579       -8     
  Branches      350      350              
==========================================
- Hits         1369     1361       -8     
  Misses        155      155              
  Partials       63       63              

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

@henryiii henryiii marked this pull request as ready for review July 21, 2023 12:15
@@ -225,10 +224,6 @@ def execute_setup_py(project_dir, setup_args, disable_languages_test=False):
del os.environ["_PYTHON_HOST_PLATFORM"]

with push_dir(str(project_dir)), push_argv(["setup.py", *setup_args]), prepend_sys_path([str(project_dir)]):
# Restore master working set that is reset following call to "python setup.py test"
# See function "project_on_sys_path()" in setuptools.command.test
pkg_resources._initialize_master_working_set() # type: ignore[attr-defined]
Copy link
Contributor

Choose a reason for hiding this comment

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

Glad to see this one go 🚀 ... if i recall it was not easy to find out at that time.

@henryiii henryiii merged commit 9fb550b into scikit-build:main Jul 21, 2023
@henryiii henryiii deleted the henryiii/fix/pkg_res branch July 21, 2023 13:56
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.

2 participants