Install sopel master branch

This commit is contained in:
deathbybandaid 2019-05-05 12:05:57 -04:00
parent 576246232e
commit bbc2ac5f74
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,3 @@
spicemanip>=0.1.6
gitpython
fake-useragent
git+git://github.com/sopel-irc/sopel@master

View File

@ -21,6 +21,19 @@ def stock_modules_begone():
os.system("sudo mv " + path + " " + stockdir)
def sopel_master_install():
pipcommand = "sudo pip3 install --upgrade"
pipcommand += " --force-reinstall"
pipcommand += " git+https://github.com/sopel-irc/sopel@master"
print('Running {} '.format(pipcommand), file=sys.stderr)
for line in os.popen(pipcommand).read().split('\n'):
print(line, file=sys.stderr)
stock_modules_begone()
if __name__ == '__main__':
print('Sopel does not correctly load modules installed with setup.py '
'directly. Please use "pip install .", or add {}/sopel_modules to '
@ -34,14 +47,14 @@ with open('README.md') as readme_file:
with open('NEWS') as history_file:
history = history_file.read()
sopel_master_install()
with open('requirements.txt') as requirements_file:
requirements = [req for req in requirements_file.readlines()]
with open('dev-requirements.txt') as dev_requirements_file:
dev_requirements = [req for req in dev_requirements_file.readlines()]
stock_modules_begone()
setup(
name='sopel_modules.SpiceBot',