siphashc 2.6__tar.gz → 2.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,12 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ 2.7
5
+ ---
6
+
7
+ * Packaging cleanups and improvements.
8
+ * Binary wheels now use ABI3.
9
+
4
10
  2.6
5
11
  ---
6
12
 
@@ -1,6 +1,8 @@
1
1
  include siphash/*.h
2
+ include siphash/README.md
2
3
  include test_siphashc.py
3
4
  include LICENSE.md
5
+ include SECURITY.md
4
6
  include README.rst
5
7
  include CHANGES.rst
6
8
  include pyproject.toml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: siphashc
3
- Version: 2.6
3
+ Version: 2.7
4
4
  Summary: Python module (in c) for siphash-2-4
5
5
  Author-email: Michal Čihař <michal@weblate.org>
6
6
  License-Expression: ISC
@@ -15,6 +15,11 @@ Classifier: Intended Audience :: Developers
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Programming Language :: Python
17
17
  Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
18
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
24
  Requires-Python: >=3.10
20
25
  Description-Content-Type: text/x-rst
@@ -0,0 +1,29 @@
1
+ <!--
2
+ Copyright © Michal Čihař <michal@weblate.org>
3
+
4
+ SPDX-License-Identifier: CC0-1.0
5
+
6
+ This file is maintained in https://github.com/WeblateOrg/meta/
7
+ -->
8
+
9
+ # Weblate security
10
+
11
+ The Weblate team takes security and related transparency very seriously.
12
+ We welcome any peer review of our 100% open-source code to ensure nobody's Weblate
13
+ is ever compromised or hacked.
14
+
15
+ If you think you have identified a security issue with a Weblate project, **do
16
+ not open a public issue**.
17
+
18
+ To responsibly report a security issue, please navigate to the Security tab for
19
+ the repository and click “Report a vulnerability”.
20
+
21
+ Be sure to include as much detail as necessary in your report. As with
22
+ reporting normal issues, a minimal reproducible example will help the
23
+ maintainers address the issue faster.
24
+
25
+ More information about practices for reporting and fixing security issues is
26
+ described in [our documentation][1]. This ensures all vulnerabilities are
27
+ solved securely, quickly, and transparently.
28
+
29
+ [1]: https://docs.weblate.org/en/latest/security/issues.html
@@ -24,6 +24,11 @@ classifiers = [
24
24
  "Operating System :: OS Independent",
25
25
  "Programming Language :: Python",
26
26
  "Programming Language :: Python :: 3",
27
+ "Programming Language :: Python :: 3.10",
28
+ "Programming Language :: Python :: 3.11",
29
+ "Programming Language :: Python :: 3.12",
30
+ "Programming Language :: Python :: 3.13",
31
+ "Programming Language :: Python :: 3.14",
27
32
  "Topic :: Software Development :: Libraries :: Python Modules"
28
33
  ]
29
34
  description = "Python module (in c) for siphash-2-4"
@@ -32,7 +37,7 @@ license = "ISC"
32
37
  license-files = ["LICENSE.md"]
33
38
  name = "siphashc"
34
39
  requires-python = ">=3.10"
35
- version = "2.6"
40
+ version = "2.7"
36
41
 
37
42
  [[project.authors]]
38
43
  email = "michal@weblate.org"
@@ -49,14 +54,31 @@ Homepage = "https://github.com/WeblateOrg/siphashc"
49
54
  "Source Code" = "https://github.com/WeblateOrg/siphashc"
50
55
  Twitter = "https://twitter.com/WeblateOrg"
51
56
 
57
+ [tool.check-manifest]
58
+ ignore = [
59
+ "*.yaml",
60
+ "*.yml",
61
+ "benchmark.py",
62
+ ".editorconfig"
63
+ ]
64
+
65
+ [tool.check-wheel-contents]
66
+ ignore = ["W009", "W010"]
67
+
52
68
  [tool.cibuildwheel]
53
69
  test-command = "pytest {project}/test_siphashc.py {project}/README.rst"
54
70
  test-requires = "pytest"
55
71
 
72
+ [tool.cibuildwheel.linux]
73
+ repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
74
+
56
75
  [tool.isort]
57
76
  profile = "black"
58
77
 
59
- [tool.ruff]
78
+ [tool.ruff.format]
79
+ docstring-code-format = true
80
+
81
+ [tool.ruff.lint]
60
82
  ignore = [
61
83
  "S101", # CONFIG: using pytest
62
84
  "D203", # CONFIG: incompatible with D211
@@ -64,17 +86,14 @@ ignore = [
64
86
  ]
65
87
  select = ["ALL"]
66
88
 
67
- [tool.ruff.format]
68
- docstring-code-format = true
69
-
70
89
  [tool.ruff.lint.isort]
71
90
  known-first-party = ["siphashc"]
72
91
  known-third-party = ["pytest"]
73
92
 
74
- [tool.ruff.mccabe]
93
+ [tool.ruff.lint.mccabe]
75
94
  max-complexity = 16
76
95
 
77
- [tool.ruff.per-file-ignores]
96
+ [tool.ruff.lint.per-file-ignores]
78
97
  "benchmark.py" = ["T201"]
79
98
 
80
99
  [tool.setuptools]
siphashc-2.7/setup.py ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env python
2
+ """Setup for the siphashc module."""
3
+
4
+ import sysconfig
5
+
6
+ from setuptools import Extension, setup
7
+
8
+ define_macros = [("Py_LIMITED_API", "0x030A0000")]
9
+ bdist_options = {"py_limited_api": "cp310"}
10
+
11
+ # Free-threaded Python is not compatible with ABI3, see
12
+ # https://github.com/python/cpython/issues/111506
13
+ if sysconfig.get_config_var("Py_GIL_DISABLED"):
14
+ define_macros = []
15
+ bdist_options = {}
16
+
17
+ setup(
18
+ ext_modules=[
19
+ Extension(
20
+ name="siphashc",
21
+ sources=["siphashc.c", "siphash/siphash.c"],
22
+ language="c",
23
+ define_macros=define_macros,
24
+ py_limited_api=True,
25
+ ),
26
+ ],
27
+ options={"bdist_wheel": bdist_options},
28
+ )
@@ -0,0 +1 @@
1
+ siphash from https://github.com/floodyberry/siphash
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: siphashc
3
- Version: 2.6
3
+ Version: 2.7
4
4
  Summary: Python module (in c) for siphash-2-4
5
5
  Author-email: Michal Čihař <michal@weblate.org>
6
6
  License-Expression: ISC
@@ -15,6 +15,11 @@ Classifier: Intended Audience :: Developers
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Programming Language :: Python
17
17
  Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
18
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
24
  Requires-Python: >=3.10
20
25
  Description-Content-Type: text/x-rst
@@ -2,10 +2,12 @@ CHANGES.rst
2
2
  LICENSE.md
3
3
  MANIFEST.in
4
4
  README.rst
5
+ SECURITY.md
5
6
  pyproject.toml
6
7
  setup.py
7
8
  siphashc.c
8
9
  test_siphashc.py
10
+ siphash/README.md
9
11
  siphash/siphash.c
10
12
  siphash/siphash.h
11
13
  siphash/siphash_impl.h
siphashc-2.6/setup.py DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env python
2
- """Setup for the siphashc module."""
3
-
4
- from setuptools import Extension, setup
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- name="siphashc",
10
- sources=["siphashc.c", "siphash/siphash.c"],
11
- language="c",
12
- ),
13
- ],
14
- )
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