ccnact 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.
- ccnact-0.0.2/.github/workflows/main.yml +120 -0
- ccnact-0.0.2/.pre-commit-config.yaml +31 -0
- ccnact-0.0.2/LICENSE +674 -0
- ccnact-0.0.2/PKG-INFO +71 -0
- ccnact-0.0.2/README.md +49 -0
- ccnact-0.0.2/ccnact.egg-info/PKG-INFO +71 -0
- ccnact-0.0.2/ccnact.egg-info/SOURCES.txt +11 -0
- ccnact-0.0.2/ccnact.egg-info/dependency_links.txt +1 -0
- ccnact-0.0.2/ccnact.egg-info/requires.txt +5 -0
- ccnact-0.0.2/ccnact.egg-info/top_level.txt +1 -0
- ccnact-0.0.2/ccnact.py +530 -0
- ccnact-0.0.2/pyproject.toml +45 -0
- ccnact-0.0.2/setup.cfg +4 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
name: main
|
|
2
|
+
|
|
3
|
+
defaults:
|
|
4
|
+
run:
|
|
5
|
+
shell: bash -ex {0}
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches: [ main ]
|
|
10
|
+
paths-ignore: ['**.md']
|
|
11
|
+
pull_request:
|
|
12
|
+
branches: [ main ]
|
|
13
|
+
paths-ignore: ['**.md']
|
|
14
|
+
release:
|
|
15
|
+
types: [published]
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
precommit:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
- uses: actions/setup-python@v6
|
|
25
|
+
with:
|
|
26
|
+
python-version: 3.13
|
|
27
|
+
- run: |
|
|
28
|
+
pip install pre-commit
|
|
29
|
+
pre-commit clean
|
|
30
|
+
pre-commit autoupdate
|
|
31
|
+
pre-commit run --all-files --show-diff-on-failure
|
|
32
|
+
|
|
33
|
+
pytest:
|
|
34
|
+
needs: precommit
|
|
35
|
+
|
|
36
|
+
runs-on: ${{ matrix.os }}
|
|
37
|
+
|
|
38
|
+
strategy:
|
|
39
|
+
fail-fast: false
|
|
40
|
+
matrix:
|
|
41
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v6
|
|
45
|
+
with:
|
|
46
|
+
fetch-depth: 0
|
|
47
|
+
- uses: actions/setup-python@v6
|
|
48
|
+
with:
|
|
49
|
+
python-version: 3.13
|
|
50
|
+
- run: pip install -e .
|
|
51
|
+
- run: python -c "from ccnact import parcel"
|
|
52
|
+
- run: pip install -e .[dev]
|
|
53
|
+
- run: pytest ccnact.py
|
|
54
|
+
|
|
55
|
+
package:
|
|
56
|
+
needs: pytest
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v6
|
|
60
|
+
with:
|
|
61
|
+
fetch-depth: 0
|
|
62
|
+
- uses: actions/setup-python@v5.0.0
|
|
63
|
+
with:
|
|
64
|
+
python-version: "3.13"
|
|
65
|
+
- run: pip install twine build
|
|
66
|
+
- run: python -m build 2>&1 | tee build.log
|
|
67
|
+
# - run: exit `fgrep -i warning build.log | wc -l` TODO https://github.com/pypa/setuptools-scm/issues/1348
|
|
68
|
+
- run: twine check --strict ./dist/*
|
|
69
|
+
- name: check if version string does not contain PyPI-incompatible + char
|
|
70
|
+
run: |
|
|
71
|
+
[ `ls ${{ matrix.packages-dir }}/dist | fgrep + | tee /dev/stderr | wc -l` -ne 0 ] && exit 1 || echo OK
|
|
72
|
+
|
|
73
|
+
- uses: actions/upload-artifact@v4
|
|
74
|
+
with:
|
|
75
|
+
path: dist
|
|
76
|
+
name: dist
|
|
77
|
+
|
|
78
|
+
pkg_install_check:
|
|
79
|
+
strategy:
|
|
80
|
+
matrix:
|
|
81
|
+
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
82
|
+
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
|
|
83
|
+
runs-on: ${{ matrix.platform }}
|
|
84
|
+
needs: [ package ]
|
|
85
|
+
steps:
|
|
86
|
+
- uses: actions/setup-python@v5.0.0
|
|
87
|
+
with:
|
|
88
|
+
python-version: ${{ matrix.python-version }}
|
|
89
|
+
- uses: actions/download-artifact@v4
|
|
90
|
+
with:
|
|
91
|
+
pattern: dist*
|
|
92
|
+
merge-multiple: true
|
|
93
|
+
path: dist
|
|
94
|
+
- run: python -m pip install $PIP_INSTALL_ARGS dist/*.whl
|
|
95
|
+
- run: python -c "import ccnact; print(ccnact.__version__)"
|
|
96
|
+
|
|
97
|
+
publish:
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
needs: [ package, pkg_install_check ]
|
|
100
|
+
permissions:
|
|
101
|
+
id-token: write
|
|
102
|
+
steps:
|
|
103
|
+
- uses: actions/download-artifact@v4
|
|
104
|
+
with:
|
|
105
|
+
pattern: dist*
|
|
106
|
+
merge-multiple: true
|
|
107
|
+
path: dist
|
|
108
|
+
|
|
109
|
+
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
110
|
+
uses: pypa/gh-action-pypi-publish@release/v1.14
|
|
111
|
+
with:
|
|
112
|
+
attestations: false
|
|
113
|
+
repository_url: https://test.pypi.org/legacy/
|
|
114
|
+
packages-dir: dist
|
|
115
|
+
|
|
116
|
+
- if: startsWith(github.ref, 'refs/tags')
|
|
117
|
+
uses: pypa/gh-action-pypi-publish@release/v1.14
|
|
118
|
+
with:
|
|
119
|
+
attestations: false
|
|
120
|
+
packages-dir: dist
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
files: '.py'
|
|
2
|
+
exclude: '.git'
|
|
3
|
+
default_stages: [pre-commit]
|
|
4
|
+
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/psf/black
|
|
7
|
+
rev: 26.3.1
|
|
8
|
+
hooks:
|
|
9
|
+
- id: black
|
|
10
|
+
|
|
11
|
+
- repo: https://github.com/timothycrosley/isort
|
|
12
|
+
rev: 9.0.0a3
|
|
13
|
+
hooks:
|
|
14
|
+
- id: isort
|
|
15
|
+
|
|
16
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
17
|
+
rev: v6.0.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: trailing-whitespace
|
|
20
|
+
- id: end-of-file-fixer
|
|
21
|
+
- id: debug-statements
|
|
22
|
+
|
|
23
|
+
- repo: https://github.com/pylint-dev/pylint
|
|
24
|
+
rev: v4.0.5
|
|
25
|
+
hooks:
|
|
26
|
+
- id: pylint
|
|
27
|
+
args:
|
|
28
|
+
[
|
|
29
|
+
"-rn", # Only display messages
|
|
30
|
+
"-sn", # Don't display the score
|
|
31
|
+
]
|