ChanTracker/setup.py
Valentin Lorentz fe6ce22908 Add setup.py, to be installable via pip
This is a simpler way to install Limnoria plugin:
https://docs.limnoria.net/develop/plugin_distribution.html#via-pip-pypi

This will allow installing ChanTracker with this command:

    pip3 install git+https://github.com/ncoevoet/ChanTracker.git
2022-10-12 19:41:41 +02:00

14 lines
286 B
Python

import os
import sys
from supybot.setup import plugin_setup
# Workaround pip changing the name of the root directory
(parent, dir_) = os.path.split(os.path.dirname(__file__))
sys.path.insert(0, parent)
sys.modules["ChanTracker"] = __import__(dir_)
plugin_setup(
'ChanTracker',
)