Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/install.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# these pip packages are necessary for the pyignite to run

attrs==20.3.0
attrs>=20.3.0
3 changes: 0 additions & 3 deletions requirements/setup.txt

This file was deleted.

33 changes: 7 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import re
from collections import defaultdict
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError

Expand Down Expand Up @@ -63,25 +62,12 @@ def is_a_requirement(line):
])


requirement_sections = [
'install',
'setup',
'tests',
'docs',
]

requirements = defaultdict(list)

for section in requirement_sections:
with open(
'requirements/{}.txt'.format(section),
'r',
encoding='utf-8',
) as requirements_file:
for line in requirements_file.readlines():
line = line.strip('\n')
if is_a_requirement(line):
requirements[section].append(line)
install_requirements = []
with open('requirements/install.txt', 'r', encoding='utf-8') as requirements_file:
for line in requirements_file.readlines():
line = line.strip('\n')
if is_a_requirement(line):
install_requirements.append(line)

with open('README.md', 'r', encoding='utf-8') as readme_file:
long_description = readme_file.read()
Expand Down Expand Up @@ -114,12 +100,7 @@ def run_setup(with_binary=True):
long_description_content_type='text/markdown',
url='https://github.com/apache/ignite-python-thin-client',
packages=setuptools.find_packages(),
install_requires=requirements['install'],
tests_require=requirements['tests'],
setup_requires=requirements['setup'],
extras_require={
'docs': requirements['docs'],
},
install_requires=install_requirements,
license="Apache License 2.0",
license_files=('LICENSE', 'NOTICE'),
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tests/common/test_expiry_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def test_expiry_policy_async(async_cache):

await asyncio.sleep(ttl * 2 / 3)

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

await asyncio.sleep(ttl * 2 / 3)

Expand Down