-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
105 lines (95 loc) · 3.66 KB
/
setup.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Hyperdome
Copyright (C) 2019 - 2020 Skyelar Craver <[email protected]>
and Steven Pitts <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import os
import sys
from setuptools import setup, find_packages
def file_list(path):
files = []
for filename in os.listdir(path):
if os.path.isfile(os.path.join(path, filename)):
files.append(os.path.join(path, filename))
return files
version = open("share/version.txt").read().strip()
description = """The safest place to reach out"""
long_description = (
description
+ "\n\n"
+ (
"""Hyperdome is an asymmetrical chat application designed to have distributed and domain specific servers.
Users connect completely anonymously to the server and will be paired with whatever that server determines is qualified counsel.
College campuses could provide safe mental health services with no fear.
Legal offices can provide counseling to prospective clients with everything on the table.
Hyperdome provides a simple server and client that any entity can implement to give some set of guests access to a verified list of people."""
)
)
author = "Skyelar Ceaver"
author_email = "[email protected]"
url = "https://github.com/arades79/hyperdome"
license = "GPL v3"
keywords = "onion, hyperdome, tor, anonymous, web server, therapy, counseling"
classifiers = [
"Programming Language :: Python :: 3",
"Framework :: Flask",
"Topic :: Communications :: Wellness",
"Topic :: Security :: Cryptography",
"License :: OSI Approved :: GNU General Public License v3 or later",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Environment :: Web Environment",
]
data_files = [
(os.path.join(sys.prefix, "share/applications"), ["install/hyperdome.desktop"]),
(os.path.join(sys.prefix, "share/metainfo"), ["install/hyperdome.appdata.xml"]),
(os.path.join(sys.prefix, "share/hyperdome"), file_list("share")),
(os.path.join(sys.prefix, "share/hyperdome/images"), file_list("share/images")),
(os.path.join(sys.prefix, "share/hyperdome/locale"), file_list("share/locale")),
(
os.path.join(sys.prefix, "share/hyperdome/templates"),
file_list("share/templates"),
),
(
os.path.join(sys.prefix, "share/hyperdome/static/css"),
file_list("share/static/css"),
),
(
os.path.join(sys.prefix, "share/hyperdome/static/img"),
file_list("share/static/img"),
),
]
setup(
name="hyperdome",
version=version,
description=description,
long_description=long_description,
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
url=url,
license=license,
keywords=keywords,
classifiers=classifiers,
packages=find_packages(),
include_package_data=True,
data_files=data_files,
entry_points="""
[console_scripts]
hyperdome=hyperdome.client.scripts.start_client:start
hyperdome_server=hyperdome.server.scripts.cli:admin
""",
)