Skip to content

Commit 9ecddfd

Browse files
some updating (I forgot what)
1 parent 29c69c0 commit 9ecddfd

File tree

4 files changed

+46
-61
lines changed

4 files changed

+46
-61
lines changed

Sources/source/conf.py

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -269,39 +269,29 @@
269269
#texinfo_no_detailmenu = False
270270

271271

272-
# -- Hieroglyph Slide Configuration ------------
273-
274-
extensions += [
275-
'hieroglyph',
276-
]
277-
278-
slide_title = "PythonTopics"
279-
slide_theme = 'slides2'
280-
slide_levels = 3
281-
282272
# Place custom static assets in the _static directory and uncomment
283273
# the following lines to include them
284274

285-
slide_theme_options = {
286-
'subtitle': 'Interesting Corners of Python Programming',
287-
'custom_css': 'custom.css',
288-
# 'custom_js': 'custom.js',
289-
'presenters': [
290-
{
291-
'name': u'Christopher Barker',
292-
'email': u'[email protected]',
293-
'github': u'https://github.com/PythonCHB',
294-
'company': u'Christopher Barker, PhD'
295-
},
296-
# {
297-
# 'name': 'Cris Ewing',
298-
# 'twitter': '@crisewing',
299-
# 'www': 'http://crisewing.com',
300-
# 'github': 'http://github.com/cewing',
301-
# 'company': 'Cris Ewing, Developer LLC'
302-
# },
303-
]
304-
}
275+
# slide_theme_options = {
276+
# 'subtitle': 'Interesting Corners of Python Programming',
277+
# 'custom_css': 'custom.css',
278+
# # 'custom_js': 'custom.js',
279+
# 'presenters': [
280+
# {
281+
# 'name': u'Christopher Barker',
282+
# 'email': u'[email protected]',
283+
# 'github': u'https://github.com/PythonCHB',
284+
# 'company': u'Christopher Barker, PhD'
285+
# },
286+
# # {
287+
# # 'name': 'Cris Ewing',
288+
# # 'twitter': '@crisewing',
289+
# # 'www': 'http://crisewing.com',
290+
# # 'github': 'http://github.com/cewing',
291+
# # 'company': 'Cris Ewing, Developer LLC'
292+
# # },
293+
# ]
294+
# }
305295

306296
# ----------------------------------------------
307297

Sources/source/index.rst

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
In This Collection
22
==================
33

4-
.. ifslides::
4+
Topics:
5+
-------
56

6-
+-------------------------------+
7-
| Topics: |
8-
+===============================+
9-
| .. toctree:: |
10-
| :maxdepth: 1 |
11-
| |
12-
| weak_references |
13-
| persistance_serialization |
14-
+-------------------------------+
7+
.. toctree::
8+
:maxdepth: 1
159

16-
.. ifnotslides::
10+
weak_references
11+
persistance_serialization
12+
where_to_put_tests
13+
where_to_put_your_code
14+
interfacing_with_c/index
1715

18-
Topics:
19-
-------
20-
21-
.. toctree::
22-
:maxdepth: 1
23-
24-
weak_references
25-
persistance_serialization
26-
where_to_put_tests
27-
where_to_put_your_code
28-
29-
.. rst-class:: credit
3016

3117
These materials copyright Christopher H. Barker
3218

Sources/source/interfacing_with_c/c_python.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ Documentation:
1212
Core docs for the C API:
1313

1414

15+
https://docs.python.org/3/extending/
1516

1617

1718
Interfacing methods:
1819
====================
1920

2021
There a bunch of ways to interface C and Python:
2122

23+
2224
Hand write against the C API:
2325
-----------------------------
2426

@@ -35,14 +37,14 @@ Cython can be described as a "python-like language for writing python extensions
3537

3638
It can be used essentially to speed up Python, but also to call Python from C.
3739

38-
(derived from Pyrex)
40+
https://cython.org/
3941

40-
XDress
41-
......
4242

4343
ctypes
4444
------
4545

46+
Ctypes comes with PYthon out of the box.
47+
4648

4749
SWIG, SIP, ETC.
4850
---------------
@@ -53,5 +55,9 @@ Auto wrapper generators.
5355
EXAMPLE:
5456
========
5557

56-
Same as the one for fortran: a automatic gain control filter.
58+
Same as the one for fortran: a automatic gain control filter:
59+
60+
:download:`agc_example.zip`
61+
62+
5763

Sources/source/where_to_put_tests.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Test system recommendations
1818

1919
https://pytest.org/latest/goodpractises.html
2020

21-
I need to add links for ``nose`` and ``unittest``.... PR's accepted!
21+
I need to add links for ``nose`` and ``unittest`` ... PR's accepted!
2222

2323

2424
Two Options
2525
-----------
2626

27-
In Python packaging, there seems is no consensus on where you should put your test suite. This thread:
27+
In Python packaging, there is no consensus on where you should put your test suite. This thread:
2828

2929
https://mail.python.org/pipermail/distutils-sig/2015-October/027003.html
3030

@@ -50,7 +50,10 @@ https://packaging.python.org/en/latest/
5050

5151
for recommendations.
5252

53-
2) The other options is to put your test code in a sub-package inside your package. In this case, it should be inside your package, and *be* a package itself (i.e. have an ``__init__.py``)::
53+
In the this case, the directory with all the tests shouls not be a python package -- this is, it should not have a ``__init__.py`` file.
54+
55+
56+
2) The other options is to put your test code in a sub-package inside your package. In this case, it should be inside your package, and *be* a python package itself (i.e. have an ``__init__.py``)::
5457

5558
my_package
5659
__init__.py
@@ -61,7 +64,7 @@ for recommendations.
6164
test_1.py
6265
test_2.py
6366

64-
Self contained
67+
Self Contained
6568
--------------
6669

6770
The advantage of keeping test code self-contained is that you can have a large suite of tests with sample data and who knows what, and it won't bloat and complicate the installed package (and test code can write to the test dirs, etc. Also, you can then run the test suite against an installed version that may not be exactly the same as the current live code.

0 commit comments

Comments
 (0)