Skip to content

Commit 7903c2f

Browse files
authoredMay 7, 2024··
Merge pull request #54 from delilahw/lilah/keyring-backend
feat: Keyring backend for pip auth with ADO feeds
2 parents 06b81b7 + 635a536 commit 7903c2f

File tree

13 files changed

+1952
-0
lines changed

13 files changed

+1952
-0
lines changed
 
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Artifacts Helper Keyring Releases
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
defaults:
11+
run:
12+
working-directory: src/artifacts-helper/codespaces_artifacts_helper_keyring
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: wntrblm/nox@main
18+
with:
19+
python-versions: "3.11, 3.12"
20+
21+
- name: Setup PDM
22+
uses: pdm-project/setup-pdm@v4
23+
with:
24+
version: "2.15.1"
25+
python-version-file: "src/artifacts-helper/codespaces_artifacts_helper_keyring/pyproject.toml"
26+
27+
- name: Run nox release
28+
run: pdm release
29+
30+
- name: Upload build artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: codespaces_artifacts_helper_keyring
34+
path: |
35+
src/artifacts-helper/codespaces_artifacts_helper_keyring/dist

‎.github/workflows/test-keyring.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Artifacts Helper Keyring Tests
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/test-keyring.yaml"
7+
- "src/artifacts-helper/codespaces_artifacts_helper_keyring/**"
8+
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- ".github/workflows/test-keyring.yaml"
14+
- "src/artifacts-helper/codespaces_artifacts_helper_keyring/**"
15+
16+
defaults:
17+
run:
18+
working-directory: src/artifacts-helper/codespaces_artifacts_helper_keyring
19+
20+
jobs:
21+
generate-jobs:
22+
name: Generate jobs
23+
runs-on: ubuntu-latest
24+
outputs:
25+
session: ${{ steps.set-matrix.outputs.session }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: wntrblm/nox@main
30+
with:
31+
python-versions: "3.12"
32+
33+
- id: set-matrix
34+
shell: bash
35+
run: echo session=$(nox --json -l --tags ci | jq -c '[.[].session]') | tee --append $GITHUB_OUTPUT
36+
37+
checks:
38+
name: Session ${{ matrix.session }}
39+
needs: [generate-jobs]
40+
runs-on: ubuntu-latest
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
session: ${{ fromJson(needs.generate-jobs.outputs.session) }}
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- uses: wntrblm/nox@main
49+
with:
50+
python-versions: "3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.9, pypy-3.10"
51+
52+
- name: Setup PDM
53+
uses: pdm-project/setup-pdm@v4
54+
with:
55+
version: "2.15.1"
56+
python-version-file: "src/artifacts-helper/codespaces_artifacts_helper_keyring/pyproject.toml"
57+
58+
- name: Run ${{ matrix.session }}
59+
run: pdm run nox --error-on-missing-interpreters --error-on-external-run -s "${{ matrix.session }}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
### Python ###
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
cover/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
db.sqlite3-journal
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
.pybuilder/
77+
target/
78+
79+
# Jupyter Notebook
80+
.ipynb_checkpoints
81+
82+
# IPython
83+
profile_default/
84+
ipython_config.py
85+
86+
# pyenv
87+
# For a library or package, you might want to ignore these files since the code is
88+
# intended to run in multiple environments; otherwise, check them in:
89+
# .python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
#Pipfile.lock
97+
98+
# poetry
99+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100+
# This is especially recommended for binary packages to ensure reproducibility, and is more
101+
# commonly ignored for libraries.
102+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103+
#poetry.lock
104+
105+
# pdm
106+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107+
#pdm.lock
108+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109+
# in version control.
110+
# https://pdm.fming.dev/#use-with-ide
111+
.pdm.toml
112+
113+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114+
__pypackages__/
115+
116+
# Celery stuff
117+
celerybeat-schedule
118+
celerybeat.pid
119+
120+
# SageMath parsed files
121+
*.sage.py
122+
123+
# Environments
124+
.env
125+
.venv
126+
env/
127+
venv/
128+
ENV/
129+
env.bak/
130+
venv.bak/
131+
132+
# Spyder project settings
133+
.spyderproject
134+
.spyproject
135+
136+
# Rope project settings
137+
.ropeproject
138+
139+
# mkdocs documentation
140+
/site
141+
142+
# mypy
143+
.mypy_cache/
144+
.dmypy.json
145+
dmypy.json
146+
147+
# Pyre type checker
148+
.pyre/
149+
150+
# pytype static type analyzer
151+
.pytype/
152+
153+
# Cython debug symbols
154+
cython_debug/
155+
156+
# PyCharm
157+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159+
# and can be added to the global gitignore or merged into this file. For a more nuclear
160+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
161+
#.idea/
162+
163+
### Python Patch ###
164+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
165+
poetry.toml
166+
167+
# ruff
168+
.ruff_cache/
169+
170+
# LSP config files
171+
pyrightconfig.json
172+
173+
# PDM
174+
.pdm-python
175+
176+
### macOS ###
177+
# General
178+
.DS_Store
179+
.AppleDouble
180+
.LSOverride
181+
182+
# Icon must end with two \r
183+
Icon
184+
185+
# Thumbnails
186+
._*
187+
188+
# Files that might appear in the root of a volume
189+
.DocumentRevisions-V100
190+
.fseventsd
191+
.Spotlight-V100
192+
.TemporaryItems
193+
.Trashes
194+
.VolumeIcon.icns
195+
.com.apple.timemachine.donotpresent
196+
197+
# Directories potentially created on remote AFP share
198+
.AppleDB
199+
.AppleDesktop
200+
Network Trash Folder
201+
Temporary Items
202+
.apdisk
203+
204+
### macOS Patch ###
205+
# iCloud generated files
206+
*.icloud
207+
208+
### Windows ###
209+
# Windows thumbnail cache files
210+
Thumbs.db
211+
Thumbs.db:encryptable
212+
ehthumbs.db
213+
ehthumbs_vista.db
214+
215+
# Dump file
216+
*.stackdump
217+
218+
# Folder config file
219+
[Dd]esktop.ini
220+
221+
# Recycle Bin used on file shares
222+
$RECYCLE.BIN/
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.