forked from brettviren/python-keepass
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·56 lines (48 loc) · 1.58 KB
/
setup.py
File metadata and controls
executable file
·56 lines (48 loc) · 1.58 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
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Copyright (c) 2012 Bastian Kleineidam
from setuptools import setup
from distutils.command.register import register
appname = 'python-keepass'
version = '0.2'
description = "Command line interface for KeePass v4 files."
long_description = """
A command line interface to read from file in KeePass format v4
(used by KeePass and KeePassx 2.x).
"""
class MyRegister (register, object):
"""Custom register command."""
def build_post_data(self, action):
"""Force application name to lower case."""
data = super(MyRegister, self).build_post_data(action)
data['name'] = data['name'].lower()
return data
args = dict(
name = appname,
version = version,
url = 'https://github.com/wummel/python-keepass',
license = 'GPL',
description = description,
long_description = long_description,
maintainer = 'Bastian Kleineidam',
maintainer_email = 'bastian.kleineidam@web.de',
packages = ['keepasslib'],
scripts = ['keepassc'],
data_files = [],
cmdclass = {
'register': MyRegister,
},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Intended Audience :: End Users/Desktop',
'Environment :: Console',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Topic :: Security :: Cryptography',
'Topic :: Utilities'
],
)
setup(**args)