Skip to content

Commit

Permalink
Install build dependencies in a consistent manner
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Nov 13, 2021
1 parent 1173bd1 commit cd33678
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
SHELL=/bin/bash

test_deps:
pip install coverage flake8 wheel pyyaml boto3
pip install .[tests]

lint: test_deps
flake8
flake8 $$(python setup.py --name)

test: test_deps lint
coverage run --source=watchtower ./test/test.py
coverage run --source=$$(python setup.py --name) ./test/test.py -v

docs:
sphinx-build docs docs/html

install: clean
pip install wheel
python ./setup.py bdist_wheel
python -m build .
pip install --upgrade dist/*.whl

clean:
Expand Down
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
install_requires=[
"boto3 >= 1.9.253, < 2",
],
tests_require=[
"pyyaml >= 5.3.1, < 6",
"flake8 >= 4.0.1, < 5"
],
extras_require={
"tests": [
"pyyaml >= 5.3.1, < 6",
"flake8 >= 4.0.1, < 5",
"coverage",
"build",
"wheel",
"mypy"
]
},
packages=find_packages(exclude=["test"]),
platforms=["MacOS X", "Posix"],
include_package_data=True,
Expand Down

0 comments on commit cd33678

Please sign in to comment.