Skip to content

Commit 2c22fa1

Browse files
author
Maxim Avanov
committed
wip
1 parent e775962 commit 2c22fa1

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

Makefile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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)

requirements/test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pytest>=5.4.1,<5.5
22
pytest-cov>=2.9,<2.10
33
coverage>=5.1,<5.2
4-
mypy==0.770
4+
mypy==0.800
55
requests>=2.23.0
66
vcrpy>=4.0.2

0 commit comments

Comments
 (0)