Skip to content

Commit 2c2142a

Browse files
authored
Merge pull request #9718 from google/axisregistry-v0.4.16
Axisregistry v0.4.16
2 parents c944592 + c2b5f73 commit 2c2142a

21 files changed

Lines changed: 2929 additions & 108 deletions

axisregistry/.github/workflows/publish-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build:
1010
name: Build distribution
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- uses: actions/checkout@v2
1416
with:
@@ -50,7 +52,7 @@ jobs:
5052
- name: Build a binary wheel and a source tarball
5153
run: python3 -m build
5254
- name: Store the distribution packages
53-
uses: actions/upload-artifact@v3
55+
uses: actions/upload-artifact@v4
5456
with:
5557
name: python-package-distributions
5658
path: dist/
@@ -69,12 +71,12 @@ jobs:
6971
id-token: write # IMPORTANT: mandatory for trusted publishing
7072
steps:
7173
- name: Download all the dists
72-
uses: actions/download-artifact@v3
74+
uses: actions/download-artifact@v4
7375
with:
7476
name: python-package-distributions
7577
path: dist/
7678
- name: Publish distribution 📦 to PyPI
77-
uses: pypa/gh-action-pypi-publish@v1.8.11
79+
uses: pypa/gh-action-pypi-publish@release/v1
7880
with:
7981
# repository-url: https://test.pypi.org/legacy/ # for testing purposes
8082
verify-metadata: false # twine previously didn't verify metadata when uploading
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: recursive
20+
- name: Install protoc
21+
run: sudo apt-get install protobuf-compiler
22+
- name: Build
23+
run: cargo build --verbose
24+
- name: Check for lints
25+
run: cargo clippy
26+
- name: Run tests
27+
run: |
28+
cargo test --verbose

axisregistry/.github/workflows/tox.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ jobs:
1212
strategy:
1313
max-parallel: 5
1414
matrix:
15-
python-version: [3.7, 3.8, 3.9]
15+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
1616

1717
steps:
18-
- uses: actions/checkout@v1
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install tox tox-gh-actions pytest
18+
- uses: actions/checkout@v1
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install tox tox-gh-actions pytest
2727
28-
- name: Test with tox
29-
run: |
30-
tox -e py
31-
tox -e lint
28+
- name: Test with tox
29+
run: |
30+
tox -e py
31+
tox -e lint

axisregistry/.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# Unit test / coverage reports
30+
htmlcov/
31+
.tox/
32+
.nox/
33+
.coverage
34+
.coverage.*
35+
.cache
36+
nosetests.xml
37+
coverage.xml
38+
*.cover
39+
*.py,cover
40+
.hypothesis/
41+
.pytest_cache/
42+
cover/
43+
44+
# Environments
45+
.env
46+
.venv
47+
env/
48+
venv/
49+
ENV/
50+
env.bak/
51+
venv.bak/
52+
53+
# Ruff stuff:
54+
.ruff_cache/
55+
56+
# Auto-generated version file
57+
_version.py
58+
59+
# Generated by Cargo
60+
# will have compiled files and executables
61+
debug/
62+
target/
63+
64+
# These are backup files generated by rustfmt
65+
**/*.rs.bk
66+
67+
# MSVC Windows builds of rustc generate these, which store debugging information
68+
*.pdb

0 commit comments

Comments
 (0)