cchecksum 0.2.9__tar.gz → 0.3.0__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.
Potentially problematic release.
This version of cchecksum might be problematic. Click here for more details.
- {cchecksum-0.2.9 → cchecksum-0.3.0}/.github/workflows/pytest.yaml +2 -2
- cchecksum-0.3.0/.github/workflows/release.yaml +194 -0
- cchecksum-0.3.0/PKG-INFO +21 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum/_checksum.c +7409 -7496
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum/_checksum.pyx +1 -0
- cchecksum-0.3.0/cchecksum.egg-info/PKG-INFO +21 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum.egg-info/requires.txt +3 -1
- {cchecksum-0.2.9 → cchecksum-0.3.0}/requirements.txt +1 -2
- {cchecksum-0.2.9 → cchecksum-0.3.0}/setup.py +6 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/test_checksum.py +53 -17
- cchecksum-0.2.9/.github/workflows/release.yaml +0 -28
- cchecksum-0.2.9/PKG-INFO +0 -21
- cchecksum-0.2.9/cchecksum.egg-info/PKG-INFO +0 -21
- {cchecksum-0.2.9 → cchecksum-0.3.0}/.github/workflows/black.yaml +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/.github/workflows/deploy-docs.yaml +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/.gitignore +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/LICENSE +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/Makefile +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/README.md +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum/__init__.py +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum/_checksum.pyi +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum/py.typed +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum.egg-info/SOURCES.txt +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum.egg-info/dependency_links.txt +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum.egg-info/not-zip-safe +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/cchecksum.egg-info/top_level.txt +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/Makefile +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/alabaster.css +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/basic.css +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/custom.css +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/doctools.js +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/documentation_options.js +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/file.png +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/language_data.js +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/minus.png +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/plus.png +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/pygments.css +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/searchtools.js +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/_build/html/_static/sphinx_highlight.js +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/conf.py +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/index.rst +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/docs/make.bat +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/pyproject.toml +0 -0
- {cchecksum-0.2.9 → cchecksum-0.3.0}/setup.cfg +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
name: Build and Publish Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build_wheels:
|
|
11
|
+
name: Build wheels using cibuildwheel
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
include:
|
|
17
|
+
# ----------------------------------------------------
|
|
18
|
+
# manylinux 64-bit
|
|
19
|
+
# ----------------------------------------------------
|
|
20
|
+
- os: ubuntu-latest
|
|
21
|
+
build_type: manylinux-x64
|
|
22
|
+
cibw_build: "*manylinux*"
|
|
23
|
+
cibw_archs_linux: x86_64
|
|
24
|
+
artifact_name: "wheels-ubuntu-latest-manylinux-x64"
|
|
25
|
+
|
|
26
|
+
# ----------------------------------------------------
|
|
27
|
+
# manylinux 32-bit
|
|
28
|
+
# ----------------------------------------------------
|
|
29
|
+
- os: ubuntu-latest
|
|
30
|
+
build_type: manylinux-x86
|
|
31
|
+
cibw_build: "*manylinux*"
|
|
32
|
+
cibw_archs_linux: i686
|
|
33
|
+
artifact_name: "wheels-ubuntu-latest-manylinux-x86"
|
|
34
|
+
|
|
35
|
+
# ----------------------------------------------------
|
|
36
|
+
# musllinux 64-bit
|
|
37
|
+
# ----------------------------------------------------
|
|
38
|
+
- os: ubuntu-latest
|
|
39
|
+
build_type: musllinux-x64
|
|
40
|
+
cibw_build: "*musllinux*"
|
|
41
|
+
cibw_archs_linux: x86_64
|
|
42
|
+
artifact_name: "wheels-ubuntu-latest-musllinux-x64"
|
|
43
|
+
|
|
44
|
+
# ----------------------------------------------------
|
|
45
|
+
# musllinux 32-bit
|
|
46
|
+
# ----------------------------------------------------
|
|
47
|
+
- os: ubuntu-latest
|
|
48
|
+
build_type: musllinux-x86
|
|
49
|
+
cibw_build: "*musllinux*"
|
|
50
|
+
cibw_archs_linux: i686
|
|
51
|
+
artifact_name: "wheels-ubuntu-latest-musllinux-x86"
|
|
52
|
+
|
|
53
|
+
# ----------------------------------------------------
|
|
54
|
+
# macOS (64-bit only)
|
|
55
|
+
# ----------------------------------------------------
|
|
56
|
+
- os: macos-latest
|
|
57
|
+
build_type: macos
|
|
58
|
+
cibw_build: ""
|
|
59
|
+
cibw_archs_linux: ""
|
|
60
|
+
artifact_name: "wheels-macos-latest"
|
|
61
|
+
|
|
62
|
+
# ----------------------------------------------------
|
|
63
|
+
# Windows 64-bit
|
|
64
|
+
# ----------------------------------------------------
|
|
65
|
+
- os: windows-latest
|
|
66
|
+
build_type: winx64
|
|
67
|
+
cibw_build: ""
|
|
68
|
+
cibw_archs_windows: AMD64
|
|
69
|
+
artifact_name: "wheels-windows-latest-x64"
|
|
70
|
+
|
|
71
|
+
# ----------------------------------------------------
|
|
72
|
+
# Windows 32-bit
|
|
73
|
+
# ----------------------------------------------------
|
|
74
|
+
- os: windows-latest
|
|
75
|
+
build_type: winx86
|
|
76
|
+
cibw_build: ""
|
|
77
|
+
cibw_archs_windows: x86
|
|
78
|
+
artifact_name: "wheels-windows-latest-x86"
|
|
79
|
+
|
|
80
|
+
steps:
|
|
81
|
+
- name: Check out code
|
|
82
|
+
uses: actions/checkout@v3
|
|
83
|
+
with:
|
|
84
|
+
fetch-depth: 0
|
|
85
|
+
|
|
86
|
+
- name: Set up Python
|
|
87
|
+
uses: actions/setup-python@v4
|
|
88
|
+
with:
|
|
89
|
+
python-version: "3.11"
|
|
90
|
+
|
|
91
|
+
- name: Install cibuildwheel
|
|
92
|
+
run: python -m pip install --upgrade pip setuptools wheel cibuildwheel
|
|
93
|
+
|
|
94
|
+
- name: Build wheels
|
|
95
|
+
env:
|
|
96
|
+
# On Linux: manylinux / musllinux arches
|
|
97
|
+
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux || '' }}
|
|
98
|
+
# On Windows: AMD64 / x86
|
|
99
|
+
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_archs_windows || '' }}
|
|
100
|
+
# Which wheels to build for Linux (manylinux vs. musllinux)
|
|
101
|
+
CIBW_BUILD: ${{ matrix.cibw_build || '' }}
|
|
102
|
+
run: python -m cibuildwheel --output-dir wheelhouse
|
|
103
|
+
|
|
104
|
+
- name: Upload wheels
|
|
105
|
+
uses: actions/upload-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
name: ${{ matrix.artifact_name }}
|
|
108
|
+
path: wheelhouse/*.whl
|
|
109
|
+
|
|
110
|
+
publish_sdist_and_wheels:
|
|
111
|
+
name: Publish wheels to PyPI
|
|
112
|
+
needs: build_wheels
|
|
113
|
+
runs-on: ubuntu-latest
|
|
114
|
+
steps:
|
|
115
|
+
- name: Check out code
|
|
116
|
+
uses: actions/checkout@v3
|
|
117
|
+
with:
|
|
118
|
+
fetch-depth: 0
|
|
119
|
+
|
|
120
|
+
- name: Set up Python
|
|
121
|
+
uses: actions/setup-python@v4
|
|
122
|
+
with:
|
|
123
|
+
python-version: "3.11"
|
|
124
|
+
|
|
125
|
+
- name: Install dependencies
|
|
126
|
+
run: |
|
|
127
|
+
python -m pip install --upgrade pip
|
|
128
|
+
pip install setuptools wheel twine cython
|
|
129
|
+
|
|
130
|
+
- name: Build sdist
|
|
131
|
+
run: python setup.py sdist
|
|
132
|
+
|
|
133
|
+
# ----------------------------------------------------
|
|
134
|
+
# Download wheels built on each runner
|
|
135
|
+
# ----------------------------------------------------
|
|
136
|
+
- name: Download manylinux 64-bit wheels
|
|
137
|
+
uses: actions/download-artifact@v4
|
|
138
|
+
with:
|
|
139
|
+
name: "wheels-ubuntu-latest-manylinux-x64"
|
|
140
|
+
path: wheelhouse/linux-many-x64
|
|
141
|
+
|
|
142
|
+
- name: Download manylinux 32-bit wheels
|
|
143
|
+
uses: actions/download-artifact@v4
|
|
144
|
+
with:
|
|
145
|
+
name: "wheels-ubuntu-latest-manylinux-x86"
|
|
146
|
+
path: wheelhouse/linux-many-x86
|
|
147
|
+
|
|
148
|
+
- name: Download musllinux 64-bit wheels
|
|
149
|
+
uses: actions/download-artifact@v4
|
|
150
|
+
with:
|
|
151
|
+
name: "wheels-ubuntu-latest-musllinux-x64"
|
|
152
|
+
path: wheelhouse/linux-musl-x64
|
|
153
|
+
|
|
154
|
+
- name: Download musllinux 32-bit wheels
|
|
155
|
+
uses: actions/download-artifact@v4
|
|
156
|
+
with:
|
|
157
|
+
name: "wheels-ubuntu-latest-musllinux-x86"
|
|
158
|
+
path: wheelhouse/linux-musl-x86
|
|
159
|
+
|
|
160
|
+
- name: Download macOS wheels
|
|
161
|
+
uses: actions/download-artifact@v4
|
|
162
|
+
with:
|
|
163
|
+
name: "wheels-macos-latest"
|
|
164
|
+
path: wheelhouse/macos
|
|
165
|
+
|
|
166
|
+
- name: Download Windows 64-bit wheels
|
|
167
|
+
uses: actions/download-artifact@v4
|
|
168
|
+
with:
|
|
169
|
+
name: "wheels-windows-latest-x64"
|
|
170
|
+
path: wheelhouse/windows-x64
|
|
171
|
+
|
|
172
|
+
- name: Download Windows 32-bit wheels
|
|
173
|
+
uses: actions/download-artifact@v4
|
|
174
|
+
with:
|
|
175
|
+
name: "wheels-windows-latest-x86"
|
|
176
|
+
path: wheelhouse/windows-x86
|
|
177
|
+
|
|
178
|
+
# ----------------------------------------------------
|
|
179
|
+
# Publish all built artifacts to PyPI
|
|
180
|
+
# ----------------------------------------------------
|
|
181
|
+
- name: Publish sdist and wheels to PyPI
|
|
182
|
+
env:
|
|
183
|
+
TWINE_USERNAME: __token__
|
|
184
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
185
|
+
run: |
|
|
186
|
+
twine upload \
|
|
187
|
+
dist/* \
|
|
188
|
+
wheelhouse/linux-many-x64/*.whl \
|
|
189
|
+
wheelhouse/linux-many-x86/*.whl \
|
|
190
|
+
wheelhouse/linux-musl-x64/*.whl \
|
|
191
|
+
wheelhouse/linux-musl-x86/*.whl \
|
|
192
|
+
wheelhouse/macos/*.whl \
|
|
193
|
+
wheelhouse/windows-x64/*.whl \
|
|
194
|
+
wheelhouse/windows-x86/*.whl
|
cchecksum-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cchecksum
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: A ~8x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C.
|
|
5
|
+
Home-page: https://github.com/BobTheBuidler/cchecksum
|
|
6
|
+
Author: BobTheBuidler
|
|
7
|
+
Author-email: bobthebuidlerdefi@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.8,<4
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
|
|
13
|
+
## CChecksum
|
|
14
|
+
|
|
15
|
+
CChecksum is a ~8x faster drop-in replacement for eth_utils.to_checksum_address, with the most cpu-intensive part implemented in c.
|
|
16
|
+
|
|
17
|
+
It keeps the exact same API as the existing implementation, exceptions and all.
|
|
18
|
+
|
|
19
|
+
Just `pip install cchecksum`, drop it in, and run your script with a substantial speed improvement.
|
|
20
|
+
|
|
21
|
+

|