setuptools_wrapper package#
Submodules#
setuptools_wrapper.setup module#
A simpler setuptools-based package definition.
- class setuptools_wrapper.setup.PythonVersionCompare(major: int = None, minor: int = None, micro: int = None)[source]#
Bases:
object
Python version string comparison object.
- static from_str(data: str) PythonVersionCompare [source]#
Create a version comparison instance from a string.
- setuptools_wrapper.setup.default_requirements_file(directory: str) str [source]#
Default location to look for the requirements file.
- setuptools_wrapper.setup.get_data_files(pkg_name: str, data_dir: str = 'data') List[str] [source]#
Get the non-code sources under a package directory’s data directory.
- setuptools_wrapper.setup.get_long_description(desc_filename: str = 'README.md') str [source]#
Get a package’s long-description data from a file.
- setuptools_wrapper.setup.get_requirements(reqs_filename: str) Set[str] [source]#
Get a package’s requirements based on its requirements file.
- setuptools_wrapper.setup.inject_self(working_dir: str, curr_pkg_slug: str, pkg: str = 'setuptools-wrapper', force_copy: bool = False) Iterator[None] [source]#
Copy this entire package into the caller’s source distribution. This is the only way to avoid a pointless requirement to already have this package installed to install anything else, and also generally not requiring an explicit install of this package except for command-line use.
- setuptools_wrapper.setup.process_requirements(requirements: Set[str]) Set[str] [source]#
Process conditional statements in requirement declarations.
- setuptools_wrapper.setup.setup(pkg_info: Dict[str, Any], author_info: Dict[str, str], url_override: str = None, classifiers_override: List[str] = None, requirements: Set[str] = None, **kwargs) None [source]#
Build a ‘setuptools.setup’ call with sane defaults and making assumptions about certain aspects of a package’s structure.
Module contents#
Useful defaults and other package metadata.