Skip to content

Commit

Permalink
Install metabot into bindir (but keep python -m metabot functional).
Browse files Browse the repository at this point in the history
Bump release version.
  • Loading branch information
nmlorg committed Jun 19, 2024
1 parent c016a74 commit 60aa485
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ Modularized, multi-account bot.

## Quickstart
```
virtualenv -ppython3 mymetabot
python3 -m venv mymetabot
cd mymetabot
. bin/activate
source bin/activate
pip install metabot
mkdir config
python -m metabot
metabot
```

## Plugins
Expand Down
8 changes: 4 additions & 4 deletions docs/develop/modules.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```shell
MODULENAME=somethingcool
virtualenv -ppython3 metabot.modules.${MODULENAME}
python3 -m venv metabot.modules.${MODULENAME}
cd metabot.modules.${MODULENAME}
. bin/activate
mkdir -p config metabot/modules
source bin/activate
mkdir -p metabot/modules
for i in metabot metabot/modules; do
echo "__import__('pkg_resources').declare_namespace(__name__)" > ${i}/__init__.py
done
Expand Down Expand Up @@ -39,5 +39,5 @@ def moddispatch(ctx, msg, unused_modconf):
def ${MODULENAME}(ctx, msg):
msg.add('Your user id is %s!', ctx.user['id'])
EOF
python -m metabot
metabot
```
7 changes: 3 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
title: Quickstart

```shell
virtualenv -ppython3 mymetabot
python3 -m venv mymetabot
cd mymetabot
. bin/activate
source bin/activate
pip install metabot
mkdir config
python -m metabot
metabot
```
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'metabot'
version = '0.3.19'
version = '0.3.20'
description = 'Modularized, multi-account bot.'
readme = 'README.md'
authors = [
Expand All @@ -23,6 +23,9 @@ dev = [
'requests-mock',
]

[project.scripts]
metabot = 'metabot.__main__:main'

[project.urls]
Homepage = 'https://github.com/nmlorg/metabot'
Issues = 'https://github.com/nmlorg/metabot/issues'
Expand Down

0 comments on commit 60aa485

Please sign in to comment.