zc.buildout 4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zc/buildout/__init__.py +49 -0
- zc/buildout/buildout.py +2322 -0
- zc/buildout/configparser.py +280 -0
- zc/buildout/download.py +255 -0
- zc/buildout/easy_install.py +2016 -0
- zc/buildout/patches.py +303 -0
- zc/buildout/pep425tags.py +169 -0
- zc/buildout/rmtree.py +77 -0
- zc/buildout/testing.py +712 -0
- zc/buildout/testing.txt +203 -0
- zc/buildout/testrecipes.py +17 -0
- zc/buildout/tests/__init__.py +237 -0
- zc/buildout/tests/allow-unknown-extras.txt +65 -0
- zc/buildout/tests/allowhosts.txt +125 -0
- zc/buildout/tests/bootstrap.txt +173 -0
- zc/buildout/tests/bootstrap_cl_settings.test +63 -0
- zc/buildout/tests/buildout.txt +3634 -0
- zc/buildout/tests/configparser.test +517 -0
- zc/buildout/tests/debugging.txt +93 -0
- zc/buildout/tests/dependencylinks.txt +192 -0
- zc/buildout/tests/download.txt +580 -0
- zc/buildout/tests/downloadcache.txt +245 -0
- zc/buildout/tests/easy_install.txt +1581 -0
- zc/buildout/tests/extends-cache.txt +584 -0
- zc/buildout/tests/repeatable.txt +499 -0
- zc/buildout/tests/runsetup.txt +43 -0
- zc/buildout/tests/setup.txt +52 -0
- zc/buildout/tests/test_all.py +3799 -0
- zc/buildout/tests/test_extras.py +121 -0
- zc/buildout/tests/test_increment.py +484 -0
- zc/buildout/tests/testing_bugfix.txt +37 -0
- zc/buildout/tests/update.txt +285 -0
- zc/buildout/tests/windows.txt +68 -0
- zc/buildout/utils.py +14 -0
- zc.buildout-4.0-py3.11-nspkg.pth +1 -0
- zc.buildout-4.0.dist-info/LICENSE.txt +72 -0
- zc.buildout-4.0.dist-info/METADATA +930 -0
- zc.buildout-4.0.dist-info/RECORD +42 -0
- zc.buildout-4.0.dist-info/WHEEL +5 -0
- zc.buildout-4.0.dist-info/entry_points.txt +5 -0
- zc.buildout-4.0.dist-info/namespace_packages.txt +1 -0
- zc.buildout-4.0.dist-info/top_level.txt +1 -0
zc/buildout/__init__.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2006 Zope Foundation and Contributors.
|
|
4
|
+
# All Rights Reserved.
|
|
5
|
+
#
|
|
6
|
+
# This software is subject to the provisions of the Zope Public License,
|
|
7
|
+
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
|
|
8
|
+
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
|
|
9
|
+
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
10
|
+
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
|
|
11
|
+
# FOR A PARTICULAR PURPOSE.
|
|
12
|
+
#
|
|
13
|
+
##############################################################################
|
|
14
|
+
"""Buildout package
|
|
15
|
+
"""
|
|
16
|
+
# do not change the import order
|
|
17
|
+
# deleting the spec_for_pip hack needs to be done before importing pip
|
|
18
|
+
# see https://github.com/pypa/pip/issues/8761 to understand
|
|
19
|
+
# the reason for the hack.
|
|
20
|
+
# I think it is reasonable to assume we will not run into the race.
|
|
21
|
+
import setuptools
|
|
22
|
+
|
|
23
|
+
try:
|
|
24
|
+
from _distutils_hack import DistutilsMetaFinder
|
|
25
|
+
if hasattr(DistutilsMetaFinder, 'spec_for_pip'):
|
|
26
|
+
del DistutilsMetaFinder.spec_for_pip
|
|
27
|
+
except ImportError:
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
import pip # NOQA
|
|
31
|
+
|
|
32
|
+
import warnings
|
|
33
|
+
from pkg_resources import PkgResourcesDeprecationWarning
|
|
34
|
+
warnings.filterwarnings('ignore', category=PkgResourcesDeprecationWarning)
|
|
35
|
+
warnings.filterwarnings('ignore', message='Setuptools is replacing distutils.')
|
|
36
|
+
|
|
37
|
+
import sys
|
|
38
|
+
import zc.buildout.patches # NOQA
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
WINDOWS = sys.platform.startswith('win')
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class UserError(Exception):
|
|
45
|
+
"""Errors made by a user
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def __str__(self):
|
|
49
|
+
return " ".join(map(str, self.args))
|