Replace test_requirements.txt with setup.py tests_require and test extra
authorHarmon <Harmon758@gmail.com>
Wed, 16 Oct 2019 13:57:17 +0000 (08:57 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 16 Oct 2019 14:10:45 +0000 (09:10 -0500)
.travis.yml
setup.py
test_requirements.txt [deleted file]

index c79c5b586395ee9604ed647c0ec1e5514e01396f..74c6d4c3063f31180b1436afa6a52f3f6610cb8d 100644 (file)
@@ -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:
index e2c36016f2b7ca04d4305d77c088bfeb2fbb963f..56a5dfa114f8d919bfae0fd4b9c858f8a536e964 100644 (file)
--- 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 (file)
index 5753c2e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-mock>=1.0.1
-nose>=1.3.3
-tox>=1.7.2
-vcrpy>=1.10.3