Skip to content

Commit 031578d

Browse files
authored
Merge pull request #87 from zopefoundation/config-with-c-code-template-780d7481
Testbed for trusted publishing
2 parents 9dd9cb8 + 8e42083 commit 031578d

File tree

13 files changed

+42
-38
lines changed

13 files changed

+42
-38
lines changed

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
#
44
# EditorConfig Configuration file, for more details see:
55
# https://EditorConfig.org
@@ -12,7 +12,7 @@
1212
root = true
1313

1414

15-
[*] # For All Files
15+
[*]
1616
# Unix-style newlines with a newline ending every file
1717
end_of_line = lf
1818
insert_final_newline = true

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
name: pre-commit
44

55
on:
@@ -21,7 +21,7 @@ jobs:
2121
name: linting
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- uses: actions/setup-python@v6
2626
with:
2727
python-version: '3.13'

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
###
44
# Initially copied from
55
# https://github.com/actions/starter-workflows/blob/main/ci/python-package.yml
@@ -106,7 +106,7 @@ jobs:
106106

107107
steps:
108108
- name: checkout
109-
uses: actions/checkout@v5
109+
uses: actions/checkout@v6
110110
with:
111111
persist-credentials: false
112112
- name: Set up Python ${{ matrix.python-version }}
@@ -262,7 +262,7 @@ jobs:
262262

263263
steps:
264264
- name: checkout
265-
uses: actions/checkout@v5
265+
uses: actions/checkout@v6
266266
with:
267267
persist-credentials: false
268268
- name: Set up Python ${{ matrix.python-version }}
@@ -378,7 +378,7 @@ jobs:
378378

379379
steps:
380380
- name: checkout
381-
uses: actions/checkout@v5
381+
uses: actions/checkout@v6
382382
with:
383383
persist-credentials: false
384384
- name: Set up Python ${{ matrix.python-version }}
@@ -456,7 +456,7 @@ jobs:
456456
python-version: "3.13"
457457
steps:
458458
- name: checkout
459-
uses: actions/checkout@v5
459+
uses: actions/checkout@v6
460460
with:
461461
persist-credentials: false
462462
- name: Set up Python ${{ matrix.python-version }}
@@ -539,8 +539,12 @@ jobs:
539539
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
540540
# Wait for both build jobs to complete
541541
needs: [build-package, manylinux]
542+
environment:
543+
name: pypi
544+
url: https://pypi.org/p/ExtensionClass
542545
permissions:
543546
contents: read
547+
id-token: write # Mandatory for trusted publishing
544548

545549
steps:
546550
- name: Download all wheel artifacts
@@ -570,8 +574,6 @@ jobs:
570574
- name: Publish to PyPI
571575
uses: pypa/gh-action-pypi-publish@release/v1
572576
with:
573-
user: __token__
574-
password: ${{ secrets.TWINE_PASSWORD }}
575577
skip-existing: true
576578
packages-dir: dist/
577579
verbose: true

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
*.dll
44
*.egg-info/
55
*.profraw

.manylinux-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
2-
# Generated from:
3-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
2+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
3+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
44

55
set -e -x
66

.manylinux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
2-
# Generated from:
3-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
2+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
3+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
44

55
set -e -x
66

.meta.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
[meta]
44
template = "c-code"
5-
commit-id = "9fcd3d67"
5+
commit-id = "780d7481"
66

77
[python]
88
with-windows = true

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
minimum_pre_commit_version: '3.6'
44
repos:
55
- repo: https://github.com/pycqa/isort

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
2-
Generated from:
3-
https://github.com/zopefoundation/meta/tree/master/config/c-code
2+
Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
3+
https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
44
-->
55
# Contributing to zopefoundation projects
66

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/c-code
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/c-code
33
include *.md
44
include *.rst
55
include *.txt

0 commit comments

Comments
 (0)