Rename module
This commit is contained in:
parent
684e5bcf38
commit
83a0545667
@ -30,7 +30,7 @@ from . import commands as _
|
||||
|
||||
|
||||
class MessagesBridge(Bridge):
|
||||
module = "mautrix_amp"
|
||||
module = "mautrix_line"
|
||||
name = "mautrix-amp"
|
||||
command = "python -m mautrix-amp"
|
||||
description = ("A very hacky Matrix-SMS bridge based on using "
|
@ -25,7 +25,7 @@ Permissions = NamedTuple("Permissions", user=bool, admin=bool, level=str)
|
||||
class Config(BaseBridgeConfig):
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
try:
|
||||
return os.environ[f"MAUTRIX_AMP_{key.replace('.', '_').upper()}"]
|
||||
return os.environ[f"MAUTRIX_LINE_{key.replace('.', '_').upper()}"]
|
||||
except KeyError:
|
||||
return super().__getitem__(key)
|
||||
|
10
setup.py
10
setup.py
@ -1,6 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
from mautrix_amp.get_version import git_tag, git_revision, version, linkified_version
|
||||
from mautrix_line.get_version import git_tag, git_revision, version, linkified_version
|
||||
|
||||
with open("requirements.txt") as reqs:
|
||||
install_requires = reqs.read().splitlines()
|
||||
@ -23,7 +23,7 @@ try:
|
||||
except IOError:
|
||||
long_desc = "Failed to read README.md"
|
||||
|
||||
with open("mautrix_amp/version.py", "w") as version_file:
|
||||
with open("mautrix_line/version.py", "w") as version_file:
|
||||
version_file.write(f"""# Generated in setup.py
|
||||
|
||||
git_tag = {git_tag!r}
|
||||
@ -33,7 +33,7 @@ linkified_version = {linkified_version!r}
|
||||
""")
|
||||
|
||||
setuptools.setup(
|
||||
name="mautrix-amp",
|
||||
name="mautrix-line",
|
||||
version=version,
|
||||
url="https://github.com/tulir/mautrix-amp",
|
||||
|
||||
@ -60,10 +60,10 @@ setuptools.setup(
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
],
|
||||
package_data={"mautrix_amp": [
|
||||
package_data={"mautrix_line": [
|
||||
"example-config.yaml",
|
||||
]},
|
||||
data_files=[
|
||||
(".", ["mautrix_amp/example-config.yaml"]),
|
||||
(".", ["mautrix_line/example-config.yaml"]),
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user