@@ -358,9 +358,17 @@ def test_doc_files(self, doc_files, license, other):
358358 ('obal-0.5.1.tar.gz' , False ,
359359 [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-setuptools' ]],
360360 [['Requires' , 'python-ansible' , '>=' , '2.5' ], ['Requires' , 'python-setuptools' ]]),
361+ ('djangorestframework-queryfields-1.0.0.tar.gz' , True ,
362+ [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-django' ], ['BuildRequires' , 'python-djangorestframework' ],
363+ ['BuildRequires' , 'python-mock-django' ], ['BuildRequires' , 'python-pytest-django' ], ['BuildRequires' , 'python-setuptools' ],
364+ ['BuildRequires' , 'python-setuptools' ], ['BuildRequires' , 'python-wheel' ]],
365+ []),
366+ ('djangorestframework-queryfields-1.0.0.tar.gz' , False ,
367+ [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-setuptools' ]],
368+ []),
361369 ])
362370 def test_extras_require (self , archive , include_extras , expected_build , expected_runtime ):
363- name , version = archive .split ('-' )
371+ name , version = archive .rsplit ('-' , 1 )
364372 extractor = me .SetupPyMetadataExtractor ('{0}{1}' .format (
365373 self .td_dir , archive ), name , self .nc , version [:5 ],
366374 include_extras_require = include_extras )
0 commit comments