File tree 2 files changed +39
-1
lines changed
2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
1
+ # https://www.gnu.org/software/make/manual/html_node/Special-Variables.html
2
+ # https://ftp.gnu.org/old-gnu/Manuals/make-3.80/html_node/make_17.html
3
+ PROJECT_MKFILE_PATH := $(word $(words $(MAKEFILE_LIST ) ) ,$(MAKEFILE_LIST ) )
4
+ PROJECT_MKFILE_DIR := $(shell cd $(shell dirname $(PROJECT_MKFILE_PATH ) ) ; pwd)
5
+
6
+ PROJECT_NAME := graphql_dsl
7
+ PROJECT_ROOT := $(PROJECT_MKFILE_DIR )
8
+
9
+ BUILD_DIR := $(PROJECT_ROOT ) /build
10
+ DIST_DIR := $(PROJECT_ROOT ) /dist
11
+ TEST_DIR := $(PROJECT_ROOT ) /tests
12
+
13
+ CLI := graphql-dsl
14
+
15
+
16
+ typecheck :
17
+ mypy --config-file setup.cfg --package $(PROJECT_NAME )
18
+
19
+
20
+ test :
21
+ pytest -s --cov=$(PROJECT_NAME ) $(TEST_DIR )
22
+
23
+
24
+ publish : test clean | do-publish
25
+ @echo " Done publishing."
26
+
27
+
28
+ do-publish :
29
+ python $(PROJECT_ROOT ) /setup.py sdist bdist_wheel
30
+ twine upload $(DIST_DIR ) /*
31
+
32
+
33
+ test-all : | test
34
+ @echo " Done."
35
+
36
+
37
+ clean :
38
+ rm -rf $(BUILD_DIR ) $(DIST_DIR )
Original file line number Diff line number Diff line change 1
1
pytest>=5.4.1,<5.5
2
2
pytest-cov>=2.9,<2.10
3
3
coverage>=5.1,<5.2
4
- mypy==0.770
4
+ mypy==0.800
5
5
requests>=2.23.0
6
6
vcrpy>=4.0.2
You can’t perform that action at this time.
0 commit comments