Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
196 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
Virtualenv UUID: d1cf2e61-4ac5-467d-9b65-1a3c0e913bf3 | ||
timestamp: 2011-06-16 00:00:00 | ||
full path: /home/juan/.fades/d1cf2e61-4ac5-467d-9b65-1a3c0e913bf3 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 032e6e2c-bc7e-4a7f-ad1d-66ecb9106884 | ||
timestamp: 2009-02-09 00:00:00 | ||
full path: /home/juan/.fades/032e6e2c-bc7e-4a7f-ad1d-66ecb9106884 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 53c8f169-b105-4ed1-a7fc-25792b18fc4c | ||
timestamp: 2001-06-17 00:00:00 | ||
full path: /home/juan/.fades/53c8f169-b105-4ed1-a7fc-25792b18fc4c | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 8cc6666c-fb5e-474b-a8a7-217c9558d5e2 | ||
timestamp: 2017-08-05 00:00:00 | ||
full path: /home/juan/.fades/8cc6666c-fb5e-474b-a8a7-217c9558d5e2 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 7a4a4eb8-b0d2-4d88-a890-4830278e0eb9 | ||
timestamp: 2015-09-06 00:00:00 | ||
full path: /home/juan/.fades/7a4a4eb8-b0d2-4d88-a890-4830278e0eb9 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 7c10fa5f-037e-49b1-a9dd-3462c739e239 | ||
timestamp: 2007-01-15 00:00:00 | ||
full path: /home/juan/.fades/7c10fa5f-037e-49b1-a9dd-3462c739e239 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 37de0f88-3db7-434a-a692-048aa35fbfe7 | ||
timestamp: 2002-07-08 00:00:00 | ||
full path: /home/juan/.fades/37de0f88-3db7-434a-a692-048aa35fbfe7 | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} | ||
|
||
Virtualenv UUID: 000236c6-5ddb-4422-b210-93e09fab603f | ||
timestamp: 2017-12-06 00:00:00 | ||
full path: /home/juan/.fades/000236c6-5ddb-4422-b210-93e09fab603f | ||
dependencies: {} | ||
interpreter: /usr/bin/python3 | ||
options: {'pyvenv_options': [], 'virtualenv_options': []} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{"timestamp": 1308193200, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/d1cf2e61-4ac5-467d-9b65-1a3c0e913bf3", "env_bin_path": "/home/juan/.fades/d1cf2e61-4ac5-467d-9b65-1a3c0e913bf3/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1234144800, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/032e6e2c-bc7e-4a7f-ad1d-66ecb9106884", "env_bin_path": "/home/juan/.fades/032e6e2c-bc7e-4a7f-ad1d-66ecb9106884/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 992746800, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/53c8f169-b105-4ed1-a7fc-25792b18fc4c", "env_bin_path": "/home/juan/.fades/53c8f169-b105-4ed1-a7fc-25792b18fc4c/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1501902000, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/8cc6666c-fb5e-474b-a8a7-217c9558d5e2", "env_bin_path": "/home/juan/.fades/8cc6666c-fb5e-474b-a8a7-217c9558d5e2/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1441508400, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/7a4a4eb8-b0d2-4d88-a890-4830278e0eb9", "env_bin_path": "/home/juan/.fades/7a4a4eb8-b0d2-4d88-a890-4830278e0eb9/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1168830000, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/7c10fa5f-037e-49b1-a9dd-3462c739e239", "env_bin_path": "/home/juan/.fades/7c10fa5f-037e-49b1-a9dd-3462c739e239/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1026097200, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/37de0f88-3db7-434a-a692-048aa35fbfe7", "env_bin_path": "/home/juan/.fades/37de0f88-3db7-434a-a692-048aa35fbfe7/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} | ||
{"timestamp": 1512529200, "installed": {}, "metadata": {"env_path": "/home/juan/.fades/000236c6-5ddb-4422-b210-93e09fab603f", "env_bin_path": "/home/juan/.fades/000236c6-5ddb-4422-b210-93e09fab603f/bin", "pip_installed": true}, "interpreter": "/usr/bin/python3", "options": {"pyvenv_options": [], "virtualenv_options": []}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
|
||
"""Tiny tool to autogenerate random 'venvs.idx' content for testing purposes.""" | ||
|
||
|
||
import os | ||
from random import randint | ||
from uuid import uuid4 | ||
from shutil import which | ||
import datetime | ||
import json | ||
|
||
|
||
def main(): | ||
"""Build a valid random-ish Fades venvs.idx content.""" | ||
y3ar, h0me = datetime.date.today().year, os.path.join(os.path.expanduser("~"), ".fades") | ||
venvs_idx = "" | ||
for _ in range(randint(2, 9)): | ||
random_envpath = os.path.join(h0me, str(uuid4())) | ||
random_timestamp = int(datetime.datetime(year=randint(2000, y3ar), | ||
month=randint(1, 12), | ||
day=randint(1, 28)).timestamp()) | ||
venvs_idx += json.dumps({ | ||
"timestamp": random_timestamp, | ||
"installed": {}, | ||
"metadata": { | ||
"env_path": random_envpath, | ||
"env_bin_path": os.path.join(random_envpath, "bin"), | ||
"pip_installed": True | ||
}, | ||
"interpreter": which("python3") or "/usr/bin/python3.6", | ||
"options": { | ||
"pyvenv_options": [], | ||
"virtualenv_options": [] | ||
} | ||
}) + "\n" | ||
print(venvs_idx.strip()) | ||
return venvs_idx.strip() | ||
|
||
|
||
if __name__ in "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters