class documentation

class TestSdistTest: (source)

View In Hierarchy

Undocumented

Class Method make_strings Undocumented
Method assert_package_data_in_manifest Undocumented
Method source_dir Undocumented
Method test_add_files_referenced_by_config_directives Undocumented
Method test_build_subcommand_source_files Undocumented
Method test_custom_build_py Ensure projects defining custom build_py don't break when creating sdists (issue #2849)
Method test_defaults_case_sensitivity Make sure default files (README.*, etc.) are added in a case-sensitive way to avoid problems with packages built on Windows.
Method test_manifest_is_read_with_utf8_encoding Undocumented
Method test_manifest_is_written_with_utf8_encoding Undocumented
Method test_package_data_and_include_package_data_in_sdist Ensure package_data and include_package_data work together.
Method test_package_data_in_sdist Regression test for pull request #4: ensures that files listed in package_data are included in the manifest even if they're not added to version control.
Method test_pyproject_toml_excluded Check that pyproject.toml can excluded even if present
Method test_pyproject_toml_in_sdist Check if pyproject.toml is included in source distribution if present
Method test_read_manifest_skips_non_utf8_filenames Undocumented
Method test_sdist_with_latin1_encoded_filename Undocumented
Method test_sdist_with_utf8_encoded_filename Undocumented
Method test_setup_py_excluded Undocumented
Method test_setup_py_exists Undocumented
Method test_setup_py_missing Undocumented
Method test_write_manifest_allows_utf8_filenames Undocumented
Method test_write_manifest_skips_non_utf8_filenames Files that cannot be encoded to UTF-8 (specifically, those that weren't originally successfully decoded and have surrogate escapes) should be omitted from the manifest. See https://bitbucket.org/tarek/distribute/issue/303 for history.
Constant _EXAMPLE_DIRECTIVES Undocumented
@classmethod
def make_strings(cls, item): (source)

Undocumented

def assert_package_data_in_manifest(self, cmd): (source)

Undocumented

@pytest.fixture(autouse=True)
def source_dir(self, tmpdir): (source)

Undocumented

@pytest.mark.parametrize('config', _EXAMPLE_DIRECTIVES.keys())
def test_add_files_referenced_by_config_directives(self, tmp_path, config): (source)

Undocumented

def test_build_subcommand_source_files(self, tmpdir): (source)

Undocumented

def test_custom_build_py(self): (source)

Ensure projects defining custom build_py don't break when creating sdists (issue #2849)

def test_defaults_case_sensitivity(self, tmpdir): (source)

Make sure default files (README.*, etc.) are added in a case-sensitive way to avoid problems with packages built on Windows.

@fail_on_ascii
def test_manifest_is_read_with_utf8_encoding(self): (source)

Undocumented

@fail_on_ascii
def test_manifest_is_written_with_utf8_encoding(self): (source)

Undocumented

def test_package_data_and_include_package_data_in_sdist(self): (source)

Ensure package_data and include_package_data work together.

def test_package_data_in_sdist(self): (source)

Regression test for pull request #4: ensures that files listed in package_data are included in the manifest even if they're not added to version control.

def test_pyproject_toml_excluded(self, tmpdir): (source)

Check that pyproject.toml can excluded even if present

def test_pyproject_toml_in_sdist(self, tmpdir): (source)

Check if pyproject.toml is included in source distribution if present

@fail_on_latin1_encoded_filenames
def test_read_manifest_skips_non_utf8_filenames(self): (source)

Undocumented

@fail_on_latin1_encoded_filenames
@skip_under_xdist
def test_sdist_with_latin1_encoded_filename(self): (source)

Undocumented

@fail_on_ascii
@fail_on_latin1_encoded_filenames
def test_sdist_with_utf8_encoded_filename(self): (source)

Undocumented

def test_setup_py_excluded(self): (source)

Undocumented

def test_setup_py_exists(self): (source)

Undocumented

def test_setup_py_missing(self): (source)

Undocumented

@fail_on_ascii
def test_write_manifest_allows_utf8_filenames(self): (source)

Undocumented

@skip_under_xdist
def test_write_manifest_skips_non_utf8_filenames(self): (source)

Files that cannot be encoded to UTF-8 (specifically, those that weren't originally successfully decoded and have surrogate escapes) should be omitted from the manifest. See https://bitbucket.org/tarek/distribute/issue/303 for history.

_EXAMPLE_DIRECTIVES: dict[str, str] = (source)

Undocumented

Value
{'setup.cfg - long_description and version': '''
            [metadata]
            name = testing
            version = file: src/VERSION.txt
            license_files = DOWHATYOUWANT
            long_description = file: README.rst, USAGE.rst
            ''',
...