Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit d891c20

Browse files
authoredJan 15, 2019
ci: Use craft for publishing new releases (#1346)
* ci: Use craft for publishing new releases * fix: Update .craft.yml * fix: Remove probot conf files
1 parent 174c283 commit d891c20

File tree

5 files changed

+48
-5
lines changed

5 files changed

+48
-5
lines changed
 

‎.craft.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
minVersion: '0.7.0'
3+
changelogPolicy: simple
4+
github:
5+
owner: getsentry
6+
repo: raven-python
7+
targets:
8+
- name: pypi
9+
- name: github

‎.github/release.yml

-3
This file was deleted.

‎.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ matrix:
1818
- pip install tox
1919
script: tox -e flake8
2020

21+
- name: Distribution packages
22+
python: "3.6"
23+
install: false
24+
script: make travis-upload-dist
25+
2126
sudo: false
2227
addons:
2328
apt:

‎Makefile

+14-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,23 @@ setup-git:
2020
git config branch.autosetuprebase always
2121
cd .git/hooks && ln -sf ../../hooks/* ./
2222

23-
publish:
23+
clean:
2424
rm -rf dist build
25+
26+
publish: clean
2527
python setup.py sdist bdist_wheel upload
2628

29+
dist: clean
30+
python setup.py sdist bdist_wheel
31+
32+
install-zeus-cli:
33+
npm install -g @zeus-ci/cli
34+
35+
travis-upload-dist: dist install-zeus-cli
36+
zeus upload -t "application/zip+wheel" dist/* \
37+
|| [[ ! "$(TRAVIS_BRANCH)" =~ ^release/ ]]
38+
2739
update-ca:
2840
curl -sSL https://mkcert.org/generate/ -o raven/data/cacert.pem
2941

30-
.PHONY: bootstrap test lint coverage setup-git publish update-ca
42+
.PHONY: bootstrap test lint coverage setup-git publish update-ca dist clean install-zeus-cli travis-upload-dist

‎scripts/bump-version.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -eux
3+
4+
SCRIPT_DIR="$( dirname "$0" )"
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+
function replace() {
14+
! grep "$2" $3
15+
perl -i -pe "s/$1/$2/g" $3
16+
grep "$2" $3 # verify that replacement was successful
17+
}
18+
19+
replace "current_version = [0-9.]+" "current_version = $NEW_VERSION" ./.bumpversion.cfg
20+
replace "VERSION = '[0-9.]+'" "VERSION = '$NEW_VERSION'" ./raven/__init__.py

0 commit comments

Comments
 (0)
This repository has been archived.