cchecksum 0.0.1__tar.gz → 0.0.2__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.0.2/.github/workflows/black.yaml +45 -0
- cchecksum-0.0.2/.github/workflows/deploy-docs.yaml +64 -0
- cchecksum-0.0.2/.github/workflows/pytest.yaml +51 -0
- cchecksum-0.0.2/.github/workflows/release.yaml +28 -0
- cchecksum-0.0.2/.gitignore +9 -0
- cchecksum-0.0.2/Makefile +8 -0
- cchecksum-0.0.2/PKG-INFO +12 -0
- cchecksum-0.0.2/README.md +5 -0
- {cchecksum-0.0.1 → cchecksum-0.0.2}/cchecksum/__init__.py +2 -1
- {cchecksum-0.0.1 → cchecksum-0.0.2}/cchecksum/_cchecksum.pyi +2 -2
- cchecksum-0.0.2/cchecksum/_checksum.c +28113 -0
- cchecksum-0.0.2/cchecksum.egg-info/PKG-INFO +12 -0
- cchecksum-0.0.2/cchecksum.egg-info/SOURCES.txt +39 -0
- cchecksum-0.0.2/cchecksum.egg-info/dependency_links.txt +1 -0
- cchecksum-0.0.2/cchecksum.egg-info/not-zip-safe +1 -0
- cchecksum-0.0.2/cchecksum.egg-info/requires.txt +5 -0
- cchecksum-0.0.2/cchecksum.egg-info/top_level.txt +1 -0
- cchecksum-0.0.2/docs/Makefile +20 -0
- cchecksum-0.0.2/docs/_build/html/_static/alabaster.css +703 -0
- cchecksum-0.0.2/docs/_build/html/_static/basic.css +921 -0
- cchecksum-0.0.2/docs/_build/html/_static/custom.css +1 -0
- cchecksum-0.0.2/docs/_build/html/_static/doctools.js +156 -0
- cchecksum-0.0.2/docs/_build/html/_static/documentation_options.js +14 -0
- cchecksum-0.0.2/docs/_build/html/_static/file.png +0 -0
- cchecksum-0.0.2/docs/_build/html/_static/language_data.js +199 -0
- cchecksum-0.0.2/docs/_build/html/_static/minus.png +0 -0
- cchecksum-0.0.2/docs/_build/html/_static/plus.png +0 -0
- cchecksum-0.0.2/docs/_build/html/_static/pygments.css +83 -0
- cchecksum-0.0.2/docs/_build/html/_static/searchtools.js +566 -0
- cchecksum-0.0.2/docs/_build/html/_static/sphinx_highlight.js +144 -0
- cchecksum-0.0.2/docs/conf.py +60 -0
- cchecksum-0.0.2/docs/index.rst +14 -0
- cchecksum-0.0.2/docs/make.bat +35 -0
- {cchecksum-0.0.1 → cchecksum-0.0.2}/pyproject.toml +0 -6
- cchecksum-0.0.2/requirements.txt +4 -0
- cchecksum-0.0.2/setup.cfg +4 -0
- cchecksum-0.0.2/setup.py +37 -0
- cchecksum-0.0.2/test_checksum.py +32 -0
- cchecksum-0.0.1/PKG-INFO +0 -16
- {cchecksum-0.0.1 → cchecksum-0.0.2}/cchecksum/_checksum.pyx +0 -0
- {cchecksum-0.0.1 → cchecksum-0.0.2}/cchecksum/checksum.py +0 -0
- {cchecksum-0.0.1 → cchecksum-0.0.2}/cchecksum/py.typed +0 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Black Formatter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
format:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout code
|
|
14
|
+
uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ github.head_ref }} # Check out the PR branch
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v4
|
|
20
|
+
with:
|
|
21
|
+
python-version: '3.12'
|
|
22
|
+
|
|
23
|
+
- name: Install Black
|
|
24
|
+
run: pip install black
|
|
25
|
+
|
|
26
|
+
- name: Run Black
|
|
27
|
+
run: black .
|
|
28
|
+
|
|
29
|
+
- name: Check for changes
|
|
30
|
+
id: changes
|
|
31
|
+
run: |
|
|
32
|
+
if [[ -n $(git status --porcelain) ]]; then
|
|
33
|
+
echo "changes_detected=true" >> $GITHUB_ENV
|
|
34
|
+
else
|
|
35
|
+
echo "changes_detected=false" >> $GITHUB_ENV
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
- name: Commit changes
|
|
39
|
+
if: env.changes_detected == 'true'
|
|
40
|
+
run: |
|
|
41
|
+
git config --local user.name "github-actions[bot]"
|
|
42
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
43
|
+
git add .
|
|
44
|
+
git commit -m "chore: \`black .\`"
|
|
45
|
+
git push
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
name: Deploy Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write
|
|
12
|
+
pages: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
build-and-deploy:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Check out code
|
|
19
|
+
uses: actions/checkout@v2
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v2
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.10'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
pip install wheel
|
|
29
|
+
pip install -r requirements.txt
|
|
30
|
+
pip install sphinx sphinx-rtd-theme
|
|
31
|
+
|
|
32
|
+
- name: Build documentation config
|
|
33
|
+
run: |
|
|
34
|
+
pip install .
|
|
35
|
+
make docs
|
|
36
|
+
|
|
37
|
+
- name: Build documentation
|
|
38
|
+
run: |
|
|
39
|
+
cd docs
|
|
40
|
+
make html
|
|
41
|
+
|
|
42
|
+
- name: Deploy to GitHub Pages
|
|
43
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
44
|
+
with:
|
|
45
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
46
|
+
publish_dir: ./docs/_build/html
|
|
47
|
+
|
|
48
|
+
- name: Checkout
|
|
49
|
+
uses: actions/checkout@v4
|
|
50
|
+
with:
|
|
51
|
+
ref: gh-pages
|
|
52
|
+
|
|
53
|
+
- name: Setup Pages
|
|
54
|
+
uses: actions/configure-pages@v4
|
|
55
|
+
|
|
56
|
+
- name: Upload artifact
|
|
57
|
+
uses: actions/upload-pages-artifact@v3
|
|
58
|
+
with:
|
|
59
|
+
# Upload entire repository
|
|
60
|
+
path: '.'
|
|
61
|
+
|
|
62
|
+
- name: Deploy to GitHub Pages
|
|
63
|
+
id: deployment
|
|
64
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
name: PyTest
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
# The branches below must be a subset of the branches above
|
|
7
|
+
branches: [ master, dev ]
|
|
8
|
+
paths:
|
|
9
|
+
- '**.py'
|
|
10
|
+
- '**.pyx'
|
|
11
|
+
- '**/pytest.yaml'
|
|
12
|
+
- '!**/docs/conf.py'
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
test:
|
|
20
|
+
runs-on: ${{ matrix.os }}
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
25
|
+
pyversion: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
|
26
|
+
exclude:
|
|
27
|
+
# gh runner throws "Error: Version ${{ matrix.pyversion }} with arch arm64 not found"
|
|
28
|
+
- os: macos-latest
|
|
29
|
+
pyversion: "3.8"
|
|
30
|
+
- os: macos-latest
|
|
31
|
+
pyversion: "3.9"
|
|
32
|
+
|
|
33
|
+
steps:
|
|
34
|
+
- name: Check out repository code
|
|
35
|
+
uses: actions/checkout@v2
|
|
36
|
+
|
|
37
|
+
- name: Setup Python (faster than using Python container)
|
|
38
|
+
uses: actions/setup-python@v2
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.pyversion }}
|
|
41
|
+
|
|
42
|
+
- name: Install pytest
|
|
43
|
+
run: pip install pytest
|
|
44
|
+
|
|
45
|
+
- name: Install cchecksum
|
|
46
|
+
run: |
|
|
47
|
+
pip install -r requirements.txt
|
|
48
|
+
pip install -e .
|
|
49
|
+
|
|
50
|
+
- name: Run test suite
|
|
51
|
+
run: pytest
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Upload Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
deploy:
|
|
11
|
+
runs-on: ubuntu-20.04
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
- uses: actions/setup-python@v2
|
|
18
|
+
- name: Install dependencies
|
|
19
|
+
run: |
|
|
20
|
+
python -m pip install --upgrade pip
|
|
21
|
+
pip install setuptools wheel twine cython
|
|
22
|
+
- name: Build and publish
|
|
23
|
+
env:
|
|
24
|
+
TWINE_USERNAME: __token__
|
|
25
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
26
|
+
run: |
|
|
27
|
+
python setup.py sdist
|
|
28
|
+
twine upload dist/*
|
cchecksum-0.0.2/Makefile
ADDED
cchecksum-0.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: cchecksum
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: A ~2x 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,<3.13
|
|
10
|
+
Requires-Dist: eth-typing
|
|
11
|
+
Requires-Dist: eth-utils
|
|
12
|
+
Requires-Dist: pysha3<2.0.0,>=1.0.0; python_version < "3.9"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
from eth_typing import ChecksumAddress
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
def cchecksum(norm_address_no_0x: str, address_hash_hex_no_0x: str) -> ChecksumAddress: ...
|