Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing conftest.py in 3.0.3 source distribution #456

Closed
1 of 1 issue completed
Closed
@mgorny

Description

@mgorny

Which version of Python is the problem with?

3.14, 3.13, 3.12, 3.11, 3.10

What semver version are you using?

3.0.3

What OS are you using? (Add more in the Environment section)

Linux

Situation

As a side effect of removing setuptools_scm, the 3.0.3 source distribution has lots a lot files:

-.coveragerc
-.editorconfig
-.gitignore
-.readthedocs.yaml
 CHANGELOG.rst
-CITATION.cff
 CONTRIBUTING.rst
-CONTRIBUTORS
 LICENSE.txt
 MANIFEST.in
-Makefile
 PKG-INFO
 README.rst
-SUPPORT.md
-changelog.d/
-changelog.d/.gitignore
-changelog.d/README.rst
-changelog.d/_template.rst
-docs/
[…]
 pyproject.toml
-release-procedure.md
 setup.cfg
 src/
 src/semver/
@@ -101,9 +24,6 @@ src/semver.egg-info/dependency_links.txt
 src/semver.egg-info/entry_points.txt
 src/semver.egg-info/top_level.txt
 tests/
-tests/coerce.py
-tests/conftest.py
-tests/semverwithvprefix.py
 tests/test_bump.py
 tests/test_compare.py
 tests/test_deprecated_functions.py
@@ -119,4 +39,3 @@ tests/test_replace.py
 tests/test_semver.py
 tests/test_subclass.py
 tests/test_typeerror-274.py
-tox.ini

Since tests/conftest.py is missing, running test suite now fails due to missing fixtures, e.g.:

_______________________________________ ERROR at setup of test_version_info_should_be_iterable ________________________________________
file /tmp/portage/dev-python/semver-3.0.3/work/semver-3.0.3/tests/test_semver.py, line 39                                              
  def test_version_info_should_be_iterable(version):                                                                                   
E       fixture 'version' not found

I don't know whether the other .py files are actually needed for tests as well.

How to reproduce

wget https://files.pythonhosted.org/packages/13/f8/071c42ed3e9678f66a6d624c8df4cdd1490de2504dde6a1d47b61a8195e2/semver-3.0.3.tar.gz
tar -xf semver-3.0.3.tar.gz
cd semver-3.0.3
pip install -e . pytest
pytest

Expected behavior

All tests passing.

Environment

No response

Sub-issues

Metadata

Metadata

Assignees

Labels

BugError, flaw or fault to produce incorrect or unexpected resultsInfraAll about infrastructure (GitHub Action, project build etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions