Skip to content

Commit

Permalink
feat: Use craft for releasing (getsentry#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo authored and untitaker committed Jul 26, 2018
1 parent 2f6c602 commit f71b151
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
github:
owner: getsentry
repo: sentry-python
targets:
- name: github
- name: pypi
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,34 @@ python:
- "3.6"
- "3.7-dev"

branches:
only:
- master
- /^release\/.+$/

matrix:
include:
- python: "3.6"
script: tox -e linters
- python: "3.6"
env: DIST=1
script: make dist
after_success:
- npm install -g @zeus-ci/cli
- zeus upload -t "application/zip+wheel" dist/*

install:
- pip install tox

script:
- sh scripts/runtox.sh

notifications:
webhooks:
urls:
- https://zeus.ci/hooks/7ebb3060-90d8-11e8-aa04-0a580a282e07/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist:
rm -rf dist build
python setup.py sdist bdist_wheel

.PHONY: dist
13 changes: 13 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -eux

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR/..

OLD_VERSION="${1}"
NEW_VERSION="${2}"

echo "Current version: $OLD_VERSION"
echo "Bumping version: $NEW_VERSION"

sed -i '' -e "1,/^\s*version=/ s/version=\"[^\"]*\"/version=\"$NEW_VERSION\"/" setup.py
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1

0 comments on commit f71b151

Please sign in to comment.