Skip to content

Commit bbd1a53

Browse files
authored
Merge pull request #30 from 1kbgz/tkp/up2
Refactor for new template
2 parents 4046f68 + f107bcd commit bbd1a53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3921
-589
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 20 deletions
This file was deleted.

.copier-answers.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: 3a223c6
3+
_src_path: https://github.com/python-project-templates/base.git
4+
add_docs: false
5+
add_extension: rustjswasm
6+
add_wiki: false
7+
email: dev@1kbgz.com
8+
github: 1kbgz
9+
project_description: Generic communication library
10+
project_name: transports
11+
python_version_primary: '3.11'
12+
team: 1kbgz

.gitattributes

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ docs/* linguist-documentation
33
*.ipynb linguist-documentation
44
Makefile linguist-documentation
55

6-
* text=auto eol=lf
6+
*.css text=auto eol=lf
7+
*.html text=auto eol=lf
8+
*.js text=auto eol=lf
9+
*.json text=auto eol=lf
10+
*.less text=auto eol=lf
11+
*.md text=auto eol=lf
12+
*.py text=auto eol=lf
13+
*.rs text=auto eol=lf
14+
*.toml text=auto eol=lf
15+
*.ts text=auto eol=lf
16+
*.yaml text=auto eol=lf

.github/dependabot.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- "part: github_actions"
9+
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "monthly"
14+
labels:
15+
- "lang: python"
16+
- "part: dependencies"
17+
18+
- package-ecosystem: "npm"
19+
directory: "/js"
20+
schedule:
21+
interval: "monthly"
22+
labels:
23+
- "lang: javascript"
24+
- "part: dependencies"
25+
26+
- package-ecosystem: "cargo"
27+
directory: "/"
28+
schedule:
29+
interval: "monthly"
30+
labels:
31+
- "lang: rust"
32+
- "part: dependencies"
33+

.github/dependabot.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Build Status
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- LICENSE
11+
- README.md
12+
pull_request:
13+
branches:
14+
- main
15+
workflow_dispatch:
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
21+
permissions:
22+
contents: read
23+
checks: write
24+
pull-requests: write
25+
26+
jobs:
27+
build:
28+
runs-on: ${{ matrix.os }}
29+
30+
strategy:
31+
matrix:
32+
os: [ubuntu-latest, macos-latest, windows-latest]
33+
python-version: ["3.11"]
34+
cibuildwheel: ["cp311"]
35+
node-version: [20.x]
36+
37+
steps:
38+
- uses: actions/checkout@v5
39+
40+
- uses: actions-ext/python/setup@main
41+
with:
42+
version: ${{ matrix.python-version }}
43+
44+
- uses: actions-ext/rust/setup@main
45+
46+
- uses: actions-ext/node/setup@main
47+
with:
48+
version: 22.x
49+
50+
- name: Install dependencies
51+
run: make develop
52+
53+
- name: Lint
54+
run: make lint
55+
if: matrix.os == 'ubuntu-latest'
56+
57+
- name: Checks
58+
run: make checks
59+
if: matrix.os == 'ubuntu-latest'
60+
61+
- name: Build
62+
run: make build
63+
64+
- name: Test
65+
run: make coverage
66+
67+
- name: Upload test results (Python)
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
71+
path: '**/junit.xml'
72+
if: matrix.os == 'ubuntu-latest'
73+
74+
- name: Publish Unit Test Results
75+
uses: EnricoMi/publish-unit-test-result-action@v2
76+
with:
77+
files: '**/junit.xml'
78+
if: matrix.os == 'ubuntu-latest'
79+
80+
- name: Upload coverage
81+
uses: codecov/codecov-action@v5
82+
with:
83+
token: ${{ secrets.CODECOV_TOKEN }}
84+
85+
- name: Set up QEMU
86+
uses: docker/setup-qemu-action@v3
87+
with:
88+
platforms: all
89+
if: runner.os == 'Linux' && runner.arch == 'X64'
90+
91+
- name: Make dist
92+
run: |
93+
make dist-rs
94+
make dist-py-sdist
95+
make dist-py-wheel
96+
make dist-check
97+
env:
98+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
99+
if: matrix.os == 'ubuntu-latest'
100+
101+
- name: Make dist
102+
run: |
103+
make dist-py-wheel
104+
make dist-check
105+
env:
106+
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0
107+
if: matrix.os != 'ubuntu-latest'
108+
109+
- uses: actions/upload-artifact@v4
110+
with:
111+
name: dist-${{matrix.os}}
112+
path: dist

.github/workflows/build.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/copier.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Copier Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 5 * * 0"
7+
8+
jobs:
9+
update:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions-ext/copier-update@main
16+
with:
17+
token: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)