dicetxxls 0.0.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.
- dicetxxls-0.0.0/.github/workflows/ci.yml +41 -0
- dicetxxls-0.0.0/.github/workflows/release.yaml +36 -0
- dicetxxls-0.0.0/.pre-commit-config.yaml +23 -0
- dicetxxls-0.0.0/LICENSE +674 -0
- dicetxxls-0.0.0/PKG-INFO +170 -0
- dicetxxls-0.0.0/README.md +158 -0
- dicetxxls-0.0.0/dicetxxls/__init__.py +1 -0
- dicetxxls-0.0.0/dicetxxls/main.py +428 -0
- dicetxxls-0.0.0/dicetxxls.egg-info/PKG-INFO +170 -0
- dicetxxls-0.0.0/dicetxxls.egg-info/SOURCES.txt +14 -0
- dicetxxls-0.0.0/dicetxxls.egg-info/dependency_links.txt +1 -0
- dicetxxls-0.0.0/dicetxxls.egg-info/requires.txt +2 -0
- dicetxxls-0.0.0/dicetxxls.egg-info/top_level.txt +1 -0
- dicetxxls-0.0.0/pyproject.toml +21 -0
- dicetxxls-0.0.0/setup.cfg +4 -0
- dicetxxls-0.0.0/tests/test_main.py +99 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
tests:
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
os:
|
|
17
|
+
- ubuntu-latest
|
|
18
|
+
python-version:
|
|
19
|
+
- '3.10'
|
|
20
|
+
- '3.11'
|
|
21
|
+
- '3.12'
|
|
22
|
+
- '3.13'
|
|
23
|
+
- '3.14'
|
|
24
|
+
- '3.15'
|
|
25
|
+
name: ${{ matrix.os }}-py${{ matrix.python-version }} ${{ matrix.label }}
|
|
26
|
+
runs-on: ${{ matrix.os }}
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v2
|
|
30
|
+
|
|
31
|
+
- name: Set up python
|
|
32
|
+
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
33
|
+
with:
|
|
34
|
+
python-version: ${{ matrix.python-version }}
|
|
35
|
+
|
|
36
|
+
- name: Install with dependencies
|
|
37
|
+
run: uv sync --group dev
|
|
38
|
+
|
|
39
|
+
- name: Run pytest
|
|
40
|
+
shell: bash
|
|
41
|
+
run: uv run --no-sync pytest --color=yes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- v* # format M.m.p
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build-lib:
|
|
9
|
+
name: Build inspect and upload artifacts
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v7.0.1
|
|
13
|
+
with:
|
|
14
|
+
persist-credentials: false
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
- uses: hynek/build-and-inspect-python-package@67230f7b8410ae0052b39c1efc89d89fff43ff10 # v3.0.2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
pypi-publish:
|
|
20
|
+
name: Upload release to PyPI
|
|
21
|
+
needs: [build-lib]
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
environment:
|
|
24
|
+
name: dicetxxls
|
|
25
|
+
url: https://pypi.org/p/dicetxxls
|
|
26
|
+
permissions:
|
|
27
|
+
id-token: write
|
|
28
|
+
steps:
|
|
29
|
+
- name: Download distributions
|
|
30
|
+
uses: actions/download-artifact@v8
|
|
31
|
+
with:
|
|
32
|
+
name: Packages
|
|
33
|
+
path: dist
|
|
34
|
+
|
|
35
|
+
- name: Publish package distributions to PyPI
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.3
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
9
|
+
rev: v0.17.6
|
|
10
|
+
hooks:
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
- id: ruff
|
|
13
|
+
args: [--fix]
|
|
14
|
+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
15
|
+
rev: v2.16.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: pretty-format-yaml
|
|
18
|
+
args: [--autofix, --indent, '2']
|
|
19
|
+
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
|
|
20
|
+
rev: v1.1.2
|
|
21
|
+
hooks:
|
|
22
|
+
- id: markdown-toc
|
|
23
|
+
files: README.md
|