diff --git a/.craft.yml b/.craft.yml new file mode 100644 index 0000000000..cbbb53e47c --- /dev/null +++ b/.craft.yml @@ -0,0 +1,6 @@ +minVersion: 0.34.0 +targets: +- name: pypi +- name: github +- name: sentry-pypi + internalPypiRepo: getsentry/pypi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..6bd0b030d2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: build + +on: + pull_request: + push: + branches: [main, release/**, test-me-*] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - run: | + set -x + pip install build + python -m build + cd ext + python -m build --outdir ../dist + - uses: actions/upload-artifact@v3 + with: + name: ${{ github.sha }} + path: dist/* + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..139fe29007 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: Version to release + required: true + force: + description: Force a release even when there are release-blockers (optional) + required: false + +jobs: + release: + runs-on: ubuntu-latest + name: "Release a new version" + steps: + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_RELEASE_PAT }} + fetch-depth: 0 + - name: Prepare release + uses: getsentry/action-prepare-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} + with: + version: ${{ github.event.inputs.version }} + force: ${{ github.event.inputs.force }} diff --git a/ext/setup.py b/ext/setup.py index fbfabe0154..a8fe47c308 100755 --- a/ext/setup.py +++ b/ext/setup.py @@ -14,7 +14,7 @@ # NB! For clarity, keep version major.minor.patch in sync with django-stubs. # It's fine to skip django-stubs-ext releases, but when doing a release, update this to newest django-stubs version. setup( - name="django-stubs-ext", + name="sentry-forked-django-stubs-ext", version="4.2.5", description="Monkey-patching and extensions for django-stubs", long_description=readme, diff --git a/setup.py b/setup.py index 18bb048eba..97b550bacc 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def find_stub_files(name: str) -> List[str]: dependencies = [ "django", - "django-stubs-ext>=4.2.5", + "sentry-forked-django-stubs-ext>=4.2.5", "tomli; python_version < '3.11'", # Types: "typing-extensions", @@ -36,7 +36,7 @@ def find_stub_files(name: str) -> List[str]: } setup( - name="django-stubs", + name="sentry-forked-django-stubs", version="4.2.6", description="Mypy stubs for Django", long_description=readme,