This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
61 lines (53 loc) · 2.51 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
GPG Sync
Helps users have up-to-date public keys for everyone in their organization
https://github.com/firstlookmedia/gpgsync
Copyright (C) 2016 First Look Media
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, sys, platform
p = platform.system()
version_file = os.path.join(os.path.dirname(__file__), 'share', 'version')
version = open(version_file).read().strip().lstrip('v')
description = "GPG Sync lets users have up-to-date public keys for all other members of their organization."
long_description = description + " " + "If you're part of an organization that uses GPG internally you might notice that it doesn't scale well. New people join and create new keys and existing people revoke their old keys and transition to new ones. It quickly becomes unwieldy to ensure that everyone has a copy of everyone else's current key, and that old revoked keys get refreshed to prevent users from accidentally using them."
author = 'Micah Lee'
author_email = 'micah.lee@theintercept.com'
url = 'https://github.com/firstlook/gpgsync'
license = 'GPL v3'
keywords = 'gpgsync, pgp, openpgp, gpg, gnupg'
from setuptools import setup
share_files = [
'share/gpgsync.desktop',
'share/gpgsync.png',
'share/syncing.png',
'share/sks-keyservers.netCA.pem',
'share/sks-keyservers.netCA.pem.asc',
'share/version'
]
setup(
name='gpgsync', version=version,
description=description, long_description=long_description,
author=author, author_email=author_email,
url=url, license=license, keywords=keywords,
packages=['gpgsync', 'gpgsync.gui'],
scripts=['install/scripts/gpgsync'],
data_files=[
(os.path.join(sys.prefix, 'share/applications'), ['share/gpgsync.desktop']),
(os.path.join(sys.prefix, 'share/pixmaps'), ['share/gpgsync.png']),
(os.path.join(sys.prefix, 'share/gpgsync/'), share_files)
],
setup_requires=["pytest-runner" ],
tests_require=["pytest", ],
)