How to use get_install_requires method in Kiwi

Best Python code snippet using Kiwi_python

setup.py

Source:setup.py Github

copy

Full Screen

1# pylint: disable=missing-docstring2from setuptools import find_packages, setup3import tcms4def get_install_requires(path):5 requires = []6 links = []7 with open(path, "r", encoding="utf-8") as file:8 for line in file:9 if line.startswith("-r "):10 continue11 dep_line = line.strip()12 parts = dep_line.split("#egg=")13 if len(parts) == 2:14 links.append(dep_line)15 requires.append(parts[1])16 else:17 requires.append(dep_line)18 return requires, links19INSTALL_TARBALLS, DEPENDENCY_TARBALLS = get_install_requires(20 "requirements/tarballs.txt"21)22INSTALL_BASE, DEPENDENCY_BASE = get_install_requires("requirements/base.txt")23INSTALL_REQUIRES = INSTALL_TARBALLS + INSTALL_BASE24DEPENDENCY_LINKS = DEPENDENCY_TARBALLS + DEPENDENCY_BASE25def get_long_description():26 with open("README.rst", "r", encoding="utf-8") as file:27 return file.read()28setup(29 name="kiwitcms",30 version=tcms.__version__,31 description="Test Case Management System",32 long_description=get_long_description(),33 maintainer="Kiwi TCMS",34 maintainer_email="info@kiwitcms.org",35 url="https://github.com/kiwitcms/Kiwi/",36 license="GPLv2",...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Kiwi automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful