%PDF- %PDF-
Direktori : /usr/local/lib/python3.8/distutils/command/__pycache__/ |
Current File : //usr/local/lib/python3.8/distutils/command/__pycache__/sdist.cpython-38.pyc |
U q©ßa=J ã @ s¸ d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lm Z dd lmZ ddlmZ ddlmZ dd lmZmZ dd„ ZG dd„ deƒZdS )zadistutils.command.sdist Implements the Distutils 'sdist' command (create a source distribution).é N)Úglob)Úwarn)ÚCommand)Údir_util)Ú file_util)Úarchive_util)ÚTextFile)ÚFileList)Úlog)Úconvert_path)ÚDistutilsTemplateErrorÚDistutilsOptionErrorc C s` ddl m} ddlm} g }| ¡ D ] }| d| d|| d f¡ q$| ¡ | |ƒ d¡ dS )zoPrint all possible values for the 'formats' option (used by the "--help-formats" command-line option). r )ÚFancyGetopt)ÚARCHIVE_FORMATSúformats=Né z.List of available source distribution formats:)Zdistutils.fancy_getoptr Zdistutils.archive_utilr ÚkeysÚappendÚsortÚ print_help)r r ÚformatsÚformat© r ú3/usr/local/lib/python3.8/distutils/command/sdist.pyÚshow_formats s ÿÿr c @ s" e Zd ZdZdd„ Zdddddd d ddd ddddgZddddddgZdddefgZdddœZ defgZ dZdd„ Zd d!„ Z d"d#„ Zd$d%„ Zd&d'„ Zd(d)„ Zed*d+„ ƒZd,d-„ Zd.d/„ Zd0d1„ Zd2d3„ Zd4d5„ Zd6d7„ Zd8d9„ Zd:d;„ Zd<d=„ Zd>d?„ Zd@dA„ ZdBdC„ ZdDdE„ Z dFdG„ Z!dHdI„ Z"dS )JÚsdistz6create a source distribution (tarball, zip file, etc.)c C s | j S )zYCallable used for the check sub-command. Placed here so user_options can view it)Úmetadata_check©Úselfr r r Úchecking_metadata( s zsdist.checking_metadata)z template=Útz5name of manifest template file [default: MANIFEST.in])z manifest=Úmz)name of manifest file [default: MANIFEST])úuse-defaultsNzRinclude the default file set in the manifest [default; disable with --no-defaults])úno-defaultsNz"don't include the default file set)ÚpruneNz‰specifically exclude files/directories that should not be distributed (build tree, RCS/CVS dirs, etc.) [default; disable with --no-prune])úno-pruneNz$don't automatically exclude anything)ú manifest-onlyÚozEjust regenerate the manifest and then stop (implies --force-manifest))úforce-manifestÚfzkforcibly regenerate the manifest and carry on as usual. Deprecated: now the manifest is always regenerated.)r Nz6formats for source distribution (comma-separated list))ú keep-tempÚkz@keep the distribution tree around after creating archive file(s))z dist-dir=ÚdzFdirectory to put the source distribution archive(s) in [default: dist])úmetadata-checkNz[Ensure that all required elements of meta-data are supplied. Warn if any missing. [default])zowner=Úuz@Owner name used when creating a tar file [default: current user])zgroup=ÚgzAGroup name used when creating a tar file [default: current group]r"