cowrie/Makefile

53 lines
995 B
Makefile
Raw Normal View History

# This `Makefile` is intended for Cowrie developers.
2019-05-04 16:34:16 +00:00
# Dummy target `all`
.PHONY: all
2019-05-04 16:34:16 +00:00
all:
.PHONY: test
2019-05-12 17:38:49 +00:00
test:
tox
2019-05-04 16:34:16 +00:00
.PHONY: build
2019-05-04 16:34:16 +00:00
build:
python setup.py build sdist bdist
.PHONY: docs
2019-05-04 16:34:16 +00:00
docs:
make -C docs html
.PHONY: lint
lint:
2019-05-12 17:38:49 +00:00
tox -e lint
.PHONY: clean
clean:
rm -rf _trial_temp build dist
.PHONY: pre-commit
pre-commit:
pre-commit run --all-files
.PHONY: pip-upgrade
pip-upgrade:
pip install --upgrade -r requirements.txt
.PHONY: pip-check
pip-check:
pip check
# This assumes two remotes, one is `origin`, your fork. The second is `cowrie` the main project
.PHONY: git-remote
git-remote:
git remote add cowrie https://github.com/cowrie/cowrie
.PHONY: dependency-upgrade
dependency-upgrade:
git checkout master
2021-01-24 03:14:19 +00:00
-git branch -D "dependency-upgrade-`date -u +%Y-%m-%d`"
git checkout -b "dependency-upgrade-`date -u +%Y-%m-%d`"
pur -r requirements.txt
pur -r requirements-dev.txt
pur -r requirements-output.txt
git commit -m "dependency upgrade `date -u`" requirements*.txt