From ffdde7938b15c5ccdd6f65a69682fda4b5c42694 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20DA=20ROCHA?= <sebastien@da-rocha.net>
Date: Fri, 22 Jun 2018 18:06:48 +0200
Subject: [PATCH] [mod] #100: Pipenv installation for development:

- with editable trick.
- https://docs.pipenv.org/basics/#editable-dependencies-e-g-e
---
 Pipfile               | 1 +
 Pipfile.lock          | 6 +++++-
 doc/install_pipenv.md | 8 +++++---
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Pipfile b/Pipfile
index a05dbf66..c91fd92a 100644
--- a/Pipfile
+++ b/Pipfile
@@ -10,6 +10,7 @@ tabulate = "*"
 scrypt = "*"
 pyaes = "*"
 PyNaCl = "*"
+"e1839a8" = {path = ".", editable = true}
 
 [dev-packages]
 
diff --git a/Pipfile.lock b/Pipfile.lock
index ae44ec13..f27e6a97 100644
--- a/Pipfile.lock
+++ b/Pipfile.lock
@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "22ac5bb64561eb08ea075a575e2b957157c4ecf5a04b37eada7331161eebe2e7"
+            "sha256": "9781db60bd2b394b50555e7bd36ebf96fbd997f7c2ff27bf5fb9f6ab83a58674"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -56,6 +56,10 @@
             "index": "pypi",
             "version": "==0.4.1"
         },
+        "e1839a8": {
+            "editable": true,
+            "path": "."
+        },
         "ipaddress": {
             "hashes": [
                 "sha256:64b28eec5e78e7510698f6d4da08800a5c575caa4a286c93d651c5d3ff7b6794",
diff --git a/doc/install_pipenv.md b/doc/install_pipenv.md
index 153e31c3..48157795 100644
--- a/doc/install_pipenv.md
+++ b/doc/install_pipenv.md
@@ -10,15 +10,17 @@ git clone https://git.duniter.org/clients/python/silkaj.git
 cd silkaj
 ```
 
-### Install dependencies
+### Install with dependencies
 ```bash
-pipenv install
+pipenv install "-e ."
 ```
 
+The double quotes are important, if you forget them, `pipenv` will install silkaj from pypi
+
 ### Activate pipenv and run silkaj
 ```bash
 pipenv shell
-./silkaj
+silkaj
 ```
 
 ## Manage Python versions with Pyenv
-- 
GitLab