Open kloczek opened 3 years ago
Can you explain what the issue is please? Those are internal warnings of the library, raised by the tests that ensure backwards compatibility.
Also not that pytest is not a supported test runner for this library, tests should be launched with make test
.
Just first line of th output of the setup.py test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
tox usually shares settings with pytest. pytest is especially usefull because actual tests it prints details about end (python version and versions of the modules which will be used on testing).
And only FTR full output of the test suite in which is possible to see some warnings:
+ /usr/bin/python3 -Wdefault setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing semantic_version.egg-info/PKG-INFO
writing dependency_links to semantic_version.egg-info/dependency_links.txt
writing top-level names to semantic_version.egg-info/top_level.txt
reading manifest file 'semantic_version.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '.*.sw[po]' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
writing manifest file 'semantic_version.egg-info/SOURCES.txt'
running build_ext
test_coerce (tests.test_base.CoerceTestCase) ... ok
test_invalid (tests.test_base.CoerceTestCase) ... ok
test_components (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:424: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec = base.SpecItem(spec_text)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/semantic_version/base.py:531: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
spec = Version(version, partial=True)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/semantic_version/base.py:512: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
self._clause = Spec(requirement_string).clause
ok
test_equality (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:546: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec1 = base.SpecItem('==0.1.0')
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:547: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec2 = base.SpecItem('==0.1.0')
ok
test_hash (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:559: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
len(set([base.SpecItem('==0.1.0'), base.SpecItem('==0.1.0')])))
ok
test_invalids (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:400: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
base.SpecItem(invalid)
ok
test_matches (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:530: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec = base.SpecItem(spec_text)
ok
test_to_string (tests.test_base.SpecItemTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:552: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec = base.SpecItem('==0.1.0')
ok
test_contains (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:762: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
self.assertFalse('ii' in base.Spec('>=0.1.1'))
ok
test_equality (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:695: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
slist1 = base.Spec(spec_list_text)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:696: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
slist2 = base.Spec(spec_list_text)
ok
test_filter_compatible (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:715: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1,!=0.1.4,<0.2.0')
ok
test_filter_empty (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:701: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1')
ok
test_filter_incompatible (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:706: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1,!=0.1.4')
ok
test_hash (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:767: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
len(set([base.Spec('>=0.1.1'), base.Spec('>=0.1.1')])))
ok
test_matches (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:669: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec_list = base.Spec(spec_list_text)
ok
test_parsing (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:618: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec_list = base.Spec(spec_list_text)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:622: DeprecationWarning: Iterating over the components of a SimpleSpec object will be removed in 3.0.
self.assertCountEqual(specs, [str(spec) for spec in spec_list])
ok
test_parsing_split (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:632: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec_list = base.Spec(*spec_list_texts)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:632: DeprecationWarning: Passing 2+ arguments to SimpleSpec will be removed in 3.0; concatenate them with ',' instead.
spec_list = base.Spec(*spec_list_texts)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:635: DeprecationWarning: Iterating over the components of a SimpleSpec object will be removed in 3.0.
self.assertCountEqual(specs, [str(spec) for spec in spec_list])
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:636: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
self.assertEqual(spec_list, base.Spec(','.join(spec_list_texts)))
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:639: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
self.assertIn(str(base.SpecItem(spec_text)), repr(spec_list))
ok
test_select_compatible (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:748: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1,!=0.1.4,<0.2.0')
ok
test_select_empty (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:735: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1')
ok
test_select_incompatible (tests.test_base.SpecTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:739: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
s = base.Spec('>=0.1.1,!=0.1.4')
ok
test_compare (tests.test_base.TopLevelTestCase) ... ok
test_match (tests.test_base.TopLevelTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/semantic_version/base.py:571: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
return Spec(spec).match(Version(version))
ok
test_validate_invalid (tests.test_base.TopLevelTestCase) ... ok
test_validate_valid (tests.test_base.TopLevelTestCase) ... ok
test_bump_clean_versions (tests.test_base.VersionTestCase) ... ok
test_bump_prerelease_versions (tests.test_base.VersionTestCase) ... ok
test_compare_partial_to_self (tests.test_base.VersionTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:193: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
base.Version(text, partial=True),
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:194: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
base.Version(text, partial=True))
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:195: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
self.assertNotEqual(text, base.Version(text, partial=True))
ok
test_compare_to_self (tests.test_base.VersionTestCase) ... ok
test_hash (tests.test_base.VersionTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:204: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
len(set([base.Version('0.1.0'), base.Version('0.1.0', partial=True)])))
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:211: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
base.Version('0.1.0-a1+34', partial=True)
ok
test_invalid_comparisons (tests.test_base.VersionTestCase) ... ok
test_parsing (tests.test_base.VersionTestCase) ... ok
test_parsing_partials (tests.test_base.VersionTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:175: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
version = base.Version(text, partial=True)
ok
test_str (tests.test_base.VersionTestCase) ... ok
test_str_partials (tests.test_base.VersionTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_base.py:185: DeprecationWarning: Partial versions will be removed in 3.0; use SimpleSpec('1.x.x') instead.
version = base.Version(text, partial=True)
ok
skipped 'Django not installed'
test_build_check (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:169: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec = semantic_version.Spec('<=0.1.1-rc1')
ok
test_contains (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:152: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec = semantic_version.Spec('<=0.1.1')
ok
test_invalid (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:131: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
semantic_version.Spec(invalid)
ok
test_match (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:144: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
spec = semantic_version.Spec(spec_text)
ok
test_prerelease_check (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:162: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
strict_spec = semantic_version.Spec('>=0.1.1-')
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:163: PendingDeprecationWarning: The Spec() class will be removed in 3.1; use SimpleSpec() instead.
lax_spec = semantic_version.Spec('>=0.1.1')
ok
test_simple (tests.test_match.MatchTestCase) ... /home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:136: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
spec = semantic_version.SpecItem(valid)
/home/tkloczko/rpmbuild/BUILD/python-semanticversion-2.8.5/tests/test_match.py:138: DeprecationWarning: The `SpecItem` class will be removed in 3.0.
self.assertEqual(spec, semantic_version.SpecItem(normalized))
ok
test_expand (tests.test_npm.NpmSpecTests) ... ok
test_spec (tests.test_npm.NpmSpecTests) ... ok
test_comparisons (tests.test_parsing.ComparisonTestCase) ... ok
test_unordered (tests.test_parsing.ComparisonTestCase) ... ok
test_invalid (tests.test_parsing.ParsingTestCase) ... ok
test_kwargs (tests.test_parsing.ParsingTestCase) ... ok
test_simple (tests.test_parsing.ParsingTestCase) ... ok
test_build (tests.test_spec.FormatTests) ... ok
test_major_minor_patch (tests.test_spec.FormatTests) ... ok
test_precedence (tests.test_spec.FormatTests) ... ok
test_prerelease (tests.test_spec.FormatTests) ... ok
----------------------------------------------------------------------
Ran 51 tests in 0.041s
Thanks for the note about setup.py test
, I'll adjust it.
However, I still don't see which issue you're asking me to solve?
If you are happy about other warnings (I have no idea what theyt can mean) that could mean that there is no issue and fill free to close that ticket :)