File tree 2 files changed +16
-6
lines changed
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
2
.PHONY : release
3
- release :
4
- rm dist/* .whl dist/* .tar.gz
3
+ release : cleandist
5
4
python3 setup.py sdist bdist_wheel
6
5
twine upload dist/* .whl dist/* .tar.gz
7
6
7
+ .PHONY : cleandist
8
+ cleandist :
9
+ rm -f dist/* .whl dist/* .tar.gz
10
+
11
+ .PHONY : cleandocs
12
+ cleandocs :
13
+ $(MAKE ) -C docs clean
14
+
15
+ .PHONY : clean
16
+ clean : cleandist cleandocs
17
+
8
18
.PHONY : test
9
19
test :
10
20
nosetests --with-coverage --cover-package=fs -a " !slow" tests
@@ -19,7 +29,7 @@ testall:
19
29
20
30
.PHONY : docs
21
31
docs :
22
- cd docs && make html
32
+ $( MAKE ) -C docs html
23
33
python -c " import os, webbrowser; webbrowser.open('file://' + os.path.abspath('./docs/build/html/index.html'))"
24
34
25
35
.PHONY : typecheck
Original file line number Diff line number Diff line change 14
14
15
15
import sys
16
16
import os
17
- from fs import __version__
18
17
19
18
20
19
import sphinx_rtd_theme
26
25
# If extensions (or modules to document with autodoc) are in another directory,
27
26
# add these directories to sys.path here. If the directory is relative to the
28
27
# documentation root, use os.path.abspath to make it absolute, like shown here.
29
- # sys.path.insert(0, os.path.abspath('.'))
28
+ sys .path .insert (0 , os .path .abspath ('../. .' ))
30
29
31
30
# -- General configuration ------------------------------------------------
32
31
71
70
# |version| and |release|, also used in various other places throughout the
72
71
# built documents.
73
72
#
73
+ from fs import __version__
74
74
# The short X.Y version.
75
75
version = '.' .join (__version__ .split ('.' )[:2 ])
76
76
# The full version, including alpha/beta/rc tags.
303
303
# If true, do not generate a @detailmenu in the "Top" node's menu.
304
304
#texinfo_no_detailmenu = False
305
305
306
- napoleon_include_special_with_doc = True
306
+ napoleon_include_special_with_doc = True
You can’t perform that action at this time.
0 commit comments