Skip to content

Commit dadb855

Browse files
author
Kenneth Reitz
committed
Merge pull request realpython#199 from clinthowarth/master
clean up license overview, add emacs starting points
2 parents af72128 + e36fd9d commit dadb855

File tree

2 files changed

+39
-44
lines changed

2 files changed

+39
-44
lines changed

docs/dev/env.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Python-mode
6464
^^^^^^^^^^^
6565

6666
Python-mode_ is complex solution in VIM for work with python code.
67-
It's have:
67+
It has:
6868

6969
- Async python code checking (pylint, pyflakes, pep8, mccabe) in any combination;
7070
- Code refactoring and autocompletion with Rope;
@@ -90,6 +90,21 @@ And more stuff.
9090

9191
.. todo:: add supertab notes
9292

93+
Emacs
94+
-----
95+
96+
Emacs is a powerful text editor. It's fully programmable (lisp), but
97+
it can be some work to wire up correctly. A good start if you're
98+
already an Emacs user is `Python Programming in Emacs`_ at EmacsWiki.
99+
100+
1. Emacs itself comes with a python mode.
101+
2. Python ships with an alternate version:
102+
`python-mode.el <https://launchpad.net/python-mode>`_
103+
3. Fabián Ezequiel Gallina's provides nice functionality and
104+
behavior out of the box: `python.el <https://github.com/fgallina/python.el>`_
105+
106+
.. _Python Programming in Emacs: http://emacswiki.org/emacs/PythonProgrammingInEmacs
107+
93108
TextMate
94109
--------
95110

@@ -202,7 +217,7 @@ environment, just remove the directory it was installed into. (In this
202217
case, it would be ``rm -rf venv``).
203218

204219
Other Notes
205-
~~~~~~~~~~~
220+
^^^^^^^^^^^
206221

207222
Running ``virtualenv`` with the option ``--no-site-packages`` will not
208223
include the packages that are installed globally. This can be useful

docs/writing/license.rst

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
Choosing a License
22
==================
33

4-
Open source.
4+
Your source publication *needs* a license. In the US, if no license is
5+
specified, users have no legal right to download, modify, or
6+
distribute. Furthermore, people can't contribute to your code unless
7+
you tell them what rules to play by. It's complicated, so here are
8+
some pointers:
59

6-
There are plenty of `open source licenses <http://opensource.org/licenses/alphabetical>`_
7-
available to choose from.
10+
Open source. There are plenty of `open source licenses
11+
<http://opensource.org/licenses/alphabetical>`_ available to choose
12+
from.
813

914
In general, these licenses tend to fall into one of two categories:
1015

1116
1. licenses that focus more on the user's freedom to do with the
1217
software as they please (these are the more-permissive open
13-
source licenses such as the MIT, BSD, & Apache), and
18+
source licenses such as the MIT, BSD, & Apache).
1419

1520
2. licenses that focus more on making sure that the code itself —
1621
including any changes made to it and distributed along with it —
@@ -22,51 +27,26 @@ someone to add code to the software and distribute it without also
2227
including the source code for their changes.
2328

2429
To help you choose one for your project, there's a `license chooser <http://three.org/openart/license_chooser/>`_,
25-
use it.
30+
**use it**.
2631

32+
**More-Permissive**
2733

28-
More-Permissive
29-
:::::::::::::::
34+
- PSFL (Python Software Foundation License) -- for contributing to python itself
35+
- MIT / BSD / ISC
3036

31-
PSFL
32-
----
37+
+ MIT (X11)
38+
+ New BSD
39+
+ ISC
3340

41+
- Apache
3442

35-
MIT / BSD / ISC
36-
---------------
43+
**Less-Permissive:**
3744

45+
- LGPL
46+
- GPL
3847

39-
MIT (X11)
40-
`````````
48+
+ GPLv2
49+
+ GPLv3
4150

42-
New BSD
43-
```````
44-
45-
ISC
46-
```
47-
48-
Apache
49-
------
50-
51-
52-
Less-Permissive
53-
:::::::::::::::
54-
55-
56-
LGPL
57-
----
58-
59-
60-
61-
GPL
62-
---
63-
64-
65-
GPLv2
66-
`````
67-
68-
69-
GPLv3
70-
`````
7151

7252

0 commit comments

Comments
 (0)