Skip to content

Commit 8c8a006

Browse files
committed
IGNITE-14738 Remove obsolete setup dependency to pytest-runner - Fixes #38.
1 parent 746dd13 commit 8c8a006

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,3 +1,3 @@
11
# these pip packages are necessary for the pyignite to run
22

3-
attrs==20.3.0
3+
attrs>=20.3.0

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
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
import re
16-
from collections import defaultdict
1716
from distutils.command.build_ext import build_ext
1817
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
1918

@@ -63,25 +62,12 @@ def is_a_requirement(line):
6362
])
6463

6564

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

8672
with open('README.md', 'r', encoding='utf-8') as readme_file:
8773
long_description = readme_file.read()
@@ -114,12 +100,7 @@ def run_setup(with_binary=True):
114100
long_description_content_type='text/markdown',
115101
url='https://github.com/apache/ignite-python-thin-client',
116102
packages=setuptools.find_packages(),
117-
install_requires=requirements['install'],
118-
tests_require=requirements['tests'],
119-
setup_requires=requirements['setup'],
120-
extras_require={
121-
'docs': requirements['docs'],
122-
},
103+
install_requires=install_requirements,
123104
license="Apache License 2.0",
124105
license_files=('LICENSE', 'NOTICE'),
125106
classifiers=[

tests/common/test_expiry_policy.py

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

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

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

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

0 commit comments

Comments
 (0)