Skip to content

Commit e7ca528

Browse files
author
Adam Nelson
committed
Merge remote-tracking branch 'upstream/master'
2 parents 328a261 + 7784bff commit e7ca528

35 files changed

+639
-105
lines changed

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ see:
66

77
http://docs.python-guide.org/en/latest/notes/contribute/
88

9+
How to test your changes
10+
------------------------
11+
12+
The html version of this guide is built with [sphinx](http://www.sphinx-doc.org/en/stable/). You may test your revisions locally by having sphinx installed. You can do this easily with pip (as described in the link).
13+
14+
``` bash
15+
pip install --user sphinx
16+
```
17+
18+
Then navigate to the directory of the makefile and ```make build``` or ```make html```. Sphinx will then generate the html in a folder called _build/html
19+
20+
After navigating to this folder, you can then use python's built in webserver to view your changes locally:
21+
22+
``` bash
23+
python3 -m http.server
24+
```
25+
26+
By default, http.server listens on every ip address bound on your host on port 8000. To bind to a specific one, say, localhost on port 8005:
27+
28+
``` bash
29+
python3 -m http.server 8005 --bind 127.0.0.1
30+
```
931

1032
Style Guide
1133
-----------

docs/_templates/sidebarintro.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ <h3>Stay Informed</h3>
2020

2121
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
2222

23+
<h3>O'Reilly Book</h3>
24+
25+
<p>This guide is now available in tangible book form!</p>
26+
27+
<a href="https://www.amazon.com/Hitchhikers-Guide-Python-Practices-Development/dp/1491933178/ref=as_li_ss_il?ie=UTF8&linkCode=li2&tag=bookforkind-20&linkId=804806ebdacaf3b56567347f3afbdbca" target="_blank"><img border="0" src="https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1491933178&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bookforkind-20" ></a><img src="//ir-na.amazon-adsystem.com/e/ir?t=bookforkind-20&l=li2&o=1&a=1491933178" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
28+
29+
<p>All proceeds are being directly donated to the <a href="https://djangogirls.org">DjangoGirls</a> organization.</p>
2330

2431
<h3>Other Projects</h3>
2532

@@ -53,7 +60,8 @@ <h3>Useful Links</h3>
5360
<h3>Translations</h3>
5461
<ul>
5562
<li><a href="http://docs.python-guide.org/en/latest/">English</a></li>
56-
<li><a href="http://pythonguidecn.readthedocs.org/zh/latest/">Chinese</a></li>
57-
<li><a href="http://python-guide-ja.readthedocs.org/en/latest/">Japanese</a></li>
58-
<li><a href="http://python-guide-kr.readthedocs.org/ko/latest/">Korean</a></li>
59-
</ul>
63+
<li><a href="https://python-guide-fr.readthedocs.io/fr/latest/">French</a></li>
64+
<li><a href="https://pythonguidecn.readthedocs.io/zh/latest/">Chinese</a></li>
65+
<li><a href="https://python-guide-ja.readthedocs.io/en/latest/">Japanese</a></li>
66+
<li><a href="https://python-guide-kr.readthedocs.io/ko/latest/">Korean</a></li>
67+
</ul>

docs/_templates/sidebarlogo.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ <h3>Get Updates</h3>
1919

2020
<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>
2121

22+
<h3>O'Reilly Book</h3>
2223

24+
<p>This guide is now available in tangible book form!</p>
25+
26+
<a href="https://www.amazon.com/Hitchhikers-Guide-Python-Practices-Development/dp/1491933178/ref=as_li_ss_il?ie=UTF8&linkCode=li2&tag=bookforkind-20&linkId=804806ebdacaf3b56567347f3afbdbca" target="_blank"><img border="0" src="https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1491933178&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=bookforkind-20" ></a><img src="//ir-na.amazon-adsystem.com/e/ir?t=bookforkind-20&l=li2&o=1&a=1491933178" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
27+
28+
<p>All proceeds are being directly donated to the <a href="https://djangogirls.org">DjangoGirls</a> organization.</p>
2329

2430
<h3>Other Projects</h3>
2531

@@ -36,7 +42,8 @@ <h3>Other Projects</h3>
3642
<h3>Translations</h3>
3743
<ul>
3844
<li><a href="http://docs.python-guide.org/en/latest/">English</a></li>
39-
<li><a href="http://pythonguidecn.readthedocs.org/zh/latest/">Chinese</a></li>
40-
<li><a href="http://python-guide-ja.readthedocs.org/en/latest/">Japanese</a></li>
41-
<li><a href="http://python-guide-kr.readthedocs.org/ko/latest/">Korean</a></li>
42-
</ul>
45+
<li><a href="https://python-guide-fr.readthedocs.io/fr/latest/">French</a></li>
46+
<li><a href="https://pythonguidecn.readthedocs.io/zh/latest/">Chinese</a></li>
47+
<li><a href="https://python-guide-ja.readthedocs.io/en/latest/">Japanese</a></li>
48+
<li><a href="https://python-guide-kr.readthedocs.io/ko/latest/">Korean</a></li>
49+
</ul>

docs/contents.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ different scenarios.
6464
scenarios/xml
6565
scenarios/json
6666
scenarios/crypto
67+
scenarios/ml
6768
scenarios/clibs
6869
6970

docs/dev/env.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ features can be brought to IntelliJ with the free
150150
versions of PyCharm: Professional Edition (Free 30-day trial) and Community
151151
Edition(Apache 2.0 License) with fewer features.
152152

153+
Python (on Visual Studio Code)
154+
-----------------------------
155+
156+
`Python for Visual Studio <https://marketplace.visualstudio.com/items?itemName=donjayamanne.python>`_ is an extension for the `Visual Studio Code IDE <https://code.visualstudio.com>`_.
157+
This is a free, light weight, open source IDE, with support for Mac, Windows, and Linux.
158+
Built using open source technologies such as Node.js and Python, with compelling features such as Intellisense (autocompletion), local and remote debugging, linting, and the like.
159+
160+
MIT licensed.
161+
153162
Enthought Canopy
154163
----------------
155164
`Enthought Canopy <https://www.enthought.com/products/canopy/>`_ is a Python

docs/dev/virtualenvs.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ projects in separate places, by creating virtual Python environments for them.
88
It solves the "Project X depends on version 1.x but, Project Y needs 4.x"
99
dilemma, and keeps your global site-packages directory clean and manageable.
1010

11+
<<<<<<< HEAD
1112
For example, you can work on a project which requires Django 1.9 while also
13+
=======
14+
For example, you can work on a project which requires Django 1.10 while also
15+
>>>>>>> upstream/master
1216
maintaining a project which requires Django 1.8.
1317

1418
virtualenv
@@ -127,7 +131,7 @@ control by adding it to the ignore list.
127131
virtualenvwrapper
128132
-----------------
129133

130-
`virtualenvwrapper <http://virtualenvwrapper.readthedocs.org/en/latest/index.html>`_
134+
`virtualenvwrapper <https://virtualenvwrapper.readthedocs.io/en/latest/index.html>`_
131135
provides a set of commands which makes working with virtual environments much
132136
more pleasant. It also places all your virtual environments in one place.
133137

@@ -139,7 +143,7 @@ To install (make sure **virtualenv** is already installed):
139143
$ export WORKON_HOME=~/Envs
140144
$ source /usr/local/bin/virtualenvwrapper.sh
141145
142-
(`Full virtualenvwrapper install instructions <http://virtualenvwrapper.readthedocs.org/en/latest/install.html>`_.)
146+
(`Full virtualenvwrapper install instructions <https://virtualenvwrapper.readthedocs.io/en/latest/install.html>`_.)
143147

144148
For Windows, you can use the `virtualenvwrapper-win <https://github.com/davidmarble/virtualenvwrapper-win/>`_.
145149

@@ -211,7 +215,7 @@ Other useful commands
211215
``lssitepackages``
212216
Shows contents of :file:`site-packages` directory.
213217

214-
`Full list of virtualenvwrapper commands <http://virtualenvwrapper.readthedocs.org/en/latest/command_ref.html>`_.
218+
`Full list of virtualenvwrapper commands <https://virtualenvwrapper.readthedocs.io/en/latest/command_ref.html>`_.
215219

216220
virtualenv-burrito
217221
------------------

docs/intro/learning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ without having to install Python locally.
3838
If you want a more traditional book, *Python For You and Me* is an excellent
3939
resource for learning all aspects of the language.
4040

41-
`Python for You and Me <http://pymbook.readthedocs.org/>`_
41+
`Python for You and Me <https://pymbook.readthedocs.io/>`_
4242

4343
Online Python Tutor
4444
~~~~~~~~~~~~~~~~~~~

docs/intro/news.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ Weekly Python Newsletter containing Python Articles, Projects, Videos, Tweets
4747
delivered in your inbox. Keep Your Python Programming Skills Updated.
4848

4949
`Import Python Weekly Newsletter <http://www.importpython.com/newsletter/>`_
50+
51+
Awesome Python Newsletter
52+
~~~~~~~~~~~~~~~~~~~~
53+
54+
A weekly overview of the most popular Python news, articles and packages.
55+
56+
`Awesome Python Newsletter <https://python.libhunt.com/newsletter>`_

docs/scenarios/admin.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Ansible
190190
`Ansible <http://ansible.com/>`_ is an open source system automation tool.
191191
The biggest advantage over Puppet or Chef is it does not require an agent on
192192
the client machine. Playbooks are Ansible’s configuration, deployment, and
193-
orchestration language and are written in in YAML with Jinja2 for templating.
193+
orchestration language and are written in YAML with Jinja2 for templating.
194194

195195
Ansible supports Python versions 2.6 and 2.7 and can be installed via pip:
196196

@@ -262,7 +262,7 @@ To create a simple cookbook the `knife <https://docs.chef.io/knife.html>`_ comma
262262
263263
`Getting started with Chef <http://gettingstartedwithchef.com/first-steps-with-chef.html>`_
264264
is a good starting point for Chef Beginners and many community maintained cookbooks that can
265-
serve as a good reference or tweaked to serve your infrustructure configuration needs can be
265+
serve as a good reference or tweaked to serve your infrastructure configuration needs can be
266266
found on the `Chef Supermarket <https://supermarket.chef.io/cookbooks>`_.
267267

268268
- `Chef Documentation <https://docs.chef.io/>`_
@@ -378,5 +378,14 @@ Buildout is primarily used to download and set up dependencies in Python eggs
378378
format of the software being developed or deployed. Recipes for build tasks in any
379379
environment can be created, and many are already available.
380380

381-
Buidout is written in Python.
381+
Shinken
382+
-------
383+
384+
`Shinken <http://www.shinken-monitoring.org/>`_ is a modern, Nagios compatible
385+
monitoring framework written in Python. Its main goal is to give users a flexible
386+
architecture for their monitoring system that is designed to scale to large
387+
environments.
382388

389+
Shinken is backwards-compatible with the Nagios configuration standard, and
390+
plugins.It works on any operating system, and architecture that supports Python
391+
which includes Windows, GNU/Linux, and FreeBSD.

docs/scenarios/ci.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ automate the compile/test cycle to validate code changes.
3535
Tox
3636
---
3737

38-
`tox <http://tox.readthedocs.org/en/latest/>`_ is an automation tool providing
38+
`tox <https://tox.readthedocs.io/en/latest/>`_ is an automation tool providing
3939
packaging, testing and deployment of Python software right from the console or
4040
CI server. It is a generic virtualenv management and test command line tool
4141
which provides the following features:

0 commit comments

Comments
 (0)