This repository was archived by the owner on Apr 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (60 loc) · 1.89 KB
/
setup.py
File metadata and controls
66 lines (60 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import os
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
def get_manpages():
"""
This function goes and gets all the man pages so they can be installed when
the package is installed.
"""
man_pages = []
for root, _, files in os.walk("docs/man"):
for file in files:
if file.endswith((".1", ".5", ".8")):
man_section = file.split(".")[-1]
dest_dir = os.path.join("share", "man", f"man{man_section}")
man_pages.append((dest_dir, [os.path.join(root, file)]))
return man_pages
setup(
name="pantalaimon",
version="0.10.5",
url="https://github.com/matrix-org/pantalaimon",
author="The Matrix.org Team",
author_email="poljar@termina.org.uk",
description=("A Matrix proxy daemon that adds E2E encryption capabilities."),
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache License, Version 2.0",
packages=find_packages(),
install_requires=[
"attrs >= 19.3.0",
"aiohttp >= 3.6, < 4.0",
"platformdirs >= 4.3.6",
"click >= 7.1.2",
"keyring >= 21.2.1",
"logbook >= 1.5.3",
"peewee >= 3.13.1",
"janus >= 0.5",
"cachetools >= 3.0.0",
"prompt_toolkit > 2, < 4",
"typing;python_version<'3.5'",
"matrix-nio[e2e] >= 0.24, < 0.25.2",
],
extras_require={
"ui": [
"dbus-python >= 1.2, < 1.3",
"PyGObject >= 3.46, < 3.50",
"pydbus >= 0.6, < 0.7",
"notify2 >= 0.3, < 0.4",
]
},
entry_points={
"console_scripts": [
"pantalaimon=pantalaimon.main:main",
"panctl=pantalaimon.panctl:main",
],
},
zip_safe=False,
data_files=get_manpages(),
)