Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Dec 11, 2023
1 parent a8303b0 commit 821b9bb
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 234 deletions.
101 changes: 42 additions & 59 deletions Cargo.lock

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

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pep440_rs"
version = "0.3.12"
version = "0.4.0"
description = "A library for python version numbers and specifiers, implementing PEP 440"
edition = "2021"
include = ["/src", "Changelog.md", "License-Apache", "License-BSD", "Readme.md", "pyproject.toml"]
Expand All @@ -14,12 +14,12 @@ name = "pep440_rs"
crate-type = ["rlib", "cdylib"]

[dependencies]
lazy_static = "1.4.0"
pyo3 = { version = "0.19", optional = true, features = ["extension-module", "abi3-py37"] }
regex = { version = "1.8.1", default-features = false, features = ["std", "perf", "unicode-case", "unicode-perl"] }
serde = { version = "1.0.162", features = ["derive"], optional = true }
tracing = { version = "0.1.37", optional = true }
unicode-width = "0.1.10"
once_cell = { version = "1.19.0" }
pyo3 = { version = "0.20.0", optional = true, features = ["extension-module", "abi3-py37"] }
regex = { version = "1.10.2" }
serde = { version = "1.0.193", features = ["derive"], optional = true }
tracing = { version = "0.1.40", optional = true }
unicode-width = { version = "0.1.11" }

[dev-dependencies]
indoc = "2.0.1"
indoc = "2.0.4"
22 changes: 17 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
## 0.4

* segments are now `u64` instead of `usize`. This ensures consistency between platforms and `u64` are required
when timestamps are used as patch versions (e.g., `20230628214621`, the ISO 8601 "basic format")
* Faster version comparison
* Added `VersionSpecifier::equals_version` constructor for `==<version>`
* Added `VersionSpecifier::any_prerelease`: Whether the version marker includes a prerelease
* Updated to pyo3 0.20
* once_cell instead of lazy_static

## 0.3.12

* Implement `FromPyObject` for `Version`
* Implement `FromPyObject` for `Version`

## 0.3.11

* CI fix
* CI fix

## 0.3.10

Expand Down Expand Up @@ -41,11 +51,13 @@

## 0.3.0

* Introduced a `PyVersion` wrapper specifically for the Python bindings to work around https://github.com/PyO3/pyo3/pull/2786
* Introduced a `PyVersion` wrapper specifically for the Python bindings to work
around https://github.com/PyO3/pyo3/pull/2786
* Added `VersionSpecifiers::contains`
* Added `Version::from_release`, a constructor for a version that is just a release such as `3.8`.

## 0.2.0

* Added `VersionSpecifiers`, a thin wrapper around `Vec<VersionSpecifier>` with a serde implementation. `VersionSpecifiers::from_str` is now preferred over `parse_version_specifiers`.
* Reexport rust function for python module
* Added `VersionSpecifiers`, a thin wrapper around `Vec<VersionSpecifier>` with a serde
implementation. `VersionSpecifiers::from_str` is now preferred over `parse_version_specifiers`.
* Reexport rust function for python module
2 changes: 0 additions & 2 deletions python/pep440_rs/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Generated by `stubgen -p pep440_rs`
from typing import Any, ClassVar


class Version:
dev: Any
epoch: Any
Expand All @@ -24,7 +23,6 @@ class Version:
def __lt__(self, other) -> Any: ...
def __ne__(self, other) -> Any: ...


class VersionSpecifier:
__hash__: ClassVar[None] = ...

Expand Down
Loading

0 comments on commit 821b9bb

Please sign in to comment.