- For pull requests use HTTP records to replay traffic.
- For master use the encrypted oAuth keys like normal.
---
-script: nosetests -v tests.test_api tests.test_streaming tests.test_cursors
language: python
+python:
+ - "2.7"
+install:
+ - pip install -r test_requirements.txt
+script: ./run_tests.sh
env:
global:
- TWITTER_USERNAME="tweepytest"
nKkytraqLGUm33K1GpwkjOyxACDHYw4GMvOGyDwVTX7VNwqxbkUojB7qXYoQ
JjlEyFWS487IFteR87U9pt18qongJJIphaBdT9/lDVLsMWZ0Jh5ZLQfX+2jS
aF2UwsrYkzBUMrqMqYCc2+X6CuswLEZTVXDAlNh+emvhxZ5faMI=
-python:
- - "2.7"
-branches:
- only:
- - master
+
--- /dev/null
+#! /usr/bin/env bash
+
+if [[ $TRAVIS_SECURE_ENV_VARS == "false" ]]; then
+ USE_REPLAY=1 nosetests -v tests.test_api
+else
+ nosetests -v tests.test_api tests.test_streaming tests.test_cursors
+fi
#from distutils.core import setup
from setuptools import setup, find_packages
from tweepy import __version__
-from pip.req import parse_requirements
-
-install_reqs = parse_requirements('requirements.txt')
-reqs = [str(req.req) for req in install_reqs]
setup(name="tweepy",
version=__version__,
author_email="tweepy@googlegroups.com",
url="http://github.com/tweepy/tweepy",
packages = find_packages(),
- install_requires=reqs,
keywords= "twitter library",
zip_safe = True)
from tweepy.auth import OAuthHandler
from tweepy.api import API
-username = os.environ.get('TWITTER_USERNAME', '')
+username = os.environ.get('TWITTER_USERNAME', 'tweepytest')
oauth_consumer_key = os.environ.get('CONSUMER_KEY', '')
oauth_consumer_secret = os.environ.get('CONSUMER_SECRET', '')
oauth_token = os.environ.get('ACCESS_KEY', '')