maturin 1.7.2__tar.gz → 1.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of maturin might be problematic. Click here for more details.

Files changed (59) hide show
  1. {maturin-1.7.2 → maturin-1.7.3}/Cargo.lock +1 -1
  2. {maturin-1.7.2 → maturin-1.7.3}/Cargo.toml +1 -1
  3. {maturin-1.7.2 → maturin-1.7.3}/Changelog.md +6 -1
  4. {maturin-1.7.2 → maturin-1.7.3}/PKG-INFO +1 -1
  5. {maturin-1.7.2 → maturin-1.7.3}/src/upload.rs +21 -8
  6. {maturin-1.7.2 → maturin-1.7.3}/.cirrus.yml +0 -0
  7. {maturin-1.7.2 → maturin-1.7.3}/.codespellrc +0 -0
  8. {maturin-1.7.2 → maturin-1.7.3}/.config/nextest.toml +0 -0
  9. {maturin-1.7.2 → maturin-1.7.3}/.gitignore +0 -0
  10. {maturin-1.7.2 → maturin-1.7.3}/.pre-commit-config.yaml +0 -0
  11. {maturin-1.7.2 → maturin-1.7.3}/MANIFEST.in +0 -0
  12. {maturin-1.7.2 → maturin-1.7.3}/README.md +0 -0
  13. {maturin-1.7.2 → maturin-1.7.3}/clippy.toml +0 -0
  14. {maturin-1.7.2 → maturin-1.7.3}/license-apache +0 -0
  15. {maturin-1.7.2 → maturin-1.7.3}/license-mit +0 -0
  16. {maturin-1.7.2 → maturin-1.7.3}/maturin/__init__.py +0 -0
  17. {maturin-1.7.2 → maturin-1.7.3}/maturin/__main__.py +0 -0
  18. {maturin-1.7.2 → maturin-1.7.3}/maturin.schema.json +0 -0
  19. {maturin-1.7.2 → maturin-1.7.3}/netlify.toml +0 -0
  20. {maturin-1.7.2 → maturin-1.7.3}/pyproject.toml +0 -0
  21. {maturin-1.7.2 → maturin-1.7.3}/setup.py +0 -0
  22. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/audit.rs +0 -0
  23. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/manylinux-policy.json +0 -0
  24. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/mod.rs +0 -0
  25. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/musllinux-policy.json +0 -0
  26. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/musllinux.rs +0 -0
  27. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/patchelf.rs +0 -0
  28. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/platform_tag.rs +0 -0
  29. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/policy.rs +0 -0
  30. {maturin-1.7.2 → maturin-1.7.3}/src/auditwheel/repair.rs +0 -0
  31. {maturin-1.7.2 → maturin-1.7.3}/src/build_context.rs +0 -0
  32. {maturin-1.7.2 → maturin-1.7.3}/src/build_options.rs +0 -0
  33. {maturin-1.7.2 → maturin-1.7.3}/src/cargo_toml.rs +0 -0
  34. {maturin-1.7.2 → maturin-1.7.3}/src/ci.rs +0 -0
  35. {maturin-1.7.2 → maturin-1.7.3}/src/compile.rs +0 -0
  36. {maturin-1.7.2 → maturin-1.7.3}/src/cross_compile.rs +0 -0
  37. {maturin-1.7.2 → maturin-1.7.3}/src/develop.rs +0 -0
  38. {maturin-1.7.2 → maturin-1.7.3}/src/generate_json_schema.rs +0 -0
  39. {maturin-1.7.2 → maturin-1.7.3}/src/lib.rs +0 -0
  40. {maturin-1.7.2 → maturin-1.7.3}/src/main.rs +0 -0
  41. {maturin-1.7.2 → maturin-1.7.3}/src/metadata.rs +0 -0
  42. {maturin-1.7.2 → maturin-1.7.3}/src/module_writer.rs +0 -0
  43. {maturin-1.7.2 → maturin-1.7.3}/src/new_project.rs +0 -0
  44. {maturin-1.7.2 → maturin-1.7.3}/src/project_layout.rs +0 -0
  45. {maturin-1.7.2 → maturin-1.7.3}/src/pyproject_toml.rs +0 -0
  46. {maturin-1.7.2 → maturin-1.7.3}/src/python_interpreter/config.rs +0 -0
  47. {maturin-1.7.2 → maturin-1.7.3}/src/python_interpreter/get_interpreter_metadata.py +0 -0
  48. {maturin-1.7.2 → maturin-1.7.3}/src/python_interpreter/mod.rs +0 -0
  49. {maturin-1.7.2 → maturin-1.7.3}/src/source_distribution.rs +0 -0
  50. {maturin-1.7.2 → maturin-1.7.3}/src/target.rs +0 -0
  51. {maturin-1.7.2 → maturin-1.7.3}/src/templates/.gitignore.j2 +0 -0
  52. {maturin-1.7.2 → maturin-1.7.3}/src/templates/Cargo.toml.j2 +0 -0
  53. {maturin-1.7.2 → maturin-1.7.3}/src/templates/__init__.py.j2 +0 -0
  54. {maturin-1.7.2 → maturin-1.7.3}/src/templates/build.rs.j2 +0 -0
  55. {maturin-1.7.2 → maturin-1.7.3}/src/templates/example.udl.j2 +0 -0
  56. {maturin-1.7.2 → maturin-1.7.3}/src/templates/lib.rs.j2 +0 -0
  57. {maturin-1.7.2 → maturin-1.7.3}/src/templates/main.rs.j2 +0 -0
  58. {maturin-1.7.2 → maturin-1.7.3}/src/templates/pyproject.toml.j2 +0 -0
  59. {maturin-1.7.2 → maturin-1.7.3}/src/templates/test_all.py.j2 +0 -0
