-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
❇️ Universal build fallback with certifi (#1)
- Loading branch information
Showing
7 changed files
with
209 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,13 @@ jobs: | |
matrix: | ||
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] | ||
python_version: ['3.10', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10'] | ||
manylinux: ['auto', 'musllinux_1_1'] | ||
exclude: | ||
- manylinux: musllinux_1_1 | ||
target: ppc64le | ||
- manylinux: musllinux_1_1 | ||
target: s390x | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
@@ -77,7 +84,7 @@ jobs: | |
target: ${{ matrix.target }} | ||
args: --release --out dist --interpreter ${{ matrix.python_version }} | ||
sccache: 'true' | ||
manylinux: auto | ||
manylinux: ${{ matrix.manylinux }} | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -155,11 +162,67 @@ jobs: | |
name: wheels | ||
path: dist | ||
|
||
universal: | ||
needs: | ||
- test | ||
- lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: python -m pip install build wheel | ||
- name: Use fallback pyproject.toml | ||
run: rm -f pyproject.toml && mv pyproject.fb.toml pyproject.toml | ||
- name: Build fallback wheel | ||
run: python -m build | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist/*.whl | ||
|
||
checksum: | ||
name: Compute hashes | ||
runs-on: ubuntu-latest | ||
needs: [linux, windows, macos, sdist, universal] | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
outputs: | ||
hashes: ${{ steps.compute.outputs.hashes }} | ||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
- name: Download distributions | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 | ||
with: | ||
name: wheels | ||
path: dist | ||
- name: Collected dists | ||
run: | | ||
tree dist | ||
- name: Generate hashes | ||
id: compute # needs.checksum.outputs.hashes | ||
working-directory: ./dist | ||
run: echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT | ||
|
||
provenance: | ||
needs: checksum | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | ||
permissions: | ||
actions: read | ||
id-token: write | ||
contents: write | ||
with: | ||
base64-subjects: ${{ needs.checksum.outputs.hashes }} | ||
upload-assets: true | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [linux, windows, macos, sdist] | ||
needs: provenance | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
[build-system] | ||
requires = ["hatchling>=1.6.0,<2"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "wassima" | ||
description = "Access your OS root certificates with the atmost ease" | ||
readme = "README.md" | ||
license-files = { paths = ["LICENSE"] } | ||
license = "MIT" | ||
keywords = ["truststore", "ssl", "tls", "root ca", "ca", "trust", "https", "certificate"] | ||
authors = [ | ||
{name = "Ahmed R. TAHRI", email="[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Ahmed R. TAHRI", email="[email protected]"}, | ||
] | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Programming Language :: Rust", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Software Development :: Libraries", | ||
"License :: OSI Approved :: MIT License", | ||
"Development Status :: 5 - Production/Stable" | ||
] | ||
dynamic = ["version"] | ||
|
||
[tool.hatch.version] | ||
path = "wassima/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/wassima", | ||
"/tests", | ||
"/requirements-dev.txt", | ||
"/CHANGELOG.md", | ||
"/README.md", | ||
"/LICENSE", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = [ | ||
"wassima/", | ||
] | ||
|
||
[project.urls] | ||
"Changelog" = "https://github.com/jawah/wassima/blob/main/CHANGELOG.md" | ||
"Documentation" = "https://wassima.readthedocs.io" | ||
"Code" = "https://github.com/jawah/wassima" | ||
"Issue tracker" = "https://github.com/jawah/wassima/issues" | ||
|
||
[tool.pytest.ini_options] | ||
log_level = "DEBUG" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
add_imports = "from __future__ import annotations" | ||
|
||
[tool.mypy] | ||
mypy_path = "wassima" | ||
check_untyped_defs = true | ||
disallow_any_generics = true | ||
disallow_incomplete_defs = true | ||
disallow_subclassing_any = true | ||
disallow_untyped_calls = true | ||
disallow_untyped_decorators = true | ||
disallow_untyped_defs = true | ||
no_implicit_optional = true | ||
no_implicit_reexport = true | ||
show_error_codes = true | ||
strict_equality = true | ||
warn_redundant_casts = true | ||
warn_return_any = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from __future__ import annotations | ||
|
||
__version__ = "1.0.0" | ||
__version__ = "1.0.1" | ||
VERSION = __version__.split(".") |