Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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