@@ -362,9 +362,17 @@ def test_doc_files(self, doc_files, license, other):
362362 ('obal-0.5.1.tar.gz' , False ,
363363 [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-setuptools' ]],
364364 [['Requires' , 'python-ansible' , '>=' , '2.5' ], ['Requires' , 'python-setuptools' ]]),
365+ ('djangorestframework-queryfields-1.0.0.tar.gz' , True ,
366+ [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-django' ], ['BuildRequires' , 'python-djangorestframework' ],
367+ ['BuildRequires' , 'python-mock-django' ], ['BuildRequires' , 'python-pytest-django' ], ['BuildRequires' , 'python-setuptools' ],
368+ ['BuildRequires' , 'python-setuptools' ], ['BuildRequires' , 'python-wheel' ]],
369+ []),
370+ ('djangorestframework-queryfields-1.0.0.tar.gz' , False ,
371+ [['BuildRequires' , 'python2-devel' ], ['BuildRequires' , 'python-setuptools' ]],
372+ []),
365373 ])
366374 def test_extras_require (self , archive , include_extras , expected_build , expected_runtime ):
367- name , version = archive .split ('-' )
375+ name , version = archive .rsplit ('-' , 1 )
368376 extractor = me .SetupPyMetadataExtractor ('{0}{1}' .format (
369377 self .td_dir , archive ), name , self .nc , version [:5 ],
370378 include_extras_require = include_extras )
0 commit comments