A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

54 rader
2.1 KiB

  1. Installation
  2. ============
  3. This package contains the core ``earwigbot``, abstracted enough that it should
  4. be usable and customizable by anyone running a bot on a MediaWiki site. Since
  5. it is component-based, the IRC components can be disabled if desired. IRC
  6. commands and bot tasks specific to `my instance of EarwigBot`_ that I don't
  7. feel the average user will need are available from the repository
  8. `earwigbot-plugins`_.
  9. It's recommended to run the bot's unit tests before installing. Run ``python
  10. setup.py test`` from the project's root directory. Note that some
  11. tests require an internet connection, and others may take a while to run.
  12. Coverage is currently rather incomplete.
  13. Latest release (v0.1)
  14. ---------------------
  15. EarwigBot is available from the `Python Package Index`_, so you can install the
  16. latest release with ``pip install earwigbot`` (`get pip`_).
  17. You can also install it from source [1]_ directly::
  18. curl -Lo earwigbot.tgz https://github.com/earwig/earwigbot/tarball/v0.1
  19. tar -xf earwigbot.tgz
  20. cd earwig-earwigbot-*
  21. python setup.py install
  22. cd ..
  23. rm -r earwigbot.tgz earwig-earwigbot-*
  24. Development version
  25. -------------------
  26. You can install the development version of the bot from ``git`` by using
  27. setuptools/distribute's ``develop`` command [1]_, probably on the ``develop``
  28. branch which contains (usually) working code. ``master`` contains the latest
  29. release. EarwigBot uses `git flow`_, so you're free to
  30. browse by tags or by new features (``feature/*`` branches)::
  31. git clone git://github.com/earwig/earwigbot.git earwigbot
  32. cd earwigbot
  33. python setup.py develop
  34. .. rubric:: Footnotes
  35. .. [1] ``python setup.py install``/``develop`` may require root, or use the
  36. ``--user`` switch to install for the current user only.
  37. .. _my instance of EarwigBot: http://en.wikipedia.org/wiki/User:EarwigBot
  38. .. _earwigbot-plugins: https://github.com/earwig/earwigbot-plugins
  39. .. _Python Package Index: http://pypi.python.org
  40. .. _get pip: http://pypi.python.org/pypi/pip
  41. .. _git flow: http://nvie.com/posts/a-successful-git-branching-model/