This is an automated email from the ASF dual-hosted git repository. knaufk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-jira-bot.git
commit f5aa96e9fddf0607471fc587147db6e7037a198c Author: Konstantin Knauf <knauf.konstan...@gmail.com> AuthorDate: Fri Apr 9 11:30:03 2021 +0200 [FLINK-22032] add Makefile and requirements.txt --- .gitignore | 1 + Makefile | 26 ++++++++++++++++++++++++++ requirements.txt | 19 +++++++++++++++++++ 3 files changed, 46 insertions(+) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ceb386 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a9c933b --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +# define the name of the virtual environment directory +VENV := venv + +# default target, when make executed without arguments +all: venv + +$(VENV)/bin/activate: requirements.txt + python3 -m venv $(VENV) + ./$(VENV)/bin/pip install -r requirements.txt + +# venv is a shortcut target +venv: $(VENV)/bin/activate + +run: venv + ./$(VENV)/bin/python3 flink_jira_bot/flink_jira_bot.py + +format: venv + ./$(VENV)/bin/python3 -m black . + +clean: + rm -rf $(VENV) + find . -type f -name '*.pyc' -delete + + + +.PHONY: all venv run clean \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d058698 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,19 @@ +appdirs==1.4.4 +atlassian-python-api==3.8.0 +black @ git+git://github.com/psf/black@e114ef5514e95cb9908b38c2397978f2070c1b0e +certifi==2020.12.5 +chardet==4.0.0 +click==7.1.2 +Deprecated==1.2.12 +idna==2.10 +mypy-extensions==0.4.3 +oauthlib==3.1.0 +pathspec==0.8.1 +pycparser==2.20 +regex==2021.4.4 +requests==2.25.1 +requests-oauthlib==1.3.0 +six==1.15.0 +toml==0.10.2 +urllib3==1.26.4 +wrapt==1.12.1