Skip to content

Commit 02dc20d

Browse files
Merge pull request #22 from getsentry/hubertdeng123/add-release-process
feat(release): Add craft release
2 parents d267fff + ab63ad8 commit 02dc20d

File tree

5 files changed

+75
-29
lines changed

5 files changed

+75
-29
lines changed

.craft.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
github:
2+
owner: getsentry
3+
repo: devservices
4+
changelogPolicy: auto
5+
targets:
6+
- name: github
7+
- name: pypi
8+
- name: sentry-pypi
9+
internalPypiRepo: getsentry/pypi

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version to release
8+
required: true
9+
force:
10+
description: Force a release even when there are release-blockers (optional)
11+
required: false
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
name: "Release a new version"
17+
steps:
18+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+
with:
20+
token: ${{ secrets.GH_RELEASE_PAT }}
21+
fetch-depth: 0
22+
- name: Prepare release
23+
uses: getsentry/action-prepare-release@3cea80dc3938c0baf5ec4ce752ecb311f8780cdc # v1.6.4
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
26+
with:
27+
version: ${{ github.event.inputs.version }}
28+
force: ${{ github.event.inputs.force }}

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[build-system]
2+
requires = ["setuptools>=45", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "devservices"
7+
version = "0.1.0"
8+
requires-python = ">=3.12"
9+
dependencies = [
10+
"pyyaml",
11+
"sentry-devenv",
12+
]
13+
14+
[project.optional-dependencies]
15+
dev = [
16+
"black",
17+
"mypy",
18+
"pre-commit",
19+
"pytest",
20+
"types-PyYAML",
21+
]
22+
23+
[project.scripts]
24+
devservices = "main:main"
25+
26+
[tool.setuptools]
27+
package-dir = {"" = "src"}
28+
packages = {find = {where = ["src"]}}
29+
include-package-data = true
30+
31+
[tool.mypy]
32+
python_version = "3.12"
33+
strict = true
34+
ignore_missing_imports = true
35+
36+
[[tool.mypy.overrides]]
37+
module = "yaml.*"
38+
ignore_missing_imports = true

setup.cfg

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,3 @@ extend-ignore =
44
## black takes care of that:
55
# line too long (X > Y characters)
66
E501
7-
8-
[mypy]
9-
python_version = 3.12
10-
strict = True
11-
ignore_missing_imports = True
12-
13-
[mypy-yaml.*]
14-
ignore_missing_imports = True

setup.py

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

0 commit comments

Comments
 (0)