Skip to content

Commit f71b151

Browse files
tonyountitaker
authored andcommitted
feat: Use craft for releasing (#13)
1 parent 2f6c602 commit f71b151

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

.craft.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
github:
3+
owner: getsentry
4+
repo: sentry-python
5+
targets:
6+
- name: github
7+
- name: pypi

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,34 @@ python:
99
- "3.6"
1010
- "3.7-dev"
1111

12+
branches:
13+
only:
14+
- master
15+
- /^release\/.+$/
16+
1217
matrix:
1318
include:
1419
- python: "3.6"
1520
script: tox -e linters
21+
- python: "3.6"
22+
env: DIST=1
23+
script: make dist
24+
after_success:
25+
- npm install -g @zeus-ci/cli
26+
- zeus upload -t "application/zip+wheel" dist/*
1627

1728
install:
1829
- pip install tox
1930

2031
script:
2132
- sh scripts/runtox.sh
33+
34+
notifications:
35+
webhooks:
36+
urls:
37+
- https://zeus.ci/hooks/7ebb3060-90d8-11e8-aa04-0a580a282e07/public/provider/travis/webhook
38+
on_success: always
39+
on_failure: always
40+
on_start: always
41+
on_cancel: always
42+
on_error: always

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist:
2+
rm -rf dist build
3+
python setup.py sdist bdist_wheel
4+
5+
.PHONY: dist

scripts/bump-version.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -eux
3+
4+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
cd $SCRIPT_DIR/..
6+
7+
OLD_VERSION="${1}"
8+
NEW_VERSION="${2}"
9+
10+
echo "Current version: $OLD_VERSION"
11+
echo "Bumping version: $NEW_VERSION"
12+
13+
sed -i '' -e "1,/^\s*version=/ s/version=\"[^\"]*\"/version=\"$NEW_VERSION\"/" setup.py

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

0 commit comments

Comments
 (0)