File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 1
1
PYTHON = python3
2
- BUILDDIR = $(CURDIR ) /build
2
+ BUILDLIB = $(CURDIR ) /build/lib
3
3
4
4
5
5
build :
6
6
$(PYTHON ) setup.py build
7
7
8
8
test : build
9
- PYTHONPATH=$(BUILDDIR ) /lib $(PYTHON ) -m pytest tests
9
+ PYTHONPATH=$(BUILDLIB ) $(PYTHON ) -m pytest tests
10
10
11
11
sdist :
12
12
$(PYTHON ) setup.py sdist
13
13
14
- doc-html : .version
15
- $(MAKE ) -C doc html
14
+ doc-html : build
15
+ $(MAKE ) -C doc html PYTHONPATH= $( BUILDLIB )
16
16
17
17
clean :
18
18
rm -f * ~ tests/* ~
@@ -27,7 +27,4 @@ distclean: clean
27
27
rm -rf pytest_dependency.egg-info
28
28
$(MAKE ) -C doc distclean
29
29
30
- .version :
31
- $(PYTHON ) setup.py check
32
-
33
30
.PHONY : build test sdist doc-html clean distclean
Original file line number Diff line number Diff line change 6
6
# full list see the documentation:
7
7
# http://www.sphinx-doc.org/en/master/config
8
8
9
- # -- Path setup --------------------------------------------------------------
10
-
11
- from pathlib import Path
12
- import sys
13
- topdir = Path ("../.." ).resolve ()
14
- sys .path .insert (0 , str (topdir ))
15
-
9
+ import pytest_dependency
16
10
17
11
# -- Project information -----------------------------------------------------
18
12
21
15
author = 'Rolf Krahl'
22
16
23
17
# The full version, including alpha/beta/rc tags
24
- with (topdir / ".version" ).open ("rt" ) as f :
25
- release = f .read ()
18
+ release = pytest_dependency .__version__
26
19
# The short X.Y version
27
20
version = "." .join (release .split ("." )[0 :2 ])
28
21
You can’t perform that action at this time.
0 commit comments