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.
Files changed (42) hide show
  1. zc/buildout/__init__.py +49 -0
  2. zc/buildout/buildout.py +2322 -0
  3. zc/buildout/configparser.py +280 -0
  4. zc/buildout/download.py +255 -0
  5. zc/buildout/easy_install.py +2016 -0
  6. zc/buildout/patches.py +303 -0
  7. zc/buildout/pep425tags.py +169 -0
  8. zc/buildout/rmtree.py +77 -0
  9. zc/buildout/testing.py +712 -0
  10. zc/buildout/testing.txt +203 -0
  11. zc/buildout/testrecipes.py +17 -0
  12. zc/buildout/tests/__init__.py +237 -0
  13. zc/buildout/tests/allow-unknown-extras.txt +65 -0
  14. zc/buildout/tests/allowhosts.txt +125 -0
  15. zc/buildout/tests/bootstrap.txt +173 -0
  16. zc/buildout/tests/bootstrap_cl_settings.test +63 -0
  17. zc/buildout/tests/buildout.txt +3634 -0
  18. zc/buildout/tests/configparser.test +517 -0
  19. zc/buildout/tests/debugging.txt +93 -0
  20. zc/buildout/tests/dependencylinks.txt +192 -0
  21. zc/buildout/tests/download.txt +580 -0
  22. zc/buildout/tests/downloadcache.txt +245 -0
  23. zc/buildout/tests/easy_install.txt +1581 -0
  24. zc/buildout/tests/extends-cache.txt +584 -0
  25. zc/buildout/tests/repeatable.txt +499 -0
  26. zc/buildout/tests/runsetup.txt +43 -0
  27. zc/buildout/tests/setup.txt +52 -0
  28. zc/buildout/tests/test_all.py +3799 -0
  29. zc/buildout/tests/test_extras.py +121 -0
  30. zc/buildout/tests/test_increment.py +484 -0
  31. zc/buildout/tests/testing_bugfix.txt +37 -0
  32. zc/buildout/tests/update.txt +285 -0
  33. zc/buildout/tests/windows.txt +68 -0
  34. zc/buildout/utils.py +14 -0
  35. zc.buildout-4.0-py3.11-nspkg.pth +1 -0
  36. zc.buildout-4.0.dist-info/LICENSE.txt +72 -0
  37. zc.buildout-4.0.dist-info/METADATA +930 -0
  38. zc.buildout-4.0.dist-info/RECORD +42 -0
  39. zc.buildout-4.0.dist-info/WHEEL +5 -0
  40. zc.buildout-4.0.dist-info/entry_points.txt +5 -0
  41. zc.buildout-4.0.dist-info/namespace_packages.txt +1 -0
  42. zc.buildout-4.0.dist-info/top_level.txt +1 -0
@@ -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))