hyb
2025-11-04 668edf874b4f77214a8ff4513e60e3c1a973f532
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Ë
@ñúhÏJãóؗdZddlmZddlZddlZddlmZddlmZm    Z    m
Z
ddl m Z ddl m Z ddlmZdd    lmZd
d lmZd
d lmZmZd
d lmZd
dlmZd
dlmZd„ZGd„de«Zdd„Zy)zadistutils.command.sdist
 
Implements the Distutils 'sdist' command (create a source distribution).é)Ú annotationsN)ÚCallable)Ú archive_utilÚdir_utilÚ    file_util)Úlog)Úglob)Ú filterfalse)ÚClassVaré)ÚCommand)ÚDistutilsOptionErrorÚDistutilsTemplateError)ÚFileList)ÚTextFile)Ú convert_pathc󐇗ddlmŠddlm}t    ˆfd„‰j «D««}||«j d«y)zoPrint all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    r )ÚARCHIVE_FORMATS)Ú FancyGetoptc3ó:•K—|]}d|zd‰|df–—Œy­w)úformats=Nr ©)Ú.0Úformatrs  €úVH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/command/sdist.pyú    <genexpr>zshow_formats.<locals>.<genexpr>s/øèø€òà ð
fÑ    ˜d O°FÑ$;¸AÑ$>Ô?ñùsƒz.List of available source distribution formats:N)rrÚ fancy_getoptrÚsortedÚkeysÚ
print_help)rÚformatsrs  @rÚ show_formatsr"sAø€õ/Ý*äóà%×*Ñ*Ó,ôó€GñÓ×#Ñ#Ð$TÕUócó—eZdZUdZd*d„Zgd¢Zgd¢Zded<ddd    efgZ    d
ed <d d dœZ
ded<defgZ dZ ded<d„Z d+d„Zd+d„Zd+d„Zd+d„Zed„«Zd„Zd„Zd„Zd„Zd„Zd „Zd!„Zd+d"„Zd+d#„Zd+d$„Zd%„Zd+d&„Zd+d'„Z d+d(„Z!d)„Z"y),Úsdistz6create a source distribution (tarball, zip file, etc.)có—|jS)zYCallable used for the check sub-command.
 
        Placed here so user_options can view it)Úmetadata_check©Úselfs rÚchecking_metadatazsdist.checking_metadata(s€ð×"Ñ"Ð"r#))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.)rNz6formats 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-r/r1r3r5r8zClassVar[list[str]]Úboolean_optionsz help-formatsNz#list available distribution formatszAClassVar[list[tuple[str, str | None, str, Callable[[], object]]]]Ú help_optionsr-r/)r.r0zClassVar[dict[str, str]]Ú negative_optÚcheck)ÚREADMEz
README.txtz
README.rstzClassVar[tuple[str, ...]]ÚREADMEScó¼—d|_d|_d|_d|_d|_d|_dg|_d|_d|_d|_    d|_
d|_ d|_ y)NTFÚgztar) ÚtemplateÚmanifestÚ use_defaultsr/Ú manifest_onlyÚforce_manifestr!Ú    keep_tempÚdist_dirÚ archive_filesr'ÚownerÚgroupr(s rÚinitialize_optionszsdist.initialize_options~sh€ðˆŒ ؈Œ ð!ˆÔ؈Œ
à"ˆÔØ#ˆÔàyˆŒ ؈ŒØˆŒ à!ˆÔØ"ˆÔ؈Œ
؈
r#cóú—|j€d|_|j€d|_|jd«tj|j
«}|rt d|›d«‚|j€d|_yy)NÚMANIFESTz MANIFEST.inr!zunknown archive format 'ú'Údist)rDrCÚensure_string_listrÚcheck_archive_formatsr!rrI)r)Ú
bad_formats  rÚfinalize_optionszsdist.finalize_options•st€Ø =‰=Ð  Ø&ˆDŒMØ =‰=Ð  Ø)ˆDŒMà ×Ñ     Ô*ä!×7Ñ7¸¿ ¹ ÓEˆ
Ù Ü&Ð)AÀ*ÀÈQÐ'OÓPÐ Pà =‰=Ð  Ø"ˆDMð !r#cóȗt«|_|j«D]}|j|«Œ|j    «|j
ry|j «y©N)rÚfilelistÚget_sub_commandsÚ run_commandÚ get_file_listrFÚmake_distribution)r)Úcmd_names  rÚrunz    sdist.run¤s_€ô!›
ˆŒ ð×-Ñ-Ó/ò    'ˆHØ × Ñ ˜XÕ &ð    'ð      ×ÑÔð × Ò Ø ð     ×ÑÕ r#có”—tjj|j«}|sU|j    «rE|j «|j j«|j j«y|s|jd|jz«|j j«|jr|j«|r|j«|jr|j«|j j«|j j«|j!«y)aCFigure out the list of files to include in the source
        distribution, and put it in 'self.filelist'.  This might involve
        reading the manifest template (and writing the manifest), or just
        reading the manifest, or just using the default file set -- it all
        depends on the user's options.
        Nz?manifest template '%s' does not exist (using default file list))ÚosÚpathÚisfilerCÚ_manifest_is_not_generatedÚ read_manifestrXÚsortÚremove_duplicatesÚwarnÚfindallrEÚ add_defaultsÚ read_templater/Úprune_file_listÚwrite_manifest)r)Útemplate_existss  rr[zsdist.get_file_listºsê€ôŸ'™'Ÿ.™.¨¯©Ó7ˆÙ 4×#BÑ#BÔ#DØ × Ñ Ô  Ø M‰M× Ñ Ô  Ø M‰M× +Ñ +Ô -Ø áØ I‰IØWØ—-‘-ñ ô ð      ‰ ×ÑÔà × Ò Ø × Ñ Ô á Ø × Ñ Ô  à :Š:Ø ×  Ñ  Ô "à  ‰ ×ÑÔØ  ‰ ×'Ñ'Ô)Ø ×ÑÕr#cóä—|j«|j«|j«|j«|j    «|j «|j «y)aLAdd all the default files to self.filelist:
          - README or README.txt
          - setup.py
          - tests/test*.py and test/test*.py
          - all pure Python modules mentioned in setup script
          - all files pointed by package_data (build_py)
          - all files defined in data_files.
          - all files defined as scripts.
          - all C sources listed as part of extensions or C libraries
            in the setup script (doesn't catch C headers!)
        Warns if (README or README.txt) or setup.py are missing; everything
        else is optional.
        N)Ú_add_defaults_standardsÚ_add_defaults_optionalÚ_add_defaults_pythonÚ_add_defaults_data_filesÚ_add_defaults_extÚ_add_defaults_c_libsÚ_add_defaults_scriptsr(s rrizsdist.add_defaultsãsX€ð     ×$Ñ$Ô&Ø ×#Ñ#Ô%Ø ×!Ñ!Ô#Ø ×%Ñ%Ô'Ø ×ÑÔ Ø ×!Ñ!Ô#Ø ×"Ñ"Õ$r#cóò—tjj|«sytjj|«}tjj    |«\}}|tj
|«vS)z±
        Case-sensitive path existence check
 
        >>> sdist._cs_path_exists(__file__)
        True
        >>> sdist._cs_path_exists(__file__.upper())
        False
        F)r`raÚexistsÚabspathÚsplitÚlistdir)ÚfspathrxÚ    directoryÚfilenames    rÚ_cs_path_existszsdist._cs_path_existsùsT€ôw‰w~‰~˜fÔ%Øä—'‘'—/‘/ &Ó)ˆÜ Ÿg™gŸm™m¨GÓ4ш    8Øœ2Ÿ:™: iÓ0Ð0Ð0r#có¾—|j|jjg}|D]¶}t|t«rb|}d}|D]2}|j |«sŒd}|j j|«n|rŒQ|jddj|«z«Œu|j |«r|j j|«Œ¢|jd|›d«Œ¸y)NFTz,standard file not found: should have one of z, zstandard file 'z ' not found)
r@Ú distributionÚ script_nameÚ
isinstanceÚtupler~rXÚappendrgÚjoin)r)Ú    standardsÚfnÚaltsÚgot_its     rrozsdist._add_defaults_standards
sрØ—\‘\ 4×#4Ñ#4×#@Ñ#@ÐAˆ    Øò    AˆBܘ"œeÔ$ؐؐØòBØ×+Ñ+¨BÕ/Ø!%˜ØŸ ™ ×,Ñ,¨RÔ0Ùð    ò Ø—I‘IØFÈÏÉÐSWËÑXõð×'Ñ'¨Ô+Ø—M‘M×(Ñ(¨Õ,à—I‘I °¨t°;Ð?Õ@ñ%    Ar#cóª—gd¢}|D]J}ttjjt    |««}|j
j |«ŒLy)N)ztests/test*.pyz test/test*.pyz    setup.cfg)Úfilterr`rarbr    rXÚextend)r)ÚoptionalÚpatternÚfiless    rrpzsdist._add_defaults_optional s@€ÚCˆØò    (ˆGÜœ2Ÿ7™7Ÿ>™>¬4°«=Ó9ˆEØ M‰M×  Ñ   Õ 'ñ    (r#cóX—|jd«}|jj«r)|jj    |j ««|j D]G\}}}}|D];}|jjtjj||««Œ=ŒIy)NÚbuild_py) Úget_finalized_commandr€Úhas_pure_modulesrXrŒÚget_source_filesÚ
data_filesr„r`rar…)r)r‘Ú_pkgÚsrc_dirÚ
_build_dirÚ    filenamesr}s       rrqzsdist._add_defaults_python&s—€ð×-Ñ-¨jÓ9ˆð × Ñ × -Ñ -Ô /Ø M‰M×  Ñ   ×!:Ñ!:Ó!<Ô =ð5=×4GÑ4Gò    FÑ 0ˆD'˜: yØ%ò FØ— ‘ ×$Ñ$¤R§W¡W§\¡\°'¸8Ó%DÕEñ Fñ    Fr#có—|jj«rÅ|jjD]«}t|t«rGt |«}t jj|«sŒ>|jj|«ŒZ|\}}|D]H}t |«}t jj|«sŒ.|jj|«ŒJŒ­yyrW) r€Úhas_data_filesr•r‚Ústrrr`rarbrXr„)r)ÚitemÚdirnamer™r4s     rrrzsdist._add_defaults_data_files6s°€à × Ñ × +Ñ +Ô -Ø×)Ñ)×4Ñ4ò 4Ü˜d¤CÔ(ä'¨Ó-DÜ—w‘w—~‘~ dÕ+ØŸ ™ ×,Ñ,¨TÕ2ð*.Ñ&G˜YØ&ò4˜Ü(¨›O˜ÜŸ7™7Ÿ>™>¨!Õ,Ø ŸM™M×0Ñ0°Õ3ñ4ñ 4ð .r#có®—|jj«r;|jd«}|jj    |j ««yy)NÚ    build_ext)r€Úhas_ext_modulesr’rXrŒr”)r)r s  rrszsdist._add_defaults_extGsD€Ø × Ñ × ,Ñ ,Ô .Ø×2Ñ2°;Ó?ˆIØ M‰M×  Ñ   ×!;Ñ!;Ó!=Õ >ð /r#có®—|jj«r;|jd«}|jj    |j ««yy)NÚ
build_clib)r€Úhas_c_librariesr’rXrŒr”)r)r£s  rrtzsdist._add_defaults_c_libsLsD€Ø × Ñ × ,Ñ ,Ô .Ø×3Ñ3°LÓAˆJØ M‰M×  Ñ   ×!<Ñ!<Ó!>Õ ?ð /r#có®—|jj«r;|jd«}|jj    |j ««yy)NÚ build_scripts)r€Ú has_scriptsr’rXrŒr”)r)r¦s  rruzsdist._add_defaults_scriptsQsD€Ø × Ñ × (Ñ (Ô *Ø ×6Ñ6°ÓGˆMØ M‰M×  Ñ   ×!?Ñ!?Ó!AÕ Bð +r#c    óЗtjd|j«t|jdddddd¬«}        |j    «}|€n    |j
j |«Œ0    |j«y#ttf$r@}|j|j›dt|j«›d|›«Yd}~Œ]d}~wwxYw#|j«wxYw)zÈRead and parse manifest template file named by self.template.
 
        (usually "MANIFEST.in") The parsing and processing is done by
        'self.filelist', which updates itself accordingly.
        zreading manifest template '%s'T)Ústrip_commentsÚ skip_blanksÚ
