-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vendoring-compatible imports #316
Vendoring-compatible imports #316
Commits on Jan 14, 2021
-
imports: Make exceptions-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedJan 14, 2021 Configuration menu - View commit details
-
Copy full SHA for ac99f5d - Browse repository at this point
Copy the full SHA ac99f5dView commit details -
imports: Make formats-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedJan 14, 2021 Configuration menu - View commit details
-
Copy full SHA for fe63e10 - Browse repository at this point
Copy the full SHA fe63e10View commit details -
imports: Make hash-imports compatible with vendoring
Make hash module imports compatible with the vendoring tool. This is trickier than the other cases: * "hash" is a builtin function, overloading that with module name seems bad * the resulting code "hash.digest(algorithm)" reads like hash is an object... Not ideal Luckily there are few functions in the module: Import the functions directly to avoid importing the module.
Jussi Kukkonen committedJan 14, 2021 Configuration menu - View commit details
-
Copy full SHA for 16dbb1c - Browse repository at this point
Copy the full SHA 16dbb1cView commit details
Commits on Feb 11, 2021
-
imports: Make "*keys"-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 787f965 - Browse repository at this point
Copy the full SHA 787f965View commit details -
imports: Make settings-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for dfe9039 - Browse repository at this point
Copy the full SHA dfe9039View commit details -
imports: Make storage-imports compatible with vendoring
Import only the FilesystemBackend class when needed: this is compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for dea2b2a - Browse repository at this point
Copy the full SHA dea2b2aView commit details -
imports: Make util-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 0f401fb - Browse repository at this point
Copy the full SHA 0f401fbView commit details -
imports: Make schema-import compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for af6ae6a - Browse repository at this point
Copy the full SHA af6ae6aView commit details -
gpg: Rename 'process' variables to 'gpg_process'
The aim is to avoid potential conflict with 'process' module.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for b4a069f - Browse repository at this point
Copy the full SHA b4a069fView commit details -
imports: Make process-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for e0f5a35 - Browse repository at this point
Copy the full SHA e0f5a35View commit details -
imports: Make ed25519-import compatible with vendoring
Rename the import to make it clear this is the python module, use an import line that is compatible with vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f64ac96 - Browse repository at this point
Copy the full SHA f64ac96View commit details -
imports: Make gpg.util-imports compatible with vendoring
Use gpg_util as local name to avoid potential conflicts with the other util module.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 3e2efa5 - Browse repository at this point
Copy the full SHA 3e2efa5View commit details -
imports: Make gpg.exceptions-imports compatible with vendoring
Importing individual errors avoids conflict with the other exceptions module in securesystemslib.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for fdfd258 - Browse repository at this point
Copy the full SHA fdfd258View commit details -
imports: Make gpg.constants-imports compatible with vendoring
Use "from securesystemslib import <mod>" instead of "import securesystemslib.<mod>" to make securesystemslib compatible with the vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 81d60f3 - Browse repository at this point
Copy the full SHA 81d60f3View commit details -
imports: Make gpg.common-import compatible with vendoring
Importing the two functions individually seems reasonable here.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 5150c75 - Browse repository at this point
Copy the full SHA 5150c75View commit details -
imports: tweak imports in gpg.constants
The results of the import is same, but new style is compatible with vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 719d315 - Browse repository at this point
Copy the full SHA 719d315View commit details -
imports: Fix external imports (crypto, nacl)
Modify the way nacl and cryptography imports are made to make them compatible with vendoring tool.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for f0fbeb0 - Browse repository at this point
Copy the full SHA f0fbeb0View commit details -
gpg: Remove a circular dependency
There is a circular dependency in gpg.constants -> gpg.rsa -> gpg.util -> gpg.constants This is not a problem on python3 or python2 when the imports are done with "import securesystemslib.<mod>" style. However with the "from securesystemslib import <mod>" style python2 decides this is a ImportError. Remove the circular dependency by moving the module variables from constants to another file.
Jussi Kukkonen committedFeb 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 25f112b - Browse repository at this point
Copy the full SHA 25f112bView commit details