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

Commit 8555a90

Browse files
vubvub
authored andcommitted
merge
2 parents ed663c3 + e2d5afe commit 8555a90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1657
-769
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ omit =
99
*/ethereum/fastvm.py
1010
*/ethereum/spv.py
1111

12-
[report]
1312
exclude_lines =
1413
pragma: no cover
1514
def __repr__

.release_notify.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
PAYLOAD="{\"text\": \"<https://pypi.python.org/pypi/ethereum|ethereum $TRAVIS_TAG> was released on pypi!\"}"
3+
curl -s -X POST --data-urlencode "payload=$PAYLOAD" $SLACK_WEBHOOK_URL

.travis.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
11
language: python
2-
python: 2.7
3-
sudo: false
2+
python: 3.5
3+
sudo: required
4+
dist: trusty
5+
before_install:
6+
- sudo add-apt-repository -y ppa:ethereum/ethereum
7+
- sudo apt-get update
8+
- sudo apt-get install -y solc
49
env:
5-
- TOX_ENV=py27
10+
matrix:
11+
- TOX_ENV=py27
12+
- TOX_ENV=py34
13+
- TOX_ENV=py35
14+
global:
15+
- COVERAGE_APPEND="--append"
16+
- secure: cKbIgpTJ1yjKLBxpCEiT6IH7NShDWZUE+BvnrAfc+ujCsR6LyLJcKxFQmKnWryJCqg7fp82Ep2bF2oDKzanAROar2xDY1SFGbai42seYMaFCw53YPGJ6u3VNCcfT0rN9BWgE7el/m4fjcD6CRsZYKArNNJbMX8csRt3uXXCFLso=
617
install:
7-
- pip install -Ur requirements.txt
8-
- pip install -Ur dev_requirements.txt
18+
- travis_retry pip install setuptools --upgrade
19+
- travis_retry pip install tox
20+
- travis_retry pip install coverage
921
script:
10-
- coverage run --source ethereum -m py.test --ignore ethereum/tests/test_vm.py --ignore
11-
ethereum/tests/test_state.py
12-
- coverage run --append --source ethereum -m py.test ethereum/tests/test_vm.py
13-
- coverage run --append --source ethereum -m py.test ethereum/tests/test_state.py
22+
- if [ -d .tox/$TOX_ENV/ ]; then cd .tox/$TOX_ENV && coverage erase; fi;
23+
- tox -e $TOX_ENV -- --ignore ethereum/tests/test_vm.py --ignore ethereum/tests/test_state.py
24+
- tox -e $TOX_ENV -- ethereum/tests/test_vm.py
25+
- tox -e $TOX_ENV -- ethereum/tests/test_state.py
26+
- cd .tox/$TOX_ENV && coverage report --show-missing
1427
after_success:
15-
- coveralls
28+
- travis_retry pip install coveralls
29+
- cd .tox/$TOX_ENV && coveralls
30+
after_script:
31+
- cat .tox/$TOX_ENV/log/*.log
1632
notifications:
1733
slack:
1834
secure: W/UAhQ/GgYwMWrl3aiVAVOWr4WGdWrxUOX/rTB3ZgwDwGqDYLzQO5UqbsQlo1JXPZ6JOWfIPMURhHu7DSfue9dBW6xQ+NL+bFHe9lSXG4nqFK3IjezYyTBzNRJRDbGUvSSqgj6D5cwhJ8BjfUIRPbJz3CxL64KmsNXezEaMY60w=
@@ -25,3 +41,5 @@ deploy:
2541
tags: true
2642
repo: ethereum/pyethereum
2743
branch: develop
44+
after_deploy:
45+
- ./.release_notify.sh

ethereum/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import os.path
55
import subprocess
66
import re
7+
# Import slogging to patch logging as soon as possible
8+
from . import slogging # noqa
79

810

911
GIT_DESCRIBE_RE = re.compile('^(?P<version>v\d+\.\d+\.\d+)-(?P<git>\d+-g[a-fA-F0-9]+(?:-dirty)?)$')

0 commit comments

Comments
 (0)