siphashc 2.5__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,18 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ 2.7
5
+ ---
6
+
7
+ * Packaging cleanups and improvements.
8
+ * Binary wheels now use ABI3.
9
+
10
+ 2.6
11
+ ---
12
+
13
+ * Dropped support for Python 3.8 and 3.9.
14
+ * Python 3.14 compatiblity.
15
+
4
16
  2.5
5
17
  ---
6
18
 
@@ -2,7 +2,7 @@ Copyright (c) 2013 Eli Janssen
2
2
 
3
3
  Copyright (c) 2014 Carlo Pires (python3 support)
4
4
 
5
- Copyright © 2017–2023 Michal Čihař (additional cleanups)
5
+ Copyright © 2017–2025 Michal Čihař (additional cleanups)
6
6
 
7
7
  Permission to use, copy, modify, and/or distribute this software for any
8
8
  purpose with or without fee is hereby granted, provided that the above
@@ -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,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: siphashc
3
- Version: 2.5
3
+ Version: 2.7
4
4
  Summary: Python module (in c) for siphash-2-4
5
- Author-email: Michal Čihař <michal@cihar.com>
6
- License: ISC
5
+ Author-email: Michal Čihař <michal@weblate.org>
6
+ License-Expression: ISC
7
7
  Project-URL: Funding, https://weblate.org/donate/
8
8
  Project-URL: Homepage, https://github.com/WeblateOrg/siphashc
9
9
  Project-URL: Issue Tracker, https://github.com/WeblateOrg/siphashc/issues
@@ -15,13 +15,16 @@ 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
- Classifier: License :: OSI Approved :: ISC License (ISCL)
20
- Requires-Python: >=3.8
24
+ Requires-Python: >=3.10
21
25
  Description-Content-Type: text/x-rst
22
26
  License-File: LICENSE.md
23
- Provides-Extra: test
24
- Requires-Dist: pytest; extra == "test"
27
+ Dynamic: license-file
25
28
 
26
29
  .. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
27
30
  :alt: Weblate
@@ -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
@@ -1,6 +1,21 @@
1
1
  [build-system]
2
2
  build-backend = "setuptools.build_meta"
3
- requires = ["setuptools>=61.2"]
3
+ requires = ["setuptools>=78.0.2"]
4
+
5
+ [dependency-groups]
6
+ dev = [
7
+ {include-group = "lint"},
8
+ {include-group = "test"}
9
+ ]
10
+ lint = [
11
+ {include-group = "pre-commit"}
12
+ ]
13
+ pre-commit = [
14
+ "pre-commit==4.3.0"
15
+ ]
16
+ test = [
17
+ "pytest==8.4.2"
18
+ ]
4
19
 
5
20
  [project]
6
21
  classifiers = [
@@ -9,25 +24,25 @@ classifiers = [
9
24
  "Operating System :: OS Independent",
10
25
  "Programming Language :: Python",
11
26
  "Programming Language :: Python :: 3",
12
- "Topic :: Software Development :: Libraries :: Python Modules",
13
- "License :: OSI Approved :: ISC License (ISCL)"
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",
32
+ "Topic :: Software Development :: Libraries :: Python Modules"
14
33
  ]
15
34
  description = "Python module (in c) for siphash-2-4"
16
35
  keywords = ["siphash", "siphash-2-4"]
36
+ license = "ISC"
37
+ license-files = ["LICENSE.md"]
17
38
  name = "siphashc"
18
- requires-python = ">=3.8"
19
- version = "2.5"
39
+ requires-python = ">=3.10"
40
+ version = "2.7"
20
41
 
21
42
  [[project.authors]]
22
- email = "michal@cihar.com"
43
+ email = "michal@weblate.org"
23
44
  name = "Michal Čihař"
24
45
 
25
- [project.license]
26
- text = "ISC"
27
-
28
- [project.optional-dependencies]
29
- test = ["pytest"]
30
-
31
46
  [project.readme]
32
47
  content-type = "text/x-rst"
33
48
  file = "README.rst"
@@ -39,14 +54,31 @@ Homepage = "https://github.com/WeblateOrg/siphashc"
39
54
  "Source Code" = "https://github.com/WeblateOrg/siphashc"
40
55
  Twitter = "https://twitter.com/WeblateOrg"
41
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
+
42
68
  [tool.cibuildwheel]
43
69
  test-command = "pytest {project}/test_siphashc.py {project}/README.rst"
44
- test-extras = "test"
70
+ test-requires = "pytest"
71
+
72
+ [tool.cibuildwheel.linux]
73
+ repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
45
74
 
46
75
  [tool.isort]
47
76
  profile = "black"
48
77
 
49
- [tool.ruff]
78
+ [tool.ruff.format]
79
+ docstring-code-format = true
80
+
81
+ [tool.ruff.lint]
50
82
  ignore = [
51
83
  "S101", # CONFIG: using pytest
52
84
  "D203", # CONFIG: incompatible with D211
@@ -58,10 +90,10 @@ select = ["ALL"]
58
90
  known-first-party = ["siphashc"]
59
91
  known-third-party = ["pytest"]
60
92
 
61
- [tool.ruff.mccabe]
93
+ [tool.ruff.lint.mccabe]
62
94
  max-complexity = 16
63
95
 
64
- [tool.ruff.per-file-ignores]
96
+ [tool.ruff.lint.per-file-ignores]
65
97
  "benchmark.py" = ["T201"]
66
98
 
67
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,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: siphashc
3
- Version: 2.5
3
+ Version: 2.7
4
4
  Summary: Python module (in c) for siphash-2-4
5
- Author-email: Michal Čihař <michal@cihar.com>
6
- License: ISC
5
+ Author-email: Michal Čihař <michal@weblate.org>
6
+ License-Expression: ISC
7
7
  Project-URL: Funding, https://weblate.org/donate/
8
8
  Project-URL: Homepage, https://github.com/WeblateOrg/siphashc
9
9
  Project-URL: Issue Tracker, https://github.com/WeblateOrg/siphashc/issues
@@ -15,13 +15,16 @@ 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
- Classifier: License :: OSI Approved :: ISC License (ISCL)
20
- Requires-Python: >=3.8
24
+ Requires-Python: >=3.10
21
25
  Description-Content-Type: text/x-rst
22
26
  License-File: LICENSE.md
23
- Provides-Extra: test
24
- Requires-Dist: pytest; extra == "test"
27
+ Dynamic: license-file
25
28
 
26
29
  .. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
27
30
  :alt: Weblate
@@ -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
@@ -14,6 +16,5 @@ siphashc/py.typed
14
16
  siphashc.egg-info/PKG-INFO
15
17
  siphashc.egg-info/SOURCES.txt
16
18
  siphashc.egg-info/dependency_links.txt
17
- siphashc.egg-info/requires.txt
18
19
  siphashc.egg-info/top_level.txt
19
20
  siphashc.egg-info/zip-safe
siphashc-2.5/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
- )
@@ -1,3 +0,0 @@
1
-
2
- [test]
3
- pytest
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