class documentation

class TestPresetField: (source)

View In Hierarchy

Undocumented

Method pyproject Undocumented
Method test_listed_in_dynamic Undocumented
Method test_not_listed_in_dynamic For the time being we just warn if the user pre-set values (e.g. via ``setup.py``) but do not include them in ``dynamic``.
Method test_optional_dependencies_dont_remove_env_markers Internally setuptools converts dependencies with markers to "extras". If ``install_requires`` is given by ``setup.py``, we have to ensure that applying ``optional-dependencies`` does not overwrite the mandatory dependencies with markers (see #3204).
Method test_warning_overwritten_dependencies Undocumented
def pyproject(self, tmp_path, dynamic, extra_content=''): (source)

Undocumented

@pytest.mark.parametrize('attr, field, value', [('install_requires', 'dependencies', []), ('extras_require', 'optional-dependencies', {}), ('install_requires', 'dependencies', ['six']), ('classifiers', 'classifiers', ['Private :: Classifier'])])
def test_listed_in_dynamic(self, tmp_path, attr, field, value): (source)

Undocumented

@pytest.mark.parametrize('attr, field, value', [('install_requires', 'dependencies', ['six']), ('classifiers', 'classifiers', ['Private :: Classifier'])])
def test_not_listed_in_dynamic(self, tmp_path, attr, field, value): (source)

For the time being we just warn if the user pre-set values (e.g. via ``setup.py``) but do not include them in ``dynamic``.

def test_optional_dependencies_dont_remove_env_markers(self, tmp_path): (source)

Internally setuptools converts dependencies with markers to "extras". If ``install_requires`` is given by ``setup.py``, we have to ensure that applying ``optional-dependencies`` does not overwrite the mandatory dependencies with markers (see #3204).

def test_warning_overwritten_dependencies(self, tmp_path): (source)

Undocumented