This repository has been archived by the owner on Sep 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
94 lines (84 loc) · 2.95 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
'''
Unapologetically adapted from Jeff Knupp's execellent article:
http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
'''
from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys
import keybase
here = os.path.abspath(os.path.dirname(__file__))
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
long_description = '''The ``keybase`` python API allows you to search, download
and use the stored keys in the Keybase directory. You can do things like encrypt
messages and files for a user or verify a signature on a file from a user.
Eventually it will be extended to allow you to administer Keybase user
identities and their associated public/private keypairs via the ``KeybaseAdmin`` class.
The official documentation for the project can be found here: http://keybase-python-api.readthedocs.org/en/latest/
The source code for the project can be found here: https://github.com/ianchesal/keybase-python
'''
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name = 'keybase-api',
version = keybase.__version__,
url = 'https://github.com/ianchesal/keybase-python',
license = 'Apache Software License, v2.0',
author = 'Ian Chesal',
setup_requires=['nose>=1.0'],
tests_require = ['nose>=1.0'],
install_requires = [
'astroid>=1.0.1',
'cffi>=0.8.2',
'docutils>=0.11',
'gnupg>=1.2.5',
'Jinja2>=2.7.2',
'logilab-common>=0.61.0',
'MarkupSafe>=0.19',
'py>=1.4.20',
'pycparser>=2.10',
'Pygments>=1.6',
'requests>=2.2.1',
'scrypt>=0.6.1',
'Sphinx>=1.2.2',
'sphinx_rtd_theme>=0.1.6',
'wsgiref>=0.1.2',
],
author_email = '[email protected]',
description = 'A Python implementation of the keybase.io API',
long_description = long_description,
packages = ['keybase'],
include_package_data = True,
platforms = 'any',
test_suite = 'nose.collector',
classifiers = [
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Security',
'Topic :: Security :: Cryptography',
],
extras_require = {
'testing': ['pytest'],
}
)