Rename again

This commit is contained in:
Andrew Ferrazzutti 2021-03-15 01:40:56 -04:00
parent 20f419a5c3
commit 456ac7ff50
44 changed files with 64 additions and 64 deletions

View File

@ -31,19 +31,19 @@ RUN apk add --no-cache \
chmod +x yq && mv yq /usr/bin/yq chmod +x yq && mv yq /usr/bin/yq
COPY requirements.txt /opt/matrix-appservice-line/requirements.txt COPY requirements.txt /opt/matrix-puppeteer-line/requirements.txt
COPY optional-requirements.txt /opt/matrix-appservice-line/optional-requirements.txt COPY optional-requirements.txt /opt/matrix-puppeteer-line/optional-requirements.txt
WORKDIR /opt/matrix-appservice-line WORKDIR /opt/matrix-puppeteer-line
RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \ RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \
&& pip3 install -r requirements.txt -r optional-requirements.txt \ && pip3 install -r requirements.txt -r optional-requirements.txt \
&& apk del .build-deps && apk del .build-deps
COPY . /opt/matrix-appservice-line COPY . /opt/matrix-puppeteer-line
RUN apk add git && pip3 install .[e2be] && apk del git \ RUN apk add git && pip3 install .[e2be] && apk del git \
# This doesn't make the image smaller, but it's needed so that the `version` command works properly # This doesn't make the image smaller, but it's needed so that the `version` command works properly
&& cp matrix_appservice_line/example-config.yaml . && rm -rf matrix_appservice_line && cp matrix_puppeteer_line/example-config.yaml . && rm -rf matrix_puppeteer_line
VOLUME /data VOLUME /data
ENV UID=1337 GID=1337 ENV UID=1337 GID=1337
CMD ["/opt/matrix-appservice-line/docker-run.sh"] CMD ["/opt/matrix-puppeteer-line/docker-run.sh"]

View File

