File tree Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Expand file tree Collapse file tree 2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ REGENDOC_ARGS := \
19
19
--normalize "@/tmp/pytest-of-.*/pytest-\d+@PYTEST_TMPDIR@" \
20
20
21
21
22
-
23
22
.PHONY : help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
24
23
25
-
24
+
26
25
help :
27
26
@echo " Please use \` make <target>' where <target> is one of"
28
27
@echo " html to make standalone HTML files"
36
35
clean :
37
36
-rm -rf $(BUILDDIR ) /*
38
37
39
- SITETARGET =$(shell ./_getdoctarget.py)
40
-
41
- showtarget :
42
- @echo $(SITETARGET )
43
-
44
- install : html
45
- # for access talk to someone with login rights to
46
- # [email protected] to add your ssh key
47
- rsync -avz _build/html/
[email protected] :pytest.org/
$(SITETARGET )
48
-
49
- installpdf : latexpdf
50
- @scp
$(BUILDDIR ) /latex/pytest.pdf
[email protected] :pytest.org/
$(SITETARGET )
51
-
52
- installall : clean install installpdf
53
- @echo " done"
54
-
55
38
regen :
56
39
PYTHONDONTWRITEBYTECODE=1 COLUMNS=76 regendoc --update * .rst * /* .rst ${REGENDOC_ARGS}
57
40
Original file line number Diff line number Diff line change 19
19
# The short X.Y version.
20
20
21
21
import os , sys
22
- sys .path .insert (0 , os .path .dirname (__file__ ))
23
- import _getdoctarget
24
-
25
- version = _getdoctarget .get_minor_version_string ()
26
- release = _getdoctarget .get_version_string ()
22
+ from _pytest import __version__ as version
23
+ release = "." .join (version .split ("." )[:2 ])
27
24
28
25
# If extensions (or modules to document with autodoc) are in another directory,
29
26
# add these directories to sys.path here. If the directory is relative to the
You can’t perform that action at this time.
0 commit comments