Git Product home page Git Product logo

Comments (8)

konstin avatar konstin commented on September 24, 2024 1

The sdist url is directly referenced from PyPI so it could be easily found without manual intervention.

fwiw the github api provides a way to get the tarball of the latest release, and we also link the github url from pypi, so you might be able to get your automation this way: https://docs.github.com/de/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release

from maturin.

mgorny avatar mgorny commented on September 24, 2024 1

And why not using the github release .tar.gz source, for example https://github.com/PyO3/maturin/archive/refs/tags/v1.1.0.tar.gz? It contains all of the code.

Git doesn't guarantee that the generated archives will be stable. There have already been cases in the past when changes in git or one of its dependencies suddenly caused all archives to change and broke all downstream consumers via checksum mismatches.

from maturin.

messense avatar messense commented on September 24, 2024

tests are written in Rust, what downstream would run Rust tests for a Python sdist?

from maturin.

mtelka avatar mtelka commented on September 24, 2024

I'm packaging maturin for OpenIndiana and testing is something that could find incompatibilities either in the operating system or in the Python project. This is especially valuable for not so common platforms like OpenIndiana.

from maturin.

messense avatar messense commented on September 24, 2024

Thanks, I understand the benefits. I'm just not sure whether adding tests to sdist would work since it needs to be run by cargo test.

And why not using the github release .tar.gz source, for example https://github.com/PyO3/maturin/archive/refs/tags/v1.1.0.tar.gz? It contains all of the code.

from maturin.

mtelka avatar mtelka commented on September 24, 2024

Github tarball is possible too, but it creates a bit more maintenance work because there is no simple way how to find the tarball automatically. The sdist url is directly referenced from PyPI so it could be easily found without manual intervention.

BTW, if tests should be run using cargo test why there is noxfile.py file?

from maturin.

messense avatar messense commented on September 24, 2024

noxfile.py is only for automating some Emscripten stuff.

from maturin.

messense avatar messense commented on September 24, 2024

I'm going to close this because we don't have any tests written in Python to distribute, and I'm removing noxfile.py from sdist in #1679.

from maturin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.