join_linesÚ    lstrip_wsÚ    rstrip_wsÚ collapse_joinNz, line z: )rÚinforCrÚreadlinerXÚprocess_template_linerÚ
ValueErrorrgr}ÚintÚ current_lineÚclose)r)rCÚlineÚmsgs    rrjzsdist.read_templateVsä€ô      ‰Ð1°4·=±=ÔAÜØ M‰MØØØØØØô
ˆð    ØØ×(Ñ(Ó*Ø<ØðØ—M‘M×7Ñ7¸Ô=ð ðð N‰NÕ øô /´
Ð;òØ—I‘IØ#×,Ñ,Ð-¨W´S¸×9NÑ9NÓ5OÐ4PÐPRÐSVÐRWÐX÷ñûðûð
N‰NÕ ús5¾CÁBÁ.CÂCÂ6C ÃCà CÃCÃC%có¾—|jd«}|jj«}|jj    dt j |j«¬«|jj    d|¬«tjdk(rd}nd}gd¢}dj|d    j|«|«}|jj    |d
¬ «y) avPrune off branches that might slip into the file list as created
        by 'read_template()', but really don't belong there:
          * the build tree (typically "build")
          * the release tree itself (only an issue if we ran "sdist"
            previously with --keep-temp, or it aborted)
          * any RCS, CVS, .svn, .hg, .git, .bzr, _darcs directories
        ÚbuildN)ÚprefixÚwin32z/|\\ú/)ÚRCSÚCVSz\.svnz\.hgz\.gitz\.bzrÚ_darcsz(^|{})({})({}).*ú|T)Úis_regex) r’r€Ú get_fullnamerXÚexclude_patternr`r{Ú
build_baseÚsysÚplatformrr…)r)r¹Úbase_dirÚsepsÚvcs_dirsÚvcs_ptrns      rrkzsdist.prune_file_listys´€ð×*Ñ*¨7Ó3ˆØ×$Ñ$×1Ñ1Ó3ˆà  ‰ ×%Ñ% d´2·9±9¸U×=MÑ=MÓ3NÐ%ÔOØ  ‰ ×%Ñ% d°8Ð%Ô<ä <‰<˜7Ò "؉DàˆDâRˆØ&×-Ñ-¨d°C·H±H¸XÓ4FÈÓMˆØ  ‰ ×%Ñ% h¸Ð%Õ>r#có8—|j«r$tjd|j›d«y|jj
dd}|j dd«|jtj|j|fd|j›d«y)z²Write the file list in 'self.filelist' (presumably as filled in
        by 'add_defaults()' and 'read_template()') to the manifest file
        named by 'self.manifest'.
        z2not writing to manually maintained manifest file 'rPNrz*# file GENERATED by distutils, do NOT editzwriting manifest file ')
rcrr¯rDrXrÚinsertÚexecuterÚ
write_file)r)Úcontents  rrlzsdist.write_manifests†€ð
× *Ñ *Ô ,Ü H‰HØDÀTÇ]Á]ÀOÐSTÐUô ð à—-‘-×%Ñ%¡aÐ(ˆØ‰qÐFÔGØ  ‰ Ü ×  Ñ  Ø ]‰]˜GÐ $Ø% d§m¡m _°AÐ 6õ    
r#có֗tjj|j«syt    |jd¬«5}t |«}ddd«|dk7S#1swYdk7SxYw)NFúutf-8©Úencodingz+# file GENERATED by distutils, do NOT edit
)r`rarbrDÚopenÚnext)r)ÚfpÚ
first_lines   rrcz sdist._manifest_is_not_generated£sZ€äw‰w~‰~˜dŸm™mÔ,Øä $—-‘-¨'Ô 2ð    "°bܘb›ˆJ÷    "àÐKÑKÐK÷    "àÐKÑKÐKús Á AÁA(c ó2—tjd|j«t|jd¬«5}|jj t dttttj|««««ddd«y#1swYyxYw)zªRead the manifest file (named by 'self.manifest') and use it to
        fill in 'self.filelist', the list of files to include in the source
        distribution.
        zreading manifest file '%s'rÑrÒN) rr¯rDrÔrXrŒr‹r
