Skip to content

Commit f54679c

Browse files
committed
add v0 of makefile
1 parent d0b1fd8 commit f54679c

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

mqtt/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.PHONY: dev test unit style
2+
3+
all: clean style test
4+
5+
clean: ## Remove build artifacts and cache files
6+
rm -rf build/
7+
rm -rf dist/
8+
rm -rf *.egg-info/
9+
rm -rf htmlcov/
10+
rm -rf .coverage
11+
rm -rf coverage.xml
12+
rm -rf .pytest_cache/
13+
rm -rf .mypy_cache/
14+
rm -rf .ruff_cache/
15+
find . -type d -name __pycache__ -delete
16+
find . -type f -name "*.pyc" -delete
17+
18+
test:
19+
pip install -r requirements.txt
20+
pytest .
21+
22+
dev:
23+
pip install -r requirements.txt
24+
25+
style:
26+
pre-commit run --all-files
27+

mqtt/pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,38 @@ authors = [
1111
]
1212
description = "A Collection of Custom Data Source Connectors for PySpark"
1313
requires-python = ">=3.11"
14+
dependencies = [
15+
"pyspark >= 4.0.0.dev2",
16+
"paho-mqtt >= 2.1.0",
17+
]
1418
classifiers = [
1519
"Programming Language :: Python :: 3",
1620
"Operating System :: OS Independent",
1721
]
1822

23+
[project.optional-dependencies]
24+
dev = [
25+
"pytest>=7.0.0",
26+
"pytest-cov>=4.0.0",
27+
"pytest-mock>=3.10.0",
28+
"black>=23.0.0",
29+
"isort>=5.12.0",
30+
"flake8>=6.0.0",
31+
"mypy>=1.0.0",
32+
"pre-commit>=3.0.0",
33+
"build>=0.10.0",
34+
"twine>=4.0.0",
35+
]
36+
doc = [
37+
"sphinx>=6.0.0",
38+
"sphinx-rtd-theme>=1.2.0",
39+
]
40+
test = [
41+
"pytest>=7.0.0",
42+
"pytest-cov>=4.0.0",
43+
"pytest-mock>=3.10.0",
44+
]
45+
1946
[tool.pytest.ini_options]
2047
addopts = [
2148
"--import-mode=importlib",

mqtt/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
paho-mqtt

0 commit comments

Comments
 (0)