Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Oct 30, 2024
1 parent 88f96bb commit a748cba
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 52 deletions.
83 changes: 35 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ edition = "2021"

[dependencies]
taplo = { version = "0.13.2" } # formatter
pep508_rs = { version = "0.6.1" }
pep440_rs = { version = "0.6.5" } # align up with pep508_rs for now https://github.com/konstin/pep508_rs/issues/19
pep508_rs = { version = "0.8.1" }

[dev-dependencies]
rstest = { version = "0.23.0" } # parametrized tests
Expand Down
3 changes: 2 additions & 1 deletion common/src/pep508.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::fmt::Write;
use std::str::FromStr;

use pep508_rs::pep440_rs::Operator::TildeEqual;
use pep508_rs::{MarkerTree, Requirement, VersionOrUrl};

pub fn format_requirement(value: &str, keep_full_version: bool) -> String {
Expand All @@ -23,7 +24,7 @@ pub fn format_requirement(value: &str, keep_full_version: bool) -> String {
let extra_count = v.len() - 1;
for (at, spec) in v.iter().enumerate() {
let mut spec_repr = format!("{spec}");
if !keep_full_version && spec.operator() != &pep440_rs::Operator::TildeEqual {
if !keep_full_version && spec.operator() != &TildeEqual {
loop {
let propose = spec_repr.strip_suffix(".0");
if propose.is_none() {
Expand Down
2 changes: 1 addition & 1 deletion pyproject-fmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crate-type = ["cdylib"]

[dependencies]
common = {path = "../common" }
regex = { version = "1.11.0" }
regex = { version = "1.11.1" }
pyo3 = { version = "0.22.5", features = ["abi3-py38"] } # integration with Python
lexical-sort = { version = "0.3.1" }

Expand Down

0 comments on commit a748cba

Please sign in to comment.