Skip to content

Running tests locally does not run any tests #31

@mgiuca

Description

@mgiuca

Steps to reproduce:

Per the instructions, check out the repository, then run:

python setup.py test

This prints a lot of output including several deprecation warnings, and then "NO TESTS RAN":

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.
/usr/lib/python3/dist-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  ir_d = dist.fetch_build_eggs(dist.install_requires)
/usr/lib/python3/dist-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  tr_d = dist.fetch_build_eggs(dist.tests_require or [])
/usr/lib/python3/dist-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  er_d = dist.fetch_build_eggs(
running egg_info
writing OrbitalPy.egg-info/PKG-INFO
writing dependency_links to OrbitalPy.egg-info/dependency_links.txt
writing requirements to OrbitalPy.egg-info/requires.txt
writing top-level names to OrbitalPy.egg-info/top_level.txt
reading manifest file 'OrbitalPy.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'OrbitalPy.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN

On Ubuntu 24.04.2 LTS.

Proposed solution

I believe on modern Python it is discouraged to directly run setup without a virtual environment. I have managed to get everything working inside a venv which is much better for portability across systems and reproducibility. I will send a PR shortly containing updated setup instructions which work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions