-
Notifications
You must be signed in to change notification settings - Fork 35
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
setuptools-built source distributions not including tests #89
Comments
Thanks for this. In many packages we have a |
Solved, see diffpy/diffpy.pdfgui#169 |
@Tieqiong. I wanted to confirm that the behavior with Furthermore, I believe it is another source of conda-forge recipe CI failing when
|
@bobleesj I don't know how the feedstock work, but for
so we are not including This's also related to another discussion with Simon about what exactly we want to test, also implied by one of Simon's responds in conda-forge/diffpy.structure-feedstock#16. I will record the discussion somewhere in the cookiecutter repo so you can look at it if you want. Billingegroup/scikit-package#113 In term of the conda-forge test not working, is it possible to directly lint the test code in the original repo, or copy the tests there and run them separately? |
Q. Why don't we include test files in If test files are not included in the I checked the
References:
So based on the case studies above, perhaps, we have one more audience type besides the end-users, us, the maintainers. @sbillinge Please advise adding test files to |
Ok, it seems it can go either way. It probably doesn't matter that much. |
I'm working on
diffpy.pdfgui
and it run tests on its diffpy dependencies. It worked fine when I installed 3.1.0 from Condaforge but if I installdiffpy.structure==3.2.0
using pip it gives errors on not findingdiffpy.structure.tests
.I checked the released files of 3.2.0 from Github. In
diffpy.structure.egg-info/SOURCES.txt
there's nosrc/diffpy/structure/tests
or any subdirectory listed. I compared it with the egg-info SOURCES fromdiffpy.structure==3.1.0
on pypi and there indeed exists tests directory files.I also looked at the other packages we released during summer. For
diffpy.utils
anddiffpy.pdffit2
(1.4.3 during Jan, so not exactly this summer) there exists tests inSOURCES.txt
and I can import them properly. Fordiffpy.pdfmorph
anddiffpy.labpdfproc
there's no tests inSOURCES.txt
and I can't import them.@sbillinge So I guess this indicate for some of the releases setuptools is not discovering all of the files as part of the project’s source. This might be OK because tests dir is not part of the functional side of the package, but it's causing issue for
diffpy.pdfgui
as it struggles to run tests on its dependencies.The text was updated successfully, but these errors were encountered: