Skip to content

sdist is missing tests #798

Closed
Closed

Description

@mtelka

The sdist package version 0.18.0 at PyPI is missing tests. This is regression from version 0.17.3. Please add tests back to sdist. Thank you.

Activity

  1. karpetrosyan commented on Sep 11, 2023

    @karpetrosyan
    Contributor

    @mtelka Would you like to issue a PR resolving this?

  2. lovelydinosaur commented on Sep 11, 2023

    @lovelydinosaur
    Member

    This is regression from version 0.17.3.

    How can I observe that this is a regression?

  3. karpetrosyan commented on Sep 11, 2023

    @karpetrosyan
    Contributor

    This is regression from version 0.17.3.

    How can I observe that this is a regression?

    This issue comes from #752. In 0.17.3 we have tests in sdist.

  4. mtelka commented on Sep 11, 2023

    @mtelka
    Author

    This is regression from version 0.17.3.

    How can I observe that this is a regression?

    $ for v in 0.17.3 0.18.0 ; do
        wget --quiet https://pypi.io/packages/source/h/httpcore/httpcore-$v.tar.gz
        tar xf httpcore-$v.tar.gz
        [ -d httpcore-$v/tests ] && echo "$v: tests in sdist" || echo "$v: tests are missing"
    done
    0.17.3: tests in sdist
    0.18.0: tests are missing
    $
    
  5. mtelka commented on Sep 11, 2023

    @mtelka
    Author

    @mtelka Would you like to issue a PR resolving this?

    Sorry, no. ENOTIME.

  6. mtelka commented on Sep 11, 2023

    @mtelka
    Author

    It would be also great to include requirements.txt in sdist so we can automatically detect testing dependencies before we start tests.

    Also, would you mind to add minimal tox.ini? Something similar to this one?

    Thank you.

  7. lovelydinosaur commented on Sep 11, 2023

    @lovelydinosaur
    Member

    I've closed this issue due to lack of respect.

  8. lovelydinosaur commented on Sep 12, 2023

    @lovelydinosaur
    Member

    My response was unnecessarily brusque, here's what I could have said;

    Following an "Sorry, no. ENOTIME." immediately with further requests for us to change our tooling is going to ellict a non-constructive response from me. It's disrespectful to the time & effort our team put into this project.


    Getting back onto a collaborative track...

    If you'd like to request either of those two tooling changes, I'd suggest opening a separate discussion for them.

  9. mtelka commented on Sep 12, 2023

    @mtelka
    Author

    Okay, @tomchristie you are right. Sorry for that. With ENOTIME I meant that there are a lot of build backends (hatch, poetry, flit, setuptools, ...) in the wild and all of them use a bit different way how to add things to sdist. Sometimes it is via MANIFEST.in, sometimes using some config setup in pyproject.toml, etc.

    The actual (default) content of sdist even depends on tool versions used to create sdist. For example I faced a case when a project used some older version of build to create their sdists and so there were some file(s) missing in sdist. When I tried to create sdist for such a project using the latest version of build the sdist was complete. So the proper way how to fix missing file in sdist was just to upgrade build on the project's side (no code change was needed), IIRC. Or the difference was caused by some other tool in the chain? I do not remember :-).

    This is something that is far better handled by developers of the project. It is usually trivial one-line change. The only problem is to find where the change needs to be done. A random bystander like me would need to spend far more time to find proper place for such a change than project developer. Thanks @karosis88 for the PR!

    Again, I'm sorry for misunderstanding.

    OTOH, now when I see how you are going to add tests to sdist I know how to deal with this stuff for httpcore, so I can create PR with either tox.ini or requirements.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions