fastbencode 0.3.5__tar.gz → 0.3.7__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.
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "fastbencode"
3
- version = "0.3.5"
3
+ version = "0.3.7"
4
4
  edition = "2021"
5
5
  authors = ["Jelmer Vernooij <jelmer@jelmer.uk>"]
6
6
  license = "Apache-2.0"
@@ -14,4 +14,4 @@ name = "fastbencode__bencode_rs"
14
14
  crate-type = ["cdylib"]
15
15
 
16
16
  [dependencies]
17
- pyo3 = { version = "0.25.1", features = ["extension-module"] }
17
+ pyo3 = { version = ">=0.25,<0.27", features = ["extension-module"] }
@@ -1,27 +1,27 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastbencode
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: Implementation of bencode with optional fast Rust extensions
5
5
  Maintainer-email: Breezy Developers <breezy-core@googlegroups.com>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/breezy-team/fastbencode
8
8
  Project-URL: GitHub, https://github.com/breezy-team/fastbencode
9
- Classifier: Programming Language :: Python :: 3.9
10
9
  Classifier: Programming Language :: Python :: 3.10
11
10
  Classifier: Programming Language :: Python :: 3.11
12
11
  Classifier: Programming Language :: Python :: 3.12
13
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
14
  Classifier: Programming Language :: Python :: Implementation :: CPython
15
15
  Classifier: Programming Language :: Python :: Implementation :: PyPy
16
16
  Classifier: Operating System :: POSIX
17
17
  Classifier: Operating System :: Microsoft :: Windows
18
- Requires-Python: >=3.9
18
+ Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: COPYING
21
21
  Provides-Extra: rust
22
22
  Requires-Dist: setuptools-rust>=1.0.0; extra == "rust"
23
23
  Provides-Extra: dev
24
- Requires-Dist: ruff==0.12.4; extra == "dev"
24
+ Requires-Dist: ruff==0.14.3; extra == "dev"
25
25
  Dynamic: license-file
26
26
 
27
27
  fastbencode
@@ -18,7 +18,7 @@
18
18
 
19
19
  from typing import Type
20
20
 
21
- __version__ = (0, 3, 5)
21
+ __version__ = (0, 3, 7)
22
22
 
23
23
 
24
24
  Bencached: Type
@@ -1,27 +1,27 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastbencode
3
- Version: 0.3.5
3
+ Version: 0.3.7
4
4
  Summary: Implementation of bencode with optional fast Rust extensions
5
5
  Maintainer-email: Breezy Developers <breezy-core@googlegroups.com>
6
6
  License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://github.com/breezy-team/fastbencode
8
8
  Project-URL: GitHub, https://github.com/breezy-team/fastbencode
9
- Classifier: Programming Language :: Python :: 3.9
10
9
  Classifier: Programming Language :: Python :: 3.10
11
10
  Classifier: Programming Language :: Python :: 3.11
12
11
  Classifier: Programming Language :: Python :: 3.12
13
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
14
  Classifier: Programming Language :: Python :: Implementation :: CPython
15
15
  Classifier: Programming Language :: Python :: Implementation :: PyPy
16
16
  Classifier: Operating System :: POSIX
17
17
  Classifier: Operating System :: Microsoft :: Windows
18
- Requires-Python: >=3.9
18
+ Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: COPYING
21
21
  Provides-Extra: rust
22
22
  Requires-Dist: setuptools-rust>=1.0.0; extra == "rust"
23
23
  Provides-Extra: dev
24
- Requires-Dist: ruff==0.12.4; extra == "dev"
24
+ Requires-Dist: ruff==0.14.3; extra == "dev"
25
25
  Dynamic: license-file
26
26
 
27
27
  fastbencode
@@ -1,6 +1,6 @@
1
1
 
2
2
  [dev]
3
- ruff==0.12.4
3
+ ruff==0.14.3
4
4
 
5
5
  [rust]
6
6
  setuptools-rust>=1.0.0
@@ -12,17 +12,17 @@ maintainers = [{name = "Breezy Developers", email = "breezy-core@googlegroups.co
12
12
  readme = "README.md"
13
13
  license = "Apache-2.0"
14
14
  classifiers = [
15
- "Programming Language :: Python :: 3.9",
16
15
  "Programming Language :: Python :: 3.10",
17
16
  "Programming Language :: Python :: 3.11",
18
17
  "Programming Language :: Python :: 3.12",
19
18
  "Programming Language :: Python :: 3.13",
19
+ "Programming Language :: Python :: 3.14",
20
20
  "Programming Language :: Python :: Implementation :: CPython",
21
21
  "Programming Language :: Python :: Implementation :: PyPy",
22
22
  "Operating System :: POSIX",
23
23
  "Operating System :: Microsoft :: Windows",
24
24
  ]
25
- requires-python = ">=3.9"
25
+ requires-python = ">=3.10"
26
26
  dynamic = ["version"]
27
27
  dependencies = []
28
28
 
@@ -33,7 +33,7 @@ GitHub = "https://github.com/breezy-team/fastbencode"
33
33
  [project.optional-dependencies]
34
34
  rust = ["setuptools-rust>=1.0.0"]
35
35
  dev = [
36
- "ruff==0.12.4"
36
+ "ruff==0.14.3"
37
37
  ]
38
38
 
39
39
  [tool.setuptools]
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/python3
2
2
 
3
- import sys
4
3
 
5
4
  from setuptools import setup
6
5
  from setuptools_rust import Binding, RustExtension
@@ -11,7 +10,7 @@ setup(
11
10
  "fastbencode._bencode_rs",
12
11
  binding=Binding.PyO3,
13
12
  py_limited_api=False,
14
- optional=sys.platform == "win32",
13
+ optional=True,
15
14
  )
16
15
  ],
17
16
  )
@@ -411,14 +411,14 @@ fn bdecode_utf8<'py>(py: Python<'py>, s: &Bound<PyBytes>) -> PyResult<Bound<'py,
411
411
  }
412
412
 
413
413
  #[pyfunction]
414
- fn bencode(py: Python, x: Bound<PyAny>) -> PyResult<PyObject> {
414
+ fn bencode(py: Python, x: Bound<PyAny>) -> PyResult<Py<PyAny>> {
415
415
  let mut encoder = Encoder::new(None, None);
416
416
  encoder.process(py, x)?;
417
417
  Ok(encoder.to_bytes(py).into())
418
418
  }
419
419
 
420
420
  #[pyfunction]
421
- fn bencode_utf8(py: Python, x: Bound<PyAny>) -> PyResult<PyObject> {
421
+ fn bencode_utf8(py: Python, x: Bound<PyAny>) -> PyResult<Py<PyAny>> {
422
422
  let mut encoder = Encoder::new(None, Some("utf-8".to_string()));
423
423
  encoder.process(py, x)?;
424
424
  Ok(encoder.to_bytes(py).into())
File without changes
File without changes
File without changes
File without changes