Преглед изворни кода

requirements are defined in pyproject.toml

Thomas Waldmann пре 1 година
родитељ
комит
e80d922730
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      docs/installation.rst
  2. 1 1
      src/borg/archiver.py
  3. 1 1
      src/borg/helpers/msgpack.py

+ 1 - 1
docs/installation.rst

@@ -180,7 +180,7 @@ following dependencies first:
 
 
   - Either pyfuse3_ (preferably, newer and maintained) or llfuse_ (older,
   - Either pyfuse3_ (preferably, newer and maintained) or llfuse_ (older,
     unmaintained now). See also the BORG_FUSE_IMPL env variable.
     unmaintained now). See also the BORG_FUSE_IMPL env variable.
-  - See setup.py about the version requirements.
+  - See pyproject.toml about the version requirements.
 
 
 If you have troubles finding the right package names, have a look at the
 If you have troubles finding the right package names, have a look at the
 distribution specific sections below or the Vagrantfile in the git repository,
 distribution specific sections below or the Vagrantfile in the git repository,

+ 1 - 1
src/borg/archiver.py

@@ -5198,7 +5198,7 @@ class Archiver:
         self.prerun_checks(logger, is_serve)
         self.prerun_checks(logger, is_serve)
         if not is_supported_msgpack():
         if not is_supported_msgpack():
             logger.error("You do not have a supported version of the msgpack python package installed. Terminating.")
             logger.error("You do not have a supported version of the msgpack python package installed. Terminating.")
-            logger.error("This should never happen as specific, supported versions are required by our setup.py.")
+            logger.error("This should never happen as specific, supported versions are required by our pyproject.toml.")
             logger.error("Do not contact borgbackup support about this.")
             logger.error("Do not contact borgbackup support about this.")
             raise Error("unsupported msgpack version")
             raise Error("unsupported msgpack version")
         if is_slow_msgpack():
         if is_slow_msgpack():

+ 1 - 1
src/borg/helpers/msgpack.py

@@ -135,7 +135,7 @@ def is_slow_msgpack():
 
 
 
 
 def is_supported_msgpack():
 def is_supported_msgpack():
-    # DO NOT CHANGE OR REMOVE! See also requirements and comments in setup.py.
+    # DO NOT CHANGE OR REMOVE! See also requirements and comments in pyproject.toml.
     import msgpack
     import msgpack
     return (1, 0, 3) <= msgpack.version <= (1, 0, 7) and \
     return (1, 0, 3) <= msgpack.version <= (1, 0, 7) and \
            msgpack.version not in []  # < add bad releases here to deny list
            msgpack.version not in []  # < add bad releases here to deny list