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

Commit efe3373

Browse files
committed
Merge branch 'master' of github.com:RedisTimeSeries/redistimeseries-py
2 parents 83fc86e + 72cfcb0 commit efe3373

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.circleci/config.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
#
44
# Check https://circleci.com/docs/2.0/language-python/ for more details
55
#
6-
version: 2
6+
version: 2.1
7+
commands:
8+
early_return_for_forked_pull_requests:
9+
description: >-
10+
If this build is from a fork, stop executing the current job and return success.
11+
This is useful to avoid steps that will fail due to missing credentials.
12+
steps:
13+
- run:
14+
name: Early return if this build is from a forked PR
15+
command: |
16+
if [ -n "$CIRCLE_PR_NUMBER" ]; then
17+
echo "Nothing to do for forked PRs, so marking this step successful"
18+
circleci step halt
19+
fi
20+
721
jobs:
822
build:
923
docker:
@@ -43,11 +57,14 @@ jobs:
4357
command: |
4458
. venv/bin/activate
4559
REDIS_PORT=6379 coverage run test_commands.py
60+
61+
- early_return_for_forked_pull_requests
62+
63+
- run:
64+
name: codecove
65+
command: |
66+
. venv/bin/activate
4667
codecov
47-
48-
- store_artifacts:
49-
path: test-reports
50-
destination: test-reports
5168
5269
build_nightly:
5370
docker:

redistimeseries/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import six
21
from redis import Redis
32
from redis.client import Pipeline
43
from redis.client import bool_ok
@@ -103,8 +102,8 @@ def __init__(self, *args, **kwargs):
103102
self.INFO_CMD : TSInfo,
104103
self.QUERYINDEX_CMD : parseToList,
105104
}
106-
for k, v in six.iteritems(MODULE_CALLBACKS):
107-
self.set_response_callback(k, v)
105+
for k in MODULE_CALLBACKS:
106+
self.set_response_callback(k, MODULE_CALLBACKS[k])
108107

109108
@staticmethod
110109
def appendRetention(params, retention):

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
21
hiredis>=0.2.0
32
redis>=2.10
43
rmtest>=0.2
5-
six>=1.10.0

0 commit comments

Comments
 (0)