Comments (8)
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.
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.
tests are written in Rust, what downstream would run Rust tests for a Python sdist?
from maturin.
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.
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.
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.
noxfile.py
is only for automating some Emscripten stuff.
from maturin.
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)
- ARM64 MacOS (aarch64) wheels include non-zero minor version, which doesn't match pypa publishing HOT 3
- Option to bypass the check of __init__.py HOT 1
- Support type stubs for submodules HOT 2
- Caused by: Cargo didn't build a cdylib HOT 3
- Maturin can't build in manylinux container HOT 3
- Having newlines in the dependency list leads to invalid `sdist` directory. HOT 2
- Username and password flags are ignored in non-interactive mode HOT 2
- maturin >= 1.2.1 fails to build workspace dependencies HOT 3
- Adding support for iOS HOT 18
- Trying to publish sdist only HOT 3
- Fails with "unsupported Python interpreter" HOT 8
- Improve self including check for sdist
- maturin fails if sitecustomize / usercustomize print to stdout HOT 3
- `maturin develop` requires pip to be available HOT 2
- Hash table capacity overflow on x86_64 FreeBSD HOT 10
- Add dynamic = ["version"] to pyproject.toml
- Add support for jenkins as CI provider HOT 5
- macOS: incorrect wheel names HOT 2
- Generated source distribution does not handle aliased dependencies correctly HOT 5
- Cannot find the Python interpreter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maturin.