Skip to content

Commit 7af216a

Browse files
committed
MPT-12322 Initial commit
1 parent c198683 commit 7af216a

19 files changed

+1446
-53
lines changed

.dockerignore

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
### Intellij
2+
.idea/
3+
.idea_modules/
4+
out/
5+
6+
# CMake
7+
cmake-build-*/
8+
9+
# Mongo Explorer plugin
10+
.idea/**/mongoSettings.xml
11+
12+
# File-based project format
13+
*.iws
14+
15+
# JIRA plugin
16+
atlassian-ide-plugin.xml
17+
18+
### macOS template
19+
# General
20+
.DS_Store
21+
.AppleDouble
22+
.LSOverride
23+
24+
# Icon must end with two \r
25+
Icon
26+
27+
# Thumbnails
28+
._*
29+
30+
# Files that might appear in the root of a volume
31+
.DocumentRevisions-V100
32+
.fseventsd
33+
.Spotlight-V100
34+
.TemporaryItems
35+
.Trashes
36+
.VolumeIcon.icns
37+
.com.apple.timemachine.donotpresent
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
### Python template
47+
# Byte-compiled / optimized / DLL files
48+
__pycache__/
49+
*.py[cod]
50+
*$py.class
51+
52+
# Distribution / packaging
53+
.Python
54+
build/
55+
develop-eggs/
56+
dist/
57+
downloads/
58+
eggs/
59+
.eggs/
60+
lib/
61+
lib64/
62+
parts/
63+
sdist/
64+
var/
65+
wheels/
66+
share/python-wheels/
67+
*.egg-info/
68+
.installed.cfg
69+
*.egg
70+
MANIFEST
71+
72+
# PyInstaller
73+
# Usually these files are written by a python script from a template
74+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
75+
*.manifest
76+
*.spec
77+
78+
# Installer logs
79+
pip-log.txt
80+
pip-delete-this-directory.txt
81+
82+
# Unit test / coverage reports
83+
htmlcov/
84+
.tox/
85+
.nox/
86+
.coverage
87+
.coverage.*
88+
.cache
89+
nosetests.xml
90+
coverage.xml
91+
*.cover
92+
*.py,cover
93+
.hypothesis/
94+
.pytest_cache/
95+
cover/
96+
97+
# Translations
98+
*.mo
99+
*.pot
100+
101+
# Django stuff:
102+
*.log
103+
local_settings.py
104+
db.sqlite3
105+
db.sqlite3-journal
106+
107+
# Flask stuff:
108+
instance/
109+
.webassets-cache
110+
111+
# Scrapy stuff:
112+
.scrapy
113+
114+
# Sphinx documentation
115+
docs/_build/
116+
117+
# PyBuilder
118+
.pybuilder/
119+
target/
120+
121+
# IPython
122+
profile_default/
123+
ipython_config.py
124+
125+
# pyenv
126+
# For a library or package, you might want to ignore these files since the code is
127+
# intended to run in multiple environments; otherwise, check them in:
128+
.python-version
129+
130+
# poetry
131+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
132+
# This is especially recommended for binary packages to ensure reproducibility, and is more
133+
# commonly ignored for libraries.
134+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
135+
#poetry.lock
136+
137+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
138+
__pypackages__/
139+
140+
# Celery stuff
141+
celerybeat-schedule
142+
celerybeat.pid
143+
144+
# SageMath parsed files
145+
*.sage.py
146+
147+
# Environments
148+
.env
149+
.venv
150+
env/
151+
venv/
152+
ENV/
153+
env.bak/
154+
venv.bak/
155+
156+
# Spyder project settings
157+
.spyderproject
158+
.spyproject
159+
160+
# Rope project settings
161+
.ropeproject
162+
163+
# mkdocs documentation
164+
/site
165+
166+
# mypy
167+
.mypy_cache/
168+
.dmypy.json
169+
dmypy.json
170+
171+
# Pyre type checker
172+
.pyre/
173+
174+
# pytype static type analyzer
175+
.pytype/
176+
177+
# Cython debug symbols
178+
cython_debug/
179+
180+
.ruff_cache
181+
.github
182+
.git
183+
.gitignore
184+
LICENSE

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Check http://editorconfig.org for more information
2+
# This is the main config file for this project:
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
end_of_line = lf
9+
indent_style = space
10+
insert_final_newline = true
11+
indent_size = 2
12+
13+
[*.py]
14+
indent_size = 4

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @d3rky @ruben-sebrango @albertsola @jentyk @svazquezco
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: PR build and merge
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches:
8+
- main
9+
- "release/**"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- name: "Checkout"
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: "Build test containers"
27+
run: docker compose build app_test
28+
29+
- name: "Run validation & test"
30+
run: docker compose run --service-ports app_test
31+
32+
- name: "Run SonarCloud Scan"
33+
uses: SonarSource/sonarqube-scan-action@master
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37+
38+
- name: "Stop containers"
39+
if: always()
40+
run: docker compose down

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
id-token: write # for OIDC
9+
contents: read
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: "Set up Python"
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version-file: ".python-version"
27+
28+
- name: "Install uv"
29+
uses: astral-sh/setup-uv@v6
30+
with:
31+
version: "0.7.*"
32+
enable-cache: true
33+
cache-dependency-glob: uv.lock
34+
35+
- name: "Get the version"
36+
id: get_version
37+
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
38+
39+
- name: "Build"
40+
run: |
41+
uv version ${{ steps.get_version.outputs.VERSION }}
42+
uv build
43+
44+
- name: "Publish to PyPI"
45+
run: uv publish
46+
47+
dtrack:
48+
uses: softwareone-platform/ops-template/.github/workflows/dependency-track-python-uv.yml@v1
49+
with:
50+
projectName: 'swo-marketplace-cli'
51+
secrets:
52+
DEPENDENCYTRACK_APIKEY: ${{ secrets.DEPENDENCYTRACK_APIKEY }}

0 commit comments

Comments
 (0)