Browse code

update gitignore

Kelvin Loh authored on 06/12/2018 10:19:22
Showing 1 changed files
... ...
@@ -2,6 +2,7 @@
2 2
 *.pyc
3 3
 *.pyo
4 4
 *.so
5
+*.pyd
5 6
 /kwant/*.c
6 7
 /kwant/*/*.c
7 8
 /build
... ...
@@ -16,3 +17,4 @@
16 17
 .coverage
17 18
 .eggs/
18 19
 htmlcov/
20
+.ipynb_checkpoints/
Browse code

clean up gitignore

Joseph Weston authored on 02/05/2019 15:40:30
Showing 1 changed files
... ...
@@ -8,13 +8,7 @@
8 8
 /dist
9 9
 /doc/build
10 10
 /doc/source/reference/generated/
11
-/doc/source/code/include/*.py
12
-/doc/source/code/figure/*.png
13
-/doc/source/code/figure/*.pdf
14
-/doc/source/code/figure/.*_flag
15
-/doc/source/code/figure/[a-zA-Z]*.py
16
-/doc/source/code/figure/*.txt
17
-/doc/source/code/download/
11
+/doc/source/figure/*.pdf
18 12
 /build.conf
19 13
 /kwant.egg-info/
20 14
 /MANIFEST.in
Browse code

remove stale references to /tutorial

This completes 9fdd41e8483043d4.

Christoph Groth authored on 26/10/2017 11:01:41
Showing 1 changed files
... ...
@@ -4,7 +4,6 @@
4 4
 *.so
5 5
 /kwant/*.c
6 6
 /kwant/*/*.c
7
-/tutorial
8 7
 /build
9 8
 /dist
10 9
 /doc/build
Browse code

move tutorial script generation, reorganize doc/source

I assume that most people encounter the tutorial example scripts by
reading the documentation, and not by viewing the tutorial subdirectory
of a checked-out Kwant source.

That's the motivation for moving all the manipulations of tutorial
scripts from setup.py to doc/Makefile. Previously, a successful 'make
html' would require a preceding execution of 'setup.py build_tut'. Now,
a simple 'make html' is enough.

While at it, I reorganized where the example scripts and their outputs
are stored. Everything is now in 'doc/source/code' with its three
subdirectories 'download' (to be shown to readers), 'include' (with
include markers), and 'figure' (figure generation & figures). This
organization is clearer and also makes the generation of figures
separate from the tutorial.

Christoph Groth authored on 24/07/2017 14:09:29
Showing 1 changed files
... ...
@@ -8,13 +8,14 @@
8 8
 /build
9 9
 /dist
10 10
 /doc/build
11
-/doc/source/tutorial/*.py
12 11
 /doc/source/reference/generated/
13
-/doc/source/images/*.png
14
-/doc/source/images/*.pdf
15
-/doc/source/images/.*_flag
16
-/doc/source/images/[a-zA-Z]*.py
17
-/doc/source/images/*.txt
12
+/doc/source/code/include/*.py
13
+/doc/source/code/figure/*.png
14
+/doc/source/code/figure/*.pdf
15
+/doc/source/code/figure/.*_flag
16
+/doc/source/code/figure/[a-zA-Z]*.py
17
+/doc/source/code/figure/*.txt
18
+/doc/source/code/download/
18 19
 /build.conf
19 20
 /kwant.egg-info/
20 21
 /MANIFEST.in
Browse code

improve the tutorial script and image buiding machinery

The basic idea remains the same, but should work much better now. The
difference is that images/example.py.diff is now a patch with complete
context and becomes the authoritative source for both the visible flavor
of an example as well as for its figure-generating variant. Both
tutorial/example.py and images/example.py are extracted from this file
by 'make html'. Thanks to the complete context the diffs are quite
readable and may be modified directly.

Alternatively, one may also modify the generated scripts. When
tutorial/example.py has been modified, it will be patched and saved as
images/example.py. The patching is done using the tool 'wiggle' that
works much better than 'patch'. If a conflict occurs, conflict markers
are added to the output file and its dated back to the dawn of time
(i.e. 1970) in order to mark the conflicts as not yet resolved. After
resolving, 'make html' is simply run again.

Upon a successful execution of the figure-generating script the diff
gets recreated automatically, 'generate-diffs' no longer exists.

Christoph Groth authored on 19/07/2017 17:49:01
Showing 1 changed files
... ...
@@ -8,6 +8,7 @@
8 8
 /build
9 9
 /dist
10 10
 /doc/build
11
+/doc/source/tutorial/*.py
11 12
 /doc/source/reference/generated/
12 13
 /doc/source/images/*.png
13 14
 /doc/source/images/*.pdf
Browse code

ignore txt files in documentation images source directory

Joseph Weston authored on 14/03/2017 11:24:32
Showing 1 changed files
... ...
@@ -13,6 +13,7 @@
13 13
 /doc/source/images/*.pdf
14 14
 /doc/source/images/.*_flag
15 15
 /doc/source/images/[a-zA-Z]*.py
16
+/doc/source/images/*.txt
16 17
 /build.conf
17 18
 /kwant.egg-info/
18 19
 /MANIFEST.in
Browse code

extend .gitignore

Rafał Skolasiński authored on 24/10/2016 12:53:59
Showing 1 changed files
... ...
@@ -16,3 +16,7 @@
16 16
 /build.conf
17 17
 /kwant.egg-info/
18 18
 /MANIFEST.in
19
+.cache/
20
+.coverage
21
+.eggs/
22
+htmlcov/
Browse code

setup.py: use setuptools

Christoph Groth authored on 09/10/2015 13:46:49
Showing 1 changed files
... ...
@@ -1,5 +1,4 @@
1 1
 *~
2
-MANIFEST
3 2
 *.pyc
4 3
 *.pyo
5 4
 *.so
... ...
@@ -15,3 +14,5 @@ MANIFEST
15 14
 /doc/source/images/.*_flag
16 15
 /doc/source/images/[a-zA-Z]*.py
17 16
 /build.conf
17
+/kwant.egg-info/
18
+/MANIFEST.in
Browse code

simplify and improve version determination

The file kwant/_static_version.py is no longer written upon every
invocation of setup.py. Instead, a file kwant/_kwant_version.py is
injected into source and binary distributions.

The static version in kwant/_kwant_version.py now takes precedence
before any version from git. This makes the --no-git option to setup.py
no longer necessary, since the existence of kwant/_kwant_version.py has
the same role. The motivation behind this change is to allow keeping
Kwant distributions in git repositories that have a different layout
from the canonical Kwant git repository. This is useful for example for
packaging.

The name of the static version file was changed to avoid problems with
stale files.

Christoph Groth authored on 08/10/2015 15:33:42
Showing 1 changed files
... ...
@@ -5,7 +5,6 @@ MANIFEST
5 5
 *.so
6 6
 /kwant/*.c
7 7
 /kwant/*/*.c
