Skip to content

Commit 6e79012

Browse files
committed
updating app dependencies with a learning checklist
1 parent 2d0a4b5 commit 6e79012

File tree

7 files changed

+36
-5
lines changed

7 files changed

+36
-5
lines changed

application-dependencies.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@ <h2>Application dependency resources</h2>
160160
<a href="http://askubuntu.com/questions/244641/how-to-set-up-and-use-a-virtual-python-environment-in-ubuntu">virtual environment for Python development</a>.</p>
161161
</li>
162162
</ul>
163+
<h2>Application dependencies learning checklist</h2>
164+
<p><i class="fa fa-check-square-o"></i>
165+
Ensure the libraries your web application depends on are all captured in a
166+
requirement.txt file with pegged versions. </p>
167+
<p><i class="fa fa-check-square-o"></i>
168+
An easy way to capture currently installed dependencies is with the
169+
<code>pip freeze</code> command.</p>
170+
<p><i class="fa fa-check-square-o"></i>
171+
Create a fresh virtualenv and install the dependencies from your
172+
requirements.txt file by using the <code>pip install -r requirements.txt</code>
173+
command.</p>
174+
<p><i class="fa fa-check-square-o"></i>
175+
Check that your application runs properly with the fresh virtualenv and only
176+
the installed dependencies from the requirements.txt file.</p>
163177
<h3>What do you need to learn after installing your app dependencies?</h3>
164178
<div class="row">
165179
<div class="col-md-3">

change-log.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>Change Log</h1>
4747
<h2>2014</h2>
4848
<h3>May</h3>
4949
<ul>
50-
<li>Added learning checklist for source control.</li>
50+
<li>Added learning checklist for source control and application dependencies.</li>
5151
<li>Moving learning checklists to the bottom of the pages since they are
5252
specific advice for steps to take after reading a section.</li>
5353
<li>Added a stub section for APIs.</li>

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-23T09:08:32Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-24T07:34:09Z</updated></feed>

future-directions.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ <h1>Future Directions</h1>
6767
<p>Create learning checklists for every section where it makes sense. The
6868
remaining sections that need checklists are </p>
6969
<ol>
70-
<li>application dependencies</li>
7170
<li>configuration management</li>
7271
<li>NoSQL data stores</li>
7372
<li>application programming interfaces</li>

source/content/pages/03-deployment/0315-application-dependencies.markdown

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,23 @@ further clarification.
141141
[virtual environment for Python development](http://askubuntu.com/questions/244641/how-to-set-up-and-use-a-virtual-python-environment-in-ubuntu).
142142

143143

144+
## Application dependencies learning checklist
145+
<i class="fa fa-check-square-o"></i>
146+
Ensure the libraries your web application depends on are all captured in a
147+
requirement.txt file with pegged versions.
148+
149+
<i class="fa fa-check-square-o"></i>
150+
An easy way to capture currently installed dependencies is with the
151+
``pip freeze`` command.
152+
153+
<i class="fa fa-check-square-o"></i>
154+
Create a fresh virtualenv and install the dependencies from your
155+
requirements.txt file by using the ``pip install -r requirements.txt``
156+
command.
157+
158+
<i class="fa fa-check-square-o"></i>
159+
Check that your application runs properly with the fresh virtualenv and only
160+
the installed dependencies from the requirements.txt file.
161+
162+
144163
### What do you need to learn after installing your app dependencies?

source/content/pages/10-misc/1005-change-log.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the
2424

2525
## 2014
2626
### May
27-
* Added learning checklist for source control.
27+
* Added learning checklist for source control and application dependencies.
2828
* Moving learning checklists to the bottom of the pages since they are
2929
specific advice for steps to take after reading a section.
3030
* Added a stub section for APIs.

source/content/pages/10-misc/1007-future-directions.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Here are some things I'm actively working on:
4545
* Create learning checklists for every section where it makes sense. The
4646
remaining sections that need checklists are
4747

48-
1. application dependencies
4948
1. configuration management
5049
1. NoSQL data stores
5150
1. application programming interfaces

0 commit comments

Comments
 (0)