Skip to content

Commit 63169f6

Browse files
isapegoivandasch
andauthored
GG-33848 [IGNITE-14738] Remove obsolete setup dependency to pytest-runner (#47)
(cherry picked from commit 8c8a006) Co-authored-by: Ivan Daschinsky <[email protected]>
1 parent 0131010 commit 63169f6

File tree

4 files changed

+9
-31
lines changed

4 files changed

+9
-31
lines changed

requirements/install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# these pip packages are necessary for the pygridgain to run
22

3-
attrs==20.3.0
3+
attrs>=20.3.0
44
tzlocal==2.1

requirements/setup.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
#
1616
import re
17-
from collections import defaultdict
1817
from distutils.command.build_ext import build_ext
1918
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
2019

@@ -64,25 +63,12 @@ def is_a_requirement(line):
6463
])
6564

6665

67-
requirement_sections = [
68-
'install',
69-
'setup',
70-
'tests',
71-
'docs',
72-
]
73-
74-
requirements = defaultdict(list)
75-
76-
for section in requirement_sections:
77-
with open(
78-
'requirements/{}.txt'.format(section),
79-
'r',
80-
encoding='utf-8',
81-
) as requirements_file:
82-
for line in requirements_file.readlines():
83-
line = line.strip('\n')
84-
if is_a_requirement(line):
85-
requirements[section].append(line)
66+
install_requirements = []
67+
with open('requirements/install.txt', 'r', encoding='utf-8') as requirements_file:
68+
for line in requirements_file.readlines():
69+
line = line.strip('\n')
70+
if is_a_requirement(line):
71+
install_requirements.append(line)
8672

8773
with open('README.md', 'r', encoding='utf-8') as readme_file:
8874
long_description = readme_file.read()
@@ -116,12 +102,7 @@ def run_setup(with_binary=True):
116102
long_description_content_type='text/markdown',
117103
url='https://github.com/gridgain/python-thin-client',
118104
packages=setuptools.find_packages(),
119-
install_requires=requirements['install'],
120-
tests_require=requirements['tests'],
121-
setup_requires=requirements['setup'],
122-
extras_require={
123-
'docs': requirements['docs'],
124-
},
105+
install_requires=install_requirements,
125106
license='GridGain Community Edition License',
126107
license_files=('LICENSE', 'NOTICE'),
127108
classifiers=[

tests/common/test_expiry_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def test_expiry_policy_async(async_cache):
125125

126126
await asyncio.sleep(ttl * 2 / 3)
127127

128-
cache_updated.get(2) # Check that access doesn't matter for updated policy.
128+
await cache_updated.get(2) # Check that access doesn't matter for updated policy.
129129

130130
await asyncio.sleep(ttl * 2 / 3)
131131

0 commit comments

Comments
 (0)