-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Cleanup around testing and packaging lifecycle #961
Conversation
0cc4478
to
4e8b7c6
Compare
Codecov Report
@@ Coverage Diff @@
## master #961 +/- ##
==========================================
+ Coverage 79.2% 80.62% +1.42%
==========================================
Files 30 30
Lines 5996 5884 -112
Branches 1488 1454 -34
==========================================
- Hits 4749 4744 -5
+ Misses 873 759 -114
- Partials 374 381 +7
Continue to review full report at Codecov.
|
4e8b7c6
to
d956f1c
Compare
Python 3.4 is failing on appveyor because the wheel for 5.4.8 is not uploaded to PyPI: the compilation fails: giampaolo/psutil#1356 |
d956f1c
to
38d1bbf
Compare
For Travis the failure appeared when enabling isolated builds (PEP518) I've reported the issue to tox-travis, to try to see where the issue is really: tox-dev/tox-travis#119 |
38d1bbf
to
1c88a50
Compare
The travis failure is a manifestation of #954 |
d5607f6
to
618790c
Compare
I need to make sure the coverage reporting still works fine. After that the only issues there are is the (unrelated?) Travis failure, After that is fixed there are a some thing that might be worth doing, maybe for another PR:
|
Coverage reporting seems to work find according to https://codecov.io/gh/common-workflow-language/cwltool/pull/961?src=pr&el=desc (80.43%, +2.23%) |
Would including |
618790c
to
f359d86
Compare
@mr-c looks like it does :) About requirements.txt: The main difficulty is that setup.py needs to be executed, opening up a possibility to execute malicious code, as it's executed on PRs. The good solution would be to get rid of setup.py altogether (I'm testing migrating to poetry in another library) "Importing" requirements.txt from setup.py is not possible since the project uses environment markers. For now we probably should keep requirements.txt to keep the safety checks as migrating to poetry changes the packaging and release workflows. (testing and development should be unaffected as |
f359d86
to
d5bea5e
Compare
I also was thinking if we would want to delete of |
d5bea5e
to
219a012
Compare
219a012
to
6b0308b
Compare
6b0308b
to
65550c6
Compare
e66706e
to
c3ff9ba
Compare
Code coverage on codecov seems to be unaffected by parallellizing the tests, compared to #961 (comment) |
remove test-requirements.txt stop depending on requirements.txt use python setup.py instead of ./setup.py whenever possible Use PEP518 to automatically install setup dependencies Reduce usage of coverage in favour of pytest-cov
pip can do that work now
tweaked dependency installing simplified code for parallelizing tasks added distclean
c3ff9ba
to
cb48bec
Compare
I've simplified managing with python packaging, removing test-requirements.txt and removing the direct usage of setup.py for installing the package and dependencies: that can be handled through pip and PEP518.
I also think there is a case to remove requirements.txt as it is, since it does not list all the dependencies needed in the environment, nor they are locked.
Let me know your thoughts, especially about requirements.txt. I haven't deleted the file but there is no other piece of code that actually uses it.