Skip to content

Commit d2ebc61

Browse files
committed
Moved all source files into the source folder, separating the build from the source directory
1 parent 28a33ca commit d2ebc61

File tree

9 files changed

+28
-27
lines changed

9 files changed

+28
-27
lines changed

‎doc/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

‎doc/Makefile

+21-21
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PAPER =
99
# Internal variables.
1010
PAPEROPT_a4 = -D latex_paper_size=a4
1111
PAPEROPT_letter = -D latex_paper_size=letter
12-
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
12+
ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
1313

1414
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
1515

@@ -24,52 +24,52 @@ help:
2424
@echo " linkcheck to check all external links for integrity"
2525

2626
clean:
27-
-rm -rf _build/*
27+
-rm -rf build/*
2828

2929
html:
30-
mkdir -p _build/html _build/doctrees
31-
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
30+
mkdir -p build/html build/doctrees
31+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
3232
@echo
33-
@echo "Build finished. The HTML pages are in _build/html."
33+
@echo "Build finished. The HTML pages are in build/html."
3434

3535
pickle:
36-
mkdir -p _build/pickle _build/doctrees
37-
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
36+
mkdir -p build/pickle build/doctrees
37+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
3838
@echo
3939
@echo "Build finished; now you can process the pickle files."
4040

4141
web: pickle
4242

4343
json:
44-
mkdir -p _build/json _build/doctrees
45-
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
44+
mkdir -p build/json build/doctrees
45+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
4646
@echo
4747
@echo "Build finished; now you can process the JSON files."
4848

4949
htmlhelp:
50-
mkdir -p _build/htmlhelp _build/doctrees
51-
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
50+
mkdir -p build/htmlhelp build/doctrees
51+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
5252
@echo
5353
@echo "Build finished; now you can run HTML Help Workshop with the" \
54-
".hhp project file in _build/htmlhelp."
54+
".hhp project file in build/htmlhelp."
5555

5656
latex:
57-
mkdir -p _build/latex _build/doctrees
58-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
57+
mkdir -p build/latex build/doctrees
58+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
5959
@echo
60-
@echo "Build finished; the LaTeX files are in _build/latex."
60+
@echo "Build finished; the LaTeX files are in build/latex."
6161
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
6262
"run these through (pdf)latex."
6363

6464
changes:
65-
mkdir -p _build/changes _build/doctrees
66-
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
65+
mkdir -p build/changes build/doctrees
66+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
6767
@echo
68-
@echo "The overview file is in _build/changes."
68+
@echo "The overview file is in build/changes."
6969

7070
linkcheck:
71-
mkdir -p _build/linkcheck _build/doctrees
72-
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
71+
mkdir -p build/linkcheck build/doctrees
72+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
7373
@echo
7474
@echo "Link check complete; look for any errors in the above output " \
75-
"or in _build/linkcheck/output.txt."
75+
"or in build/linkcheck/output.txt."

‎doc/conf.py renamed to ‎doc/source/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# is relative to the documentation root, use os.path.abspath to make it
2121
# absolute, like shown here.
2222
#sys.path.append(os.path.abspath('.'))
23-
sys.path.insert(0, os.path.abspath('../lib'))
23+
sys.path.insert(0, os.path.abspath('../../lib'))
2424

2525
# General configuration
2626
# ---------------------
@@ -30,7 +30,7 @@
3030
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
3131

3232
# Add any paths that contain templates here, relative to this directory.
33-
templates_path = ['templates']
33+
templates_path = ['.templates']
3434

3535
# The suffix of source filenames.
3636
source_suffix = '.rst'
@@ -69,7 +69,7 @@
6969

7070
# List of directories, relative to source directory, that shouldn't be searched
7171
# for source files.
72-
exclude_trees = ['_build']
72+
exclude_trees = ['build']
7373

7474
# The reST default role (used for this markup: `text`) to use for all documents.
7575
#default_role = None
@@ -120,7 +120,7 @@
120120
# Add any paths that contain custom static files (such as style sheets) here,
121121
# relative to this directory. They are copied after the builtin static files,
122122
# so a file named "default.css" will overwrite the builtin "default.css".
123-
html_static_path = ['static']
123+
html_static_path = ['.static']
124124

125125
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126126
# using the given strftime format.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎doc/whatsnew.rst renamed to ‎doc/source/whatsnew.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Whats New in 0.3
44
################
55
GitPython 0.3 is the first step in creating a hybrid which uses a pure python implementations for all simple git features which can be implemented without significant performance penalties. Everything else is still performed using the git command, which is nicely integrated and easy to use.
66

7-
Its biggest strength, being the support for all git features through the git command itself, is a weakness as well considering the possibly vast amount of times the git command is being started up. Depending on the actual command being performaned, the git repository will be initialized on many of these invocations, causing additional overhead for possibly tiny operations.
7+
Its biggest strength, being the support for all git features through the git command itself, is a weakness as well considering the possibly vast amount of times the git command is being started up. Depending on the actual command being performed, the git repository will be initialized on many of these invocations, causing additional overhead for possibly tiny operations.
88

99
Keeping as many major operations in the python world will result in improved caching benefits as certain data structures just have to be initialized once and can be reused multiple times. This mode of operation may improve performance when altering the git database on a low level, and is clearly beneficial on operating systems where command invocations are very slow.
1010

@@ -33,7 +33,7 @@ GitPython 0.2 essentially behaves like GitPython 0.3 with a Repository using the
3333
Why you should not upgrade
3434
**************************
3535
GitPython 0.3 in most cases will not run faster than GitPython 0.2, the opposite might be the case at it uses the pure python implementation by default.
36-
There have been a few renames which will need additional adjustments by your code.
36+
There have been a few renames which will need additional adjustments in your code.
3737

3838
Generally, if you only read git repositories, version 0.2 is sufficient and very well performing.
3939

0 commit comments

Comments
 (0)