pytest-dev / pytest-fixture-tools

Pytest fixture tools
MIT License
38 stars 6 forks source link

Fix setup.py warnings #8

Closed ogajduse closed 1 month ago

ogajduse commented 1 month ago
$ python -m build
/home/ogajduse/.virtualenvs/pytest-fixture-tools/bin/python: No module named build.__main__; 'build' is a package and cannot be directly executed
(pytest-fixture-tools) [Thu Aug 15 10:36:34 ogajduse pytest-fixture-tools] (master) RC:1
$ python setup.py build
/home/ogajduse/repos/pytest-fixture-tools/setup.py:6: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        By 2024-Nov-15, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.
        ********************************************************************************

!!
  from setuptools.command.test import test as TestCommand
/home/ogajduse/.virtualenvs/pytest-fixture-tools/lib/python3.12/site-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
copying pytest_fixture_tools/__init__.py -> build/lib/pytest_fixture_tools
copying pytest_fixture_tools/plugin.py -> build/lib/pytest_fixture_tools
webknjaz commented 1 month ago

https://packaging.python.org/en/latest/guides/modernize-setup-py-project/

ogajduse commented 1 month ago

@webknjaz Mind doing a review of #8?

webknjaz commented 1 month ago

You linked the issue itself 😂

Pierre-Sassoulas commented 1 month ago

Probably meant #9

ogajduse commented 1 month ago

Oh, yes. I was in a hurry for lunch at that moment. :smiley: