jborean93 / pypsrp

PowerShell Remoting Protocol for Python
MIT License
327 stars 49 forks source link

Migrate build back to setuptools #139

Closed jborean93 closed 2 years ago

jborean93 commented 2 years ago

The build process had changed to poetry a few versions back to try out something new and to simplify the build process. After careful consideration this commit migrates back to setuptools but still takes advantage of PEP 517 as the build process.

This also migrates the project layout to a src layout to better ensure that testing is done against a built produce rather than on the source code which might contain setups not present in a wheel (package data not present etc). While not a necessary change for migration back to setuptools this aligns with a few of my other libraries.

codecov[bot] commented 2 years ago

Codecov Report

Merging #139 (026017b) into master (2708d63) will decrease coverage by 0.03%. The diff coverage is n/a.

:exclamation: Current head 026017b differs from pull request most recent head 622add9. Consider uploading reports for the commit 622add9 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
- Coverage   99.66%   99.63%   -0.04%     
==========================================
  Files          13       13              
  Lines        3299     3299              
==========================================
- Hits         3288     3287       -1     
- Misses         11       12       +1     
Flag Coverage Δ
py3.10 99.63% <ø> (-0.04%) :arrow_down:
py3.6 99.63% <ø> (-0.04%) :arrow_down:
py3.7 99.63% <ø> (-0.04%) :arrow_down:
py3.8 99.60% <ø> (-0.04%) :arrow_down:
py3.9 99.60% <ø> (-0.04%) :arrow_down:
ubuntu 98.39% <ø> (ø)
windows 99.63% <ø> (-0.03%) :arrow_down:
x64 99.63% <ø> (-0.04%) :arrow_down:
x86 99.63% <ø> (-0.03%) :arrow_down:

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

Impacted Files Coverage Δ
src/pypsrp/__init__.py 100.00% <ø> (ø)
src/pypsrp/_utils.py 100.00% <ø> (ø)
src/pypsrp/client.py 97.58% <ø> (ø)
src/pypsrp/complex_objects.py 100.00% <ø> (ø)
src/pypsrp/encryption.py 100.00% <ø> (ø)
src/pypsrp/exceptions.py 100.00% <ø> (ø)
src/pypsrp/host.py 100.00% <ø> (ø)
src/pypsrp/messages.py 100.00% <ø> (ø)
src/pypsrp/negotiate.py 97.72% <ø> (ø)
src/pypsrp/powershell.py 100.00% <ø> (ø)
... and 4 more

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 2708d63...622add9. Read the comment docs.