Lines Matching refs:Requirement
17 Distribution, EntryPoint, Requirement, safe_version, safe_name,
469 r = Requirement.parse("Twisted>=1.2")
472 assert r == Requirement("Twisted>=1.2")
473 assert r == Requirement("twisTed>=1.2")
474 assert r != Requirement("Twisted>=2.0")
475 assert r != Requirement("Zope>=1.2")
476 assert r != Requirement("Zope>=3.0")
477 assert r != Requirement("Twisted[extras]>=1.2")
480 r1 = Requirement("Twisted==1.2c1,>=1.2")
481 r2 = Requirement("Twisted>=1.2,==1.2c1")
487 r = Requirement("Twisted>=1.2")
500 r1 = Requirement.parse("Twisted[foo,bar]>=1.2")
501 r2 = Requirement.parse("Twisted[bar,FOO]>=1.2")
518 r1 = Requirement.parse("foo==0.3a2")
519 r2 = Requirement.parse("foo!=0.3a4")
537 Requirement.parse('setuptools').project_name == 'setuptools')
540 Requirement.parse('setuptools == 0.7').project_name
544 Requirement.parse('setuptools == 0.7a1').project_name
548 Requirement.parse('setuptools >= 0.7').project_name
610 [Requirement('Twis-Ted>=1.2-1')]
615 [Requirement('Twisted>=1.2,<2.0')]
618 Requirement.parse("FooBar==1.99a3")
620 Requirement("FooBar==1.99a3")
623 Requirement.parse(">=2.3")
625 Requirement.parse("x\\")
627 Requirement.parse("x==2 q")
629 Requirement.parse("X==1\nY==2")
631 Requirement.parse("#")
635 Requirement.parse("foobar;os_name=='a'")
637 Requirement.parse("foobar;os_name=='a'")
640 Requirement.parse("name==1.1;python_version=='2.7'")
642 Requirement.parse("name==1.1;python_version=='3.3'")
645 Requirement.parse("name==1.0;python_version=='2.7'")
647 Requirement.parse("name==1.2;python_version=='2.7'")
650 Requirement.parse("name[foo]==1.0;python_version=='3.3'")
652 Requirement.parse("name[foo,bar]==1.0;python_version=='3.3'")