From ea1704429275c9b6b58a9198dbd2fd46bbfad2cd Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 16 Oct 2019 08:57:17 -0500 Subject: [PATCH] Replace test_requirements.txt with setup.py tests_require and test extra --- .travis.yml | 2 +- setup.py | 11 +++++++++++ test_requirements.txt | 4 ---- 3 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 test_requirements.txt diff --git a/.travis.yml b/.travis.yml index c79c5b5..74c6d4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ env: - secure: TPQSFGqdl6khXqQqTZ6euROoAmFRnONAlPXD6npvTIIN+fNfnz8lvZtOEWHo2jRPLoU3FyVUhYvTynj6B2hJinulP+RKOMbQ65HCZVHrsitwl1n1QZB5HegQDOYc5q6VTTYn/r8r5tGy35U0O80y1zycTLqSJiXlkdqsSq564pI= install: - - pip install -r test_requirements.txt -r requirements.txt + - pip install .[test] - pip install coveralls script: diff --git a/setup.py b/setup.py index e2c3601..56a5dfa 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,13 @@ if mo: else: raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,)) +tests_require = [ + "mock>=1.0.1", + "nose>=1.3.3", + "tox>=1.7.2", + "vcrpy>=1.10.3", +] + setup(name="tweepy", version=version, description="Twitter library for python", @@ -28,6 +35,10 @@ setup(name="tweepy", "requests_oauthlib>=0.7.0", "six>=1.10.0", ], + tests_require=tests_require, + extras_require={ + "test": tests_require + }, keywords="twitter library", python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', classifiers=[ diff --git a/test_requirements.txt b/test_requirements.txt deleted file mode 100644 index 5753c2e..0000000 --- a/test_requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -mock>=1.0.1 -nose>=1.3.3 -tox>=1.7.2 -vcrpy>=1.10.3 -- 2.25.1