@@ -1200,7 +1200,7 @@ dependencies = [
1200
1200
 
1201
1201
  [[package]]
1202
1202
  name = "maturin"
1203
- version = "1.7.2"
1203
+ version = "1.7.3"
1204
1204
  dependencies = [
1205
1205
  "anyhow",
1206
1206
  "base64 0.21.7",
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  authors = ["konstin <konstin@mailbox.org>", "messense <messense@icloud.com>"]
3
3
  name = "maturin"
4
- version = "1.7.2"
4
+ version = "1.7.3"
5
5
  description = "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages"
6
6
  exclude = [
7
7
  "test-crates/**/*",
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.3]
4
+
5
+ * Fix upload regression to pypi/testpypi in [#2229](https://github.com/PyO3/maturin/pull/2229)
6
+
3
7
  ## [1.7.2]
4
8
 
5
9
  * Fix cross compilation issues for armv7l, mips64 and ppc in [#2204](https://github.com/PyO3/maturin/pull/2204)
@@ -983,7 +987,8 @@ points-0.1.0-py2.py3-none-manylinux1_x86_64.whl | 2,8M | 752K | 85K
983
987
 
984
988
  * Initial Release
985
989
 
986
- [Unreleased]: https://github.com/pyo3/maturin/compare/v1.7.2...HEAD
990
+ [Unreleased]: https://github.com/pyo3/maturin/compare/v1.7.3...HEAD
991
+ [1.7.3]: https://github.com/pyo3/maturin/compare/v1.7.2...v1.7.3
987
992
  [1.7.2]: https://github.com/pyo3/maturin/compare/v1.7.1...v1.7.2
988
993
  [1.7.1]: https://github.com/pyo3/maturin/compare/v1.7.0...v1.7.1
989
994
  [1.7.0]: https://github.com/pyo3/maturin/compare/v1.6.0...v1.7.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: maturin
3
- Version: 1.7.2
3
+ Version: 1.7.3
4
4
  Classifier: Topic :: Software Development :: Build Tools
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -59,6 +59,7 @@ pub struct PublishOpt {
59
59
  }
60
60
 
61
61
  impl PublishOpt {
62
+ // Here we omit trailing slashes from the repository URL, which we'll add back in `complete_registry`
62
63
  const DEFAULT_REPOSITORY_URL: &'static str = "https://upload.pypi.org/legacy";
63
64
  const TEST_REPOSITORY_URL: &'static str = "https://test.pypi.org/legacy";
64
65
 
@@ -317,20 +318,32 @@ fn complete_registry(opt: &PublishOpt) -> Result<Registry> {
317
318
  let (registry_name, registry_url) = if let Some(repository_url) = opt.repository_url.as_deref()
318
319
  {
319
320
  // to normalize URLs by removing trailing slashes
320
- let name = match repository_url.trim_end_matches('/') {
321
- PublishOpt::DEFAULT_REPOSITORY_URL => Some("pypi"),
322
- PublishOpt::TEST_REPOSITORY_URL => Some("testpypi"),
323
- _ => None,
324
- };
325
- (name, repository_url.to_string())
321
+ match repository_url.trim_end_matches('/') {
322
+ PublishOpt::DEFAULT_REPOSITORY_URL => (
323
+ Some("pypi"),
324
+ // Add trailing slash back
325
+ format!("{}/", PublishOpt::DEFAULT_REPOSITORY_URL),
326
+ ),
327
+ PublishOpt::TEST_REPOSITORY_URL => (
328
+ Some("testpypi"),
329
+ // Add trailing slash back
330
+ format!("{}/", PublishOpt::TEST_REPOSITORY_URL),
331
+ ),
332
+ _ => (None, repository_url.to_string()),
333
+ }
326
334
  } else if let Some(url) = pypirc.get(&opt.repository, "repository") {
327
335
  (Some(opt.repository.as_str()), url)
328
336
  } else if opt.repository == "pypi" {
329
- (Some("pypi"), PublishOpt::DEFAULT_REPOSITORY_URL.to_string())
337
+ (
338
+ Some("pypi"),
339
+ // Add trailing slash back
340
+ format!("{}/", PublishOpt::DEFAULT_REPOSITORY_URL),
341
+ )
330
342
  } else if opt.repository == "testpypi" {
331
343
  (
332
344
  Some("testpypi"),
333
- PublishOpt::TEST_REPOSITORY_URL.to_string(),
345
+ // Add trailing slash back
346
+ format!("{}/", PublishOpt::TEST_REPOSITORY_URL),
334
347
  )
335
348
  } else {
336
349
  bail!(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes