From 89e0b3633d5c917e203ef2a192c57870aa2730c2 Mon Sep 17 00:00:00 2001 From: DavHau Date: Tue, 12 Oct 2021 22:01:39 +0700 Subject: [PATCH] update docs and dream.lock example --- docs/concepts-and-benefits.md | 8 +++--- specifications/dream-lock-example.json | 39 +++++++++++++------------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/docs/concepts-and-benefits.md b/docs/concepts-and-benefits.md index 232f5819..cd0f7cbd 100644 --- a/docs/concepts-and-benefits.md +++ b/docs/concepts-and-benefits.md @@ -61,10 +61,10 @@ The general architecture should consist of these components: └───────┬──┘ ▼ ▲ │ ┌────────────┐ │ └──►│Generic Lock│ - └─────────┬──┘ - impure/pure │ ┌────────┐ - online/offline ├──►│Fetcher │◄── Same across all - pure-nix/IFD/external │ └────────┘ languages/frameworks + │ └─────────┬──┘ + - pure-nix │ ┌────────┐ + - IFD / recursive-nix ├──►│Fetcher │◄── Same across all + - impure (external) │ └────────┘ languages/frameworks │ ▼ │ ┌────────┐ └──►│Builder │◄── Reads extra metadata diff --git a/specifications/dream-lock-example.json b/specifications/dream-lock-example.json index 177d1d7e..695cbea9 100644 --- a/specifications/dream-lock-example.json +++ b/specifications/dream-lock-example.json @@ -1,31 +1,15 @@ { - "sources": { - "requests": { - "url": "https://download.pypi.org/requests/2.28.0", - "hash": "000000000000000000000000000000000000000", - "version": "1.2.3", - "type": "fetchurl" - }, - "certifi": { - "url": "https://download.pypi.org/certifi/2.0", - "hash": "000000000000000000000000000000000000000", - "version": "2.3.4", - "type": "fetchurl" - } - }, - "generic": { "buildSystem": "python", - "translatedBy": "python.pure.poetry", - "translatorParams": "--flag_application", + "translatedBy": "python.impure.pip", + "translatorArgs": "", "mainPackage": "requests", - "dependencyCyclesRemoved": true, + "removedDependencies": true, "dependencyGraph": { "requests": [ "certifi" ] - }, - "sourcesCombinedHash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" + } }, "buildSystem": { @@ -34,5 +18,20 @@ "requests": "sdist", "certifi": "wheel" } + }, + + "sources": { + "requests#1.2.3": { + "url": "https://download.pypi.org/requests/2.28.0", + "hash": "000000000000000000000000000000000000000", + "version": "1.2.3", + "type": "fetchurl" + }, + "certifi#2.3.4": { + "url": "https://download.pypi.org/certifi/2.0", + "hash": "000000000000000000000000000000000000000", + "version": "2.3.4", + "type": "fetchurl" + } } }