Ú
is_commentÚmaprœÚstrip)r)Úliness  rrdzsdist.read_manifest¬sj€ô
     ‰Ð-¨t¯}©}Ô=Ü $—-‘-¨'Ô 2ð    °eØ M‰M×  Ñ  ätœ[¬´S¼¿¹ÀEÓ5JÓKÓLô ÷    ÷    ñ    ús ¸A B  Bcó2—|j|«tj|||j¬«t    t
d«r    d}d|›d}nd}d|›d}|st jd«nt j|«|D]l}t
jj|«st jd    |«Œ9t
jj||«}|j|||¬
«Œn|jjj|«y) aÆCreate the directory tree that will become the source
        distribution archive.  All directories implied by the filenames in
        'files' are created under 'base_dir', and then we hard link or copy
        (if hard linking is unavailable) those files into place.
        Essentially, this duplicates the developer's source tree, but in a
        directory named after the distribution, containing only the files
        to be distributed.
        ©Údry_runÚlinkÚhardzmaking hard links in z...Nzcopying files to z)no files to distribute -- empty manifest?z#'%s' not a regular file -- skipping)rà)ÚmkpathrÚ create_treerßÚhasattrr`rÚwarningr¯rarbr…Ú    copy_filer€ÚmetadataÚwrite_pkg_info)r)rÇrràr·ÚfileÚdests       rÚmake_release_treezsdist.make_release_tree¸sã€ð      ‰ HÔÜ×јX u°d·l±lÕCô ”2vÔ ØˆDØ)¨(¨°3Ð7‰CàˆDØ% h Z¨sÐ3ˆCáÜ K‰KÐCÕ Dä H‰HSŒMØò    6ˆDÜ—7‘7—>‘> $Ô'Ü— ‘ ÐAÀ4ÕHä—w‘w—|‘| H¨dÓ3Ø—‘˜t T°Õ5ð     6ð     ×Ñ×"Ñ"×1Ñ1°(Õ;r#cóä—|jj«}tjj    |j
