Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit ec3eb96

Browse files
authored
docs: tutorials: rolling alice: coach alice: our open source guide: setup: Push to current branch
Install in venv
1 parent 0a310af commit ec3eb96

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/tutorials/rolling_alice/0001_coach_alice/0002_our_open_source_guide.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ for more details.
2525
```console
2626
$ git clone -b alice https://github.com/intel/dffml dffml
2727
$ cd dffml/entities/alice
28+
$ python -m venv .venv
29+
$ . .venv/bin/activate
30+
$ python -m pip install -U pip setuptools wheel
2831
$ python -m pip install \
2932
-e .[dev] \
3033
-e ../../ \
@@ -44,7 +47,7 @@ $ cd my-new-python-project
4447
$ echo 'print("Hello World")' > test.py
4548
$ git add test.py
4649
$ git commit -sam 'Initial Commit'
47-
$ git push --set-upstream origin main
50+
$ git push --set-upstream origin $(git branch --show-current)
4851
$ cd ..
4952
$ rm -rf my-new-python-project
5053
```
@@ -72,21 +75,27 @@ Add `OverlayCONTRIBUTING` to the list of overlays to be applied to the
7275
`dffml.overlays.alice.please.contribute.recommended_community_standard`
7376
base flow.
7477

78+
```console
79+
$ sed -i 's/OverlayREADME .*/&\nOverlayCODE_OF_CONDUCT = alice.please.contribute.recommended_community_standards.code_of_conduct:OverlayCODE_OF_CONDUCT/' entry_points.txt
80+
```
81+
82+
The output of `git diff` should look similar to the following
83+
7584
**entry_points.txt**
7685

7786
```diff
7887
diff --git a/entities/alice/entry_points.txt b/entities/alice/entry_points.txt
79-
index 129b2866a1..9e130cb3b2 100644
88+
index b764491..c9bd781 100644
8089
--- a/entities/alice/entry_points.txt
8190
+++ b/entities/alice/entry_points.txt
8291
@@ -9,6 +9,7 @@ CLI = alice.please.contribute.recomme
8392
OverlayGit = alice.please.contribute.recommended_community_standards.recommended_community_standards:OverlayGit
8493
OverlayGitHub = alice.please.contribute.recommended_community_standards.recommended_community_standards:OverlayGitHub
8594
OverlayREADME = alice.please.contribute.recommended_community_standards.readme:OverlayREADME
86-
OverlayCONTRIBUTING = alice.please.contribute.recommended_community_standards.contributing:OverlayCONTRIBUTING
8795
+OverlayCODE_OF_CONDUCT = alice.please.contribute.recommended_community_standards.code_of_conduct:OverlayCODE_OF_CONDUCT
96+
OverlayCONTRIBUTING = alice.please.contribute.recommended_community_standards.contributing:OverlayCONTRIBUTING
8897

89-
[dffml.overlays.alice.please.contribute.recommended_community_standards.overlay.readme]
98+
[dffml.overlays.alice.please.contribute.recommended_community_standards.readme]
9099
```
91100

92101
Add the following section to the end of ``entry_points.txt`` to enable the

0 commit comments

Comments
 (0)