Skip to content

Commit 4e144cb

Browse files
updating rendered materials
1 parent 08799f2 commit 4e144cb

124 files changed

Lines changed: 9757 additions & 13213 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
4.22 KB
Binary file not shown.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
LAB: A Small Example Package
2+
============================
3+
4+
* Create a small package
5+
6+
- package structure
7+
8+
- ``setup.py``
9+
10+
- ``python setup.py develop``
11+
12+
- ``at least one working test``
13+
14+
15+
16+
* Here is a ridiculously simple and useless package to use as an example:
17+
18+
:download:`capitalize.zip <capitalize.zip>`
19+
20+
Unzip that, and you will find::
21+
22+
capital_mod.py: The module that does the "real work"
23+
24+
cap_data.txt: A data file needed by the module
25+
26+
main.py: the actual main function that runs the script.
27+
28+
cap_script.py: A simple top-level script -- all it does is call ``main``
29+
30+
test_capital_mod.py: test code for the module
31+
32+
sample_text_file.txt: an example file you can use to try it out.
33+
34+
Your mission is to put all these files in an package hierarchy, and then write a simple ``setup.py`` file that will build and install it as a package.
35+
36+

0 commit comments

Comments
 (0)