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

Remove deprecated implicit assembly loading #1277

Merged
merged 2 commits into from
Nov 14, 2020

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Nov 11, 2020

What does this implement/fix? Explain your changes.

This removes deprecated logic of implicit assembly loading

Legacy behavior:

import Company.Product.Namespace would search for Company.Product.Namespace.dll .NET assmebly, load it, and import the namespace.

New behavior:

User must always explicitly add assembly reference using clr.AddReference to Company.Product.Namespace prior to attempting import

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

@filmor
Copy link
Member

filmor commented Nov 11, 2020

This needs to be communicated well on the 3.0 release.

@lostmsu lostmsu force-pushed the no-implicit-assembly-loading branch from 7ae19e2 to 060cccb Compare November 13, 2020 05:16
@lostmsu
Copy link
Member Author

lostmsu commented Nov 13, 2020

Moved one commit to a separate PR

@lostmsu lostmsu force-pushed the no-implicit-assembly-loading branch 2 times, most recently from 85c1ea4 to aeae28e Compare November 13, 2020 06:17
@lostmsu lostmsu force-pushed the no-implicit-assembly-loading branch from aeae28e to c2ce09d Compare November 13, 2020 06:18
@codecov-io
Copy link

codecov-io commented Nov 13, 2020

Codecov Report

Merging #1277 (1747b42) into master (36bdb98) will increase coverage by 0.34%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1277      +/-   ##
==========================================
+ Coverage   87.62%   87.97%   +0.34%     
==========================================
  Files           1        1              
  Lines         291      291              
==========================================
+ Hits          255      256       +1     
+ Misses         36       35       -1     
Flag Coverage Δ
setup_linux 65.29% <ø> (+0.34%) ⬆️
setup_windows 74.22% <ø> (+0.34%) ⬆️

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

Impacted Files Coverage Δ
setup.py 87.97% <0.00%> (+0.34%) ⬆️

Continue to review full report at Codecov.

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

Legacy behavior:
`import Company.Product.Namespace` would search for
`Company.Product.Namespace.dll` .NET assmebly, load it, and import the
namespace.

New behavior:
User must always explicitly add assembly reference using
`clr.AddReference` to `Company.Product.Namespace` prior to attempting
import
@lostmsu lostmsu force-pushed the no-implicit-assembly-loading branch from c2ce09d to 1747b42 Compare November 13, 2020 18:04
@lostmsu lostmsu merged commit 2e6d12f into pythonnet:master Nov 14, 2020
@lostmsu lostmsu deleted the no-implicit-assembly-loading branch November 14, 2020 20:04
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