Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
requirements_detector
/
__pycache__
[ HOME ]
Exec
Submit
File Name : requirement.cpython-311.pyc
� � h� � �v � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z d� Zd� Zd � Z G d � d� � ZdS )aF This module represents the various types of requirement that can be specified for a project. It is somewhat redundant to re-implement here as we could use `pip.req.InstallRequirement`, but that would require depending on pip which is not easy to do since it will usually be installed by the user at a specific version. Additionally, the pip implementation has a lot of extra features that we don't need - we don't expect relative file paths to exist, for example. Note that the parsing here is also intentionally more lenient - it is not our job to validate the requirements list. � N)�Path)�Optional)�parse)�Requirementc �R � t j j | v p| � d� � S )N�.)�os�path�sep� startswith)�reqs �r/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/requirements_detector/requirement.py�_is_filepathr s"