8
-/kwant/_static_version.py
9 8
 /tutorial
10 9
 /build
11 10
 /dist
Browse code

gitignore pyo-files

Christoph Groth authored on 30/09/2014 15:31:42
Showing 1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 *~
2 2
 MANIFEST
3 3
 *.pyc
4
+*.pyo
4 5
 *.so
5 6
 /kwant/*.c
6 7
 /kwant/*/*.c
Browse code

make tutorials importable

Christoph Groth authored on 14/02/2013 14:45:56
Showing 1 changed files
... ...
@@ -13,5 +13,5 @@ MANIFEST
13 13
 /doc/source/images/*.png
14 14
 /doc/source/images/*.pdf
15 15
 /doc/source/images/.*_flag
16
-/doc/source/images/[0-9]-*.py
16
+/doc/source/images/[a-zA-Z]*.py
17 17
 /build.conf
Browse code

make showing code examples in the tutorial text robust

Christoph Groth authored on 17/11/2012 15:30:47
Showing 1 changed files
... ...
@@ -5,6 +5,7 @@ MANIFEST
5 5
 /kwant/*.c
6 6
 /kwant/*/*.c
7 7
 /kwant/_static_version.py
8
+/tutorial
8 9
 /build
9 10
 /dist
10 11
 /doc/build
Browse code

generate image creation scripts from tutorial scripts by patching

Christoph Groth authored on 17/11/2012 10:42:06
Showing 1 changed files
... ...
@@ -12,4 +12,5 @@ MANIFEST
12 12
 /doc/source/images/*.png
13 13
 /doc/source/images/*.pdf
14 14
 /doc/source/images/.*_flag
15
+/doc/source/images/[0-9]-*.py
15 16
 /build.conf
Browse code

fix .gitignore

Christoph Groth authored on 16/11/2012 10:42:54
Showing 1 changed files
... ...
@@ -2,6 +2,7 @@
2 2
 MANIFEST
3 3
 *.pyc
4 4
 *.so
5
+/kwant/*.c
5 6
 /kwant/*/*.c
6 7
 /kwant/_static_version.py
7 8
 /build
Browse code

rewrite of setup.py

The code should be easier to understand. Configuration through a site.cfg file
is supported.

Christoph Groth authored on 16/05/2012 11:37:07
Showing 1 changed files
... ...
@@ -11,3 +11,4 @@ MANIFEST
11 11
 /doc/source/images/*.png
12 12
 /doc/source/images/*.pdf
13 13
 /doc/source/images/.*_flag
14
+/build.conf
Browse code

development leading up to version 0.1

Kwant authors authored on 10/01/2011 09:17:15 • Christoph Groth committed on 10/01/2011 09:17:15
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,13 @@
1
+*~
2
+MANIFEST
3
+*.pyc
4
+*.so
5
+/kwant/*/*.c
6
+/kwant/_static_version.py
7
+/build
8
+/dist
9
+/doc/build
10
+/doc/source/reference/generated/
11
+/doc/source/images/*.png
12
+/doc/source/images/*.pdf
13
+/doc/source/images/.*_flag