-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jesushernandez/retries
Tweak timer logic to support retries
- Loading branch information
Showing
11 changed files
with
109 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# Flake the entire project using setup.cfg with specific settings. | ||
flake8 --config=../setup.cfg --count celery_statsd/ tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
|
||
tox tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/build/ | ||
/dist/ | ||
*.egg-info | ||
dist/ | ||
.tox | ||
*.egg-info/ | ||
*.pyc | ||
.idea | ||
.venv | ||
.cache/ | ||
.eggs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ | |
__summary__ = ( | ||
"Send various info to statsd for each Celery task" | ||
) | ||
__uri__ = "https://github.com/ssaw/celery-statsd" | ||
__uri__ = "https://github.com/lyst/celery-statsd/" | ||
|
||
__version__ = "0.1.2" | ||
__version__ = "0.1.3" | ||
|
||
__author__ = "Lyst LTD" | ||
__email__ = "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
checkout: | ||
post: | ||
- | | ||
git clean -fdx | ||
git fetch origin master | ||
git branch | ||
# Merge with master if this commit is not merged yet | ||
if ! git merge-base --is-ancestor ${CIRCLE_SHA1} origin/master ; then | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CircleCI" | ||
git checkout -f origin/master | ||
echo Merging ${CIRCLE_SHA1} into origin/master at $(git rev-parse origin/master) | ||
git merge -m Auto-merge --no-ff $CIRCLE_SHA1 | ||
fi | ||
dependencies: | ||
override: | ||
- pip install coverage flake8 flake8-import-order | ||
- pip install -r requirements.txt | ||
|
||
test: | ||
override: | ||
- ./.circle/lint-all.sh | ||
- ./.circle/py_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
celery==3.1.17 | ||
mock==1.1.3 | ||
pytest==2.7.2 | ||
six==1.9.0 | ||
statsd==3.0 | ||
tox==2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
select = E,W,F,I | ||
application-import-names = celery_statsd | ||
|
||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,4 @@ | |
|
||
packages=find_packages(), | ||
zip_safe=False, | ||
|
||
install_requires=[ | ||
'six', | ||
'statsd>=2.0.0' | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[tox] | ||
envlist = py27,py34 | ||
|
||
[testenv] | ||
deps=-rrequirements.txt | ||
commands= py.test {posargs} |