Skip to content

Commit 8bd0631

Browse files
authored
Merge pull request #29 from hellohaptik/fix-packages
Lock package versions
2 parents 25024ab + 89dc829 commit 8bd0631

File tree

4 files changed

+60
-56
lines changed

4 files changed

+60
-56
lines changed

FeatureToggle/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def fetch_feature_toggles():
232232
FeatureToggles.__cache.get(consts.FEATURES_URL)
233233
)
234234
response = {}
235+
235236
try:
236237
if feature_toggles:
237238
for feature_toggle in feature_toggles:
@@ -249,8 +250,8 @@ def fetch_feature_toggles():
249250

250251
if cas_name == FeatureToggles.__cas_name and environment == FeatureToggles.__environment:
251252
# Strip CAS and ENV name from feature name
252-
active_cas_env_name = f'{FeatureToggles.__cas_name}.'
253-
f'{FeatureToggles.__environment}.'
253+
active_cas_env_name = f'{cas_name}.{environment}.'
254+
full_feature_name = full_feature_name.replace(active_cas_env_name, '')
254255
full_feature_name = full_feature_name.replace(active_cas_env_name, '')
255256
if full_feature_name not in response:
256257
response[full_feature_name] = {}

requirements-dev.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
coveralls
2-
bumpversion
3-
mimesis
4-
mkdocs
5-
mypy
6-
pur
7-
pylint
8-
pytest
9-
#pytest-benchmark
10-
pytest-cov
11-
pytest-flake8
12-
pytest-html
13-
pytest-runner
14-
pytest-rerunfailures
15-
pytest-xdist
16-
responses
17-
tox
18-
tox-conda
19-
twine
1+
# TODO: Remove up the package post removing the code which will not get used
2+
bumpversion==0.6.0
3+
coveralls==3.0.1
4+
mimesis==2.1.0
5+
mkdocs==1.1.2
6+
mypy==0.812
7+
pur==5.3.0
8+
pylint==2.7.2
9+
pytest==6.2.2
10+
pytest-cov==2.11.1
11+
pytest-flake8==1.0.7
12+
pytest-html==1.22.0
13+
pytest-mock==3.5.1
14+
pytest-rerunfailures==9.1.1
15+
pytest-runner==5.3.0
16+
pytest-xdist==2.2.1
17+
responses==0.12.1
18+
tox==3.22.0
19+
twine==3.3.0

requirements-local.txt

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@ requests==2.25.0
33
fcache==0.4.7
44
mmh3==2.5.1
55
APScheduler==3.6.3
6+
redis==2.10.6
67

8+
# TODO: Remove up the package post removing the code which will not get used
79
# Development packages
8-
bumpversion
9-
coveralls
10-
mimesis
11-
mkdocs
12-
mypy
13-
pur
14-
pylint
15-
pytest
16-
pytest-cov
17-
pytest-flake8
18-
pytest-html
19-
pytest-rerunfailures
20-
pytest-runner
21-
pytest-xdist
22-
responses
23-
tox
24-
tox-conda
25-
twine
10+
bumpversion==0.6.0
11+
coveralls==3.0.1
12+
mimesis==2.1.0
13+
mkdocs==1.1.2
14+
mypy==0.812
15+
pur==5.3.0
16+
pylint==2.7.2
17+
pytest==6.2.2
18+
pytest-cov==2.11.1
19+
pytest-flake8==1.0.7
20+
pytest-html==1.22.0
21+
pytest-mock==3.5.1
22+
pytest-rerunfailures==9.1.1
23+
pytest-runner==5.3.0
24+
pytest-xdist==2.2.1
25+
responses==0.12.1
26+
tox==3.22.0
27+
twine==3.3.0

requirements.txt

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@ requests==2.25.0
33
fcache==0.4.7
44
mmh3==2.5.1
55
APScheduler==3.6.3
6+
redis==2.10.6
67

8+
# TODO: Remove up the package post removing the code which will not get used
79
# Development packages
8-
bumpversion
9-
coveralls
10+
bumpversion==0.6.0
11+
coveralls==3.0.1
1012
mimesis==2.1.0
11-
mkdocs
12-
mypy
13-
pur
14-
pylint
15-
pytest
16-
pytest-cov
17-
pytest-flake8
13+
mkdocs==1.1.2
14+
mypy==0.812
15+
pur==5.3.0
16+
pylint==2.7.2
17+
pytest==6.2.2
18+
pytest-cov==2.11.1
19+
pytest-flake8==1.0.7
1820
pytest-html==1.22.0
19-
pytest-mock
20-
pytest-rerunfailures
21-
pytest-runner
22-
pytest-xdist
23-
responses
24-
tox
25-
twine
26-
redis==2.10.6
21+
pytest-mock==3.5.1
22+
pytest-rerunfailures==9.1.1
23+
pytest-runner==5.3.0
24+
pytest-xdist==2.2.1
25+
responses==0.12.1
26+
tox==3.22.0
27+
twine==3.3.0

0 commit comments

Comments
 (0)