From e3a7af789b9a18c12e0311d206a967238d80c7d6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 23 Mar 2020 16:54:05 +0000 Subject: [PATCH] add pyyaml as a requirement.txt --- .travis.yml | 2 +- requirements.txt | 1 + setup.py | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml index 205ae3d..924b98d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: - "3.8" - "3.8-dev" install: - - pip3 install mypy + - pip3 install mypy -r requirements.txt script: - pip3 freeze - mypy irctokens diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bfa796f --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pyyaml==5.3.1 diff --git a/setup.py b/setup.py index 579b2fe..c3843e1 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ with open("README.md", "r") as fh: long_description = fh.read() with open("VERSION", "r") as version_file: version = version_file.read().strip() +with open("requirements.txt", "r") as requirements_file: + install_requires = requirements_file.read().splitlines() setuptools.setup( name="irctokens", @@ -25,4 +27,5 @@ setuptools.setup( "Topic :: Communications :: Chat :: Internet Relay Chat" ], python_requires='>=3.6' + install_requires=install_requires )