@ -1,4 +1,4 @@
# matrix-appservice-line # matrix-puppeteer-line
A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer. A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer.
## Features & roadmap ## Features & roadmap
@ -8,4 +8,4 @@ A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Pupp
[SETUP.md](SETUP.md) [SETUP.md](SETUP.md)
## Discussion ## Discussion
Matrix room: [`#matrix-appservice-line:miscworks.net`](https://matrix.to/#/#matrix-appservice-line:miscworks.net) Matrix room: [`#matrix-puppeteer-line:miscworks.net`](https://matrix.to/#/#matrix-puppeteer-line:miscworks.net)

View File

@ -34,5 +34,5 @@
* Replies * Replies
* Voice messages * Voice messages
### Missing from matrix-appservice-line ### Missing from matrix-puppeteer-line
* TODO * TODO

View File

@ -7,7 +7,7 @@
6. Launch the Puppeteer module with `yarn start` or `node src/main.js` 6. Launch the Puppeteer module with `yarn start` or `node src/main.js`
7. `cd` to the main directory and create a Python virtual environment with `virtualenv -p /usr/bin/python3 .venv`, and enter it with `source .venv/bin/activate` 7. `cd` to the main directory and create a Python virtual environment with `virtualenv -p /usr/bin/python3 .venv`, and enter it with `source .venv/bin/activate`
8. Install Python requirements with `pip install -r requirements.txt` 8. Install Python requirements with `pip install -r requirements.txt`
9. Copy `matrix_appservice_line/example-config.yaml` to `config.yaml`, and update it with the proper settings to connect to your homeserver 9. Copy `matrix_puppeteer_line/example-config.yaml` to `config.yaml`, and update it with the proper settings to connect to your homeserver
10. Run `python -m matrix_appservice_line -g` to generate an appservice registration file, and update your homeserver configuration to accept it 10. Run `python -m matrix_puppeteer_line -g` to generate an appservice registration file, and update your homeserver configuration to accept it
11. Run the bridge with `python -m matrix_appservice_line` 11. Run the bridge with `python -m matrix_puppeteer_line`
12. Start a chat with the bot and follow the instructions 12. Start a chat with the bot and follow the instructions

View File

@ -2,10 +2,10 @@
# Define functions. # Define functions.
function fixperms { function fixperms {
chown -R $UID:$GID /data /opt/matrix-appservice-line chown -R $UID:$GID /data /opt/matrix-puppeteer-line
} }
cd /opt/matrix-appservice-line cd /opt/matrix-puppeteer-line
if [ ! -f /data/config.yaml ]; then if [ ! -f /data/config.yaml ]; then
cp example-config.yaml /data/config.yaml cp example-config.yaml /data/config.yaml
@ -18,7 +18,7 @@ if [ ! -f /data/config.yaml ]; then
fi fi
if [ ! -f /data/registration.yaml ]; then if [ ! -f /data/registration.yaml ]; then
python3 -m matrix_appservice_line -g -c /data/config.yaml -r /data/registration.yaml python3 -m matrix_puppeteer_line -g -c /data/config.yaml -r /data/registration.yaml
echo "Didn't find a registration file." echo "Didn't find a registration file."
echo "Generated one for you." echo "Generated one for you."
echo "Copy that over to synapses app service directory." echo "Copy that over to synapses app service directory."
@ -27,4 +27,4 @@ if [ ! -f /data/registration.yaml ]; then
fi fi
fixperms fixperms
exec su-exec $UID:$GID python3 -m matrix_appservice_line -c /data/config.yaml exec su-exec $UID:$GID python3 -m matrix_puppeteer_line -c /data/config.yaml

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -30,12 +30,12 @@ from . import commands as _
class MessagesBridge(Bridge): class MessagesBridge(Bridge):
module = "matrix_appservice_line" module = "matrix_puppeteer_line"
name = "matrix-appservice-line" name = "matrix-puppeteer-line"
command = "python -m matrix_appservice_line" command = "python -m matrix_puppeteer_line"
description = ("A very hacky Matrix-LINE bridge based on running " description = ("A very hacky Matrix-LINE bridge based on running "
"LINE's Chrome extension in Puppeteer.") "LINE's Chrome extension in Puppeteer.")
repo_url = "git://miscworks.net/matrix-appservice-line" repo_url = "git://miscworks.net/matrix-puppeteer-line"
real_user_content_key = "net.miscworks.line.puppet" real_user_content_key = "net.miscworks.line.puppet"
version = version version = version
markdown_version = linkified_version markdown_version = linkified_version

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -25,7 +25,7 @@ Permissions = NamedTuple("Permissions", user=bool, admin=bool, level=str)
class Config(BaseBridgeConfig): class Config(BaseBridgeConfig):
def __getitem__(self, key: str) -> Any: def __getitem__(self, key: str) -> Any:
try: try:
return os.environ[f"MATRIX_APPSERVICE_LINE_{key.replace('.', '_').upper()}"] return os.environ[f"matrix_puppeteer_line_{key.replace('.', '_').upper()}"]
except KeyError: except KeyError:
return super().__getitem__(key) return super().__getitem__(key)

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -142,7 +142,7 @@ puppeteer:
# Either unix or tcp # Either unix or tcp
type: unix type: unix
# Only for type: unix # Only for type: unix
path: /var/run/matrix-appservice-line/puppet.sock path: /var/run/matrix-puppeteer-line/puppet.sock
# Only for type: tcp # Only for type: tcp
host: localhost host: localhost
port: 29395 port: 29395
@ -155,7 +155,7 @@ logging:
version: 1 version: 1
formatters: formatters:
colored: colored:
(): matrix_appservice_line.util.ColorFormatter (): matrix_puppeteer_line.util.ColorFormatter
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s" format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
normal: normal:
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s" format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
@ -163,7 +163,7 @@ logging:
file: file:
class: logging.handlers.RotatingFileHandler class: logging.handlers.RotatingFileHandler
formatter: normal formatter: normal
filename: ./matrix-appservice-line.log filename: ./matrix-puppeteer-line.log
maxBytes: 10485760 maxBytes: 10485760
backupCount: 10 backupCount: 10
console: console:

View File

@ -19,7 +19,7 @@ def run(cmd):
if os.path.exists(".git") and shutil.which("git"): if os.path.exists(".git") and shutil.which("git"):
try: try:
git_revision = run(["git", "rev-parse", "HEAD"]).strip().decode("ascii") git_revision = run(["git", "rev-parse", "HEAD"]).strip().decode("ascii")
git_revision_url = f"git://miscworks.net/matrix-appservice-line/commit/{git_revision}" git_revision_url = f"git://miscworks.net/matrix-puppeteer-line/commit/{git_revision}"
git_revision = git_revision[:8] git_revision = git_revision[:8]
except (subprocess.SubprocessError, OSError): except (subprocess.SubprocessError, OSError):
git_revision = "unknown" git_revision = "unknown"

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
# matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer # matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
# Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti # Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify

View File

@ -7,11 +7,11 @@ RUN echo $'\
RUN apk add --no-cache chromium@edge RUN apk add --no-cache chromium@edge
WORKDIR /opt/matrix-appservice-line/puppet WORKDIR /opt/matrix-puppeteer-line/puppet
RUN chown node:node /opt/matrix-appservice-line/puppet RUN chown node:node /opt/matrix-puppeteer-line/puppet
USER node USER node
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn --production && rm -rf node_modules/puppeteer/.local-chromium RUN yarn --production && rm -rf node_modules/puppeteer/.local-chromium
COPY . /opt/matrix-appservice-line/puppet COPY . /opt/matrix-puppeteer-line/puppet
CMD ["yarn", "start", "--config", "/data/config.json", "--browser", "/usr/lib/chromium/chrome", "--no-sandbox"] CMD ["yarn", "start", "--config", "/data/config.json", "--browser", "/usr/lib/chromium/chrome", "--no-sandbox"]

View File

@ -1,7 +1,7 @@
{ {
"listen": { "listen": {
"type": "unix", "type": "unix",
"path": "/var/run/matrix-appservice-line/puppet.sock" "path": "/var/run/matrix-puppeteer-line/puppet.sock"
}, },
"profile_dir": "./profiles", "profile_dir": "./profiles",
"url": "chrome-extension://<extension-uuid>/index.html", "url": "chrome-extension://<extension-uuid>/index.html",

View File

@ -1,16 +1,16 @@
{ {
"name": "matrix-appservice-line-puppeteer", "name": "matrix-puppeteer-line-puppeteer",
"version": "0.1.0", "version": "0.1.0",
"description": "Puppeteer module for matrix-appservice-line", "description": "Puppeteer module for matrix-puppeteer-line",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://miscworks.net/matrix-appservice-line.git" "url": "git://miscworks.net/matrix-puppeteer-line.git"
}, },
"type": "module", "type": "module",
"main": "src/main.js", "main": "src/main.js",
"author": "Andrew Ferrazzutti <fair@miscworks.net>", "author": "Andrew Ferrazzutti <fair@miscworks.net>",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"homepage": "https://miscworks.net/dir/matrix-appservice-line", "homepage": "https://miscworks.net/dir/matrix-puppeteer-line",
"scripts": { "scripts": {
"start": "node ./src/main.js" "start": "node ./src/main.js"
}, },

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,4 +1,4 @@
// matrix-appservice-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer // matrix-puppeteer-line - A very hacky Matrix-LINE bridge based on running LINE's Chrome extension in Puppeteer
// Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti // Copyright (C) 2020-2021 Tulir Asokan, Andrew Ferrazzutti
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
import setuptools import setuptools
from matrix_appservice_line.get_version import git_tag, git_revision, version, linkified_version from matrix_puppeteer_line.get_version import git_tag, git_revision, version, linkified_version
with open("requirements.txt") as reqs: with open("requirements.txt") as reqs:
install_requires = reqs.read().splitlines() install_requires = reqs.read().splitlines()
@ -23,7 +23,7 @@ try:
except IOError: except IOError:
long_desc = "Failed to read README.md" long_desc = "Failed to read README.md"
with open("matrix_appservice_line/version.py", "w") as version_file: with open("matrix_puppeteer_line/version.py", "w") as version_file:
version_file.write(f"""# Generated in setup.py version_file.write(f"""# Generated in setup.py
git_tag = {git_tag!r} git_tag = {git_tag!r}
@ -33,9 +33,9 @@ linkified_version = {linkified_version!r}
""") """)
setuptools.setup( setuptools.setup(
name="matrix-appservice-line", name="matrix-puppeteer-line",
version=version, version=version,
url="git://miscworks.net/matrix-appservice-line", url="git://miscworks.net/matrix-puppeteer-line",
author="Tulir Asokan", author="Tulir Asokan",
author_email="tulir@maunium.net", author_email="tulir@maunium.net",
@ -60,10 +60,10 @@ setuptools.setup(
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
], ],
package_data={"matrix_appservice_line": [ package_data={"matrix_puppeteer_line": [
"example-config.yaml", "example-config.yaml",
]}, ]},
data_files=[ data_files=[
(".", ["matrix_appservice_line/example-config.yaml"]), (".", ["matrix_puppeteer_line/example-config.yaml"]),
], ],
) )