Class: MyPrecious::PyPackageInfo::ReqSpecParser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/myprecious/python_packages.rb

Overview

Parses requirement line based on grammar in PEP 508 (www.python.org/dev/peps/pep-0508/#complete-grammar)

Constant Summary collapse

COMPARATORS =
%w[<= < != === == >= > ~=]
ENVVARS =
%w[
  python_version python_full_version
  os_name sys_platform platform_release
  platform_system platform_version
  platform_machine platform_python_implementation
  implementation_name implementation_version
  extra
]