[V3 Dependencies] Fix travis/gh 429s (#1109)

* Fix travis/gh 429s

* JK this fixes it

* Keep pip updated

* Ok lets just use pip

* ONE...MORE...
This commit is contained in:
Will
2017-11-19 18:43:35 -05:00
committed by palmtree5
parent e983e1cefb
commit 02d3aec33e
2 changed files with 22 additions and 6 deletions

View File

@@ -2,8 +2,16 @@ from distutils.core import setup
from pathlib import Path
from subprocess import run, PIPE
import os
from setuptools import find_packages
IS_TRAVIS = 'TRAVIS' in os.environ
dep_links = ['https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0']
if IS_TRAVIS:
dep_links = []
def get_package_list():
core = find_packages(include=['redbot', 'redbot.*'])
@@ -13,7 +21,10 @@ def get_package_list():
def get_requirements():
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements.append('discord.py>=1.0.0a0') # Because RTD
if IS_TRAVIS:
requirements.remove('git+https://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py[voice]')
else:
requirements.append('discord.py>=1.0.0a0') # Because RTD
return requirements
@@ -72,6 +83,7 @@ def find_locale_folders():
return ret
setup(
name='Red-DiscordBot',
version="{}.{}.{}b2".format(*get_version()),
@@ -101,11 +113,11 @@ setup(
python_requires='>=3.5',
setup_requires=get_requirements(),
install_requires=get_requirements(),
dependency_links=[
'https://github.com/Rapptz/discord.py/tarball/rewrite#egg=discord.py-1.0'
],
dependency_links=dep_links,
extras_require={
'test': ['pytest>=3', 'pytest-asyncio'],
'test': [
'pytest>=3', 'pytest-asyncio'
],
'mongo': ['motor'],
'docs': ['sphinx', 'sphinxcontrib-asyncio', 'sphinx_rtd_theme'],
'voice': ['PyNaCl']