|«}|j ||jj«g}d|jvrM|jj|jj|jjd«««|jD]e}|j||||j|j¬«}|j|«|jj jdd|f«Œg||_|j$s"t'j(||j*¬«yy)a¯Create the source distribution(s).  First, we create the release
        tree with 'make_release_tree()'; then, we create all required
        archive files (according to 'self.formats') from the release tree.
        Finally, we clean up by blowing away the release tree (unless
        'self.keep_temp' is true).  The list of archive files created is
        stored so it can be retrieved later by 'get_archive_files()'.
        Útar)rÇrKrLr%ÚrÞN)r€rÂr`rar…rIrërXrr!r„ÚpopÚindexÚ make_archiverKrLÚ
dist_filesrJrHrÚ remove_treerß)r)rÇÚ    base_namerJÚfmtrés      rr\zsdist.make_distributionâs#€ð×$Ñ$×1Ñ1Ó3ˆÜ—G‘G—L‘L §¡°Ó9ˆ    à ×јx¨¯©×)<Ñ)<Ô=؈ à D—L‘LÑ  Ø L‰L× Ñ  § ¡ × 0Ñ 0°·±×1CÑ1CÀEÓ1JÓ KÔ Là—<‘<ò    EˆCØ×$Ñ$ؘ3¨¸¿¹È4Ï:É:ð%óˆDð ×  Ñ   Ô &Ø × Ñ × (Ñ (× /Ñ /°¸"¸dÐ0CÕ Dð     Eð+ˆÔà~Š~Ü ×  Ñ   °4·<±<Ö @ðr#có—|jS)zzReturn the list of archive files created when the command
        was run, or None if the command hasn't run yet.
        )rJr(s rÚget_archive_fileszsdist.get_archive_filess€ð×!Ñ!Ð!r#)ÚreturnÚbool)røÚNone)#Ú__name__Ú
__module__Ú __qualname__Ú descriptionr*Ú user_optionsr;Ú__annotations__r"r<r=Ú sub_commandsr@rMrUr^r[riÚ staticmethodr~rorprqrrrsrtrurjrkrlrcrdrër\r÷rr#rr%r%%sõ…ØJ€Kó#ò 8€Lòt,€OÐ(óð
˜ÐDÀlÐSðW€LÐSóð
&Øñ.€LÐ*óð
Ð/Ð0Ð1€Là)O€GÐ &ÓOòó. #ó!ó,'óR%ð,ñ1óð1ò Aò,(ò Fò 4ò"?ò
@ò
Có
!óF?ó.
ò&Ló
ó(<óTAó>"r#r%có$—|jd«S)Nú#)Ú
startswith)r¶s rrÙrÙs€Ø ?‰?˜3Ó Ðr#)r¶rœrørù) Ú__doc__Ú
__future__rr`rÅÚcollections.abcrÚ    distutilsrrrÚdistutils._logrr    Ú    itertoolsr
Útypingr Úcorer ÚerrorsrrrXrÚ    text_filerÚutilrr"r%rÙrr#rú<module>rsTðñLõ#ã    Û
Ý$ß7Ñ7ÝÝÝ!ÝåßAÝÝ Ýò Vô`"ˆGô`"ôF r#