-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
106 lines (83 loc) · 3.16 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
106
#!/usr/bin/env python
# coding=utf-8
"""
PasswordMaker - Python library
==============================
Create and manage passwords.
Copyright (C):
2005 Eric H. Jung, Miquel Burns and LeahScape, Inc.
<http://passwordmaker.org>
2005-2007 Pedro Gimeno Fortea and Miquel Matthew 'Fire' Burns
<http://www.formauri.es/personal/pgimeno/>
2010 Aurelien Bompard
<http://aurelien.bompard.org>
2012 Richard Beales
2014 Richard Beales, Laurent Bachelier and Christoph Sarnowski
2018 Martin Manns
This file is part of PasswordMaker.
PasswordMaker is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Foobar 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Foobar. If not, see <https://www.gnu.org/licenses/>.
This version should work with Python > 2.3 including Python 3.x.
The pycrypto module enables additional algorithms.
It can be used both on the command-line and with a GUI based on TKinter.
"""
from distutils.core import setup, Command
import sys
import subprocess
class PyTest(Command):
"""Class for running py.test via setup.py"""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, 'testpwmlib.py'])
raise SystemExit(errno)
setup(
name='PasswordMaker - Python',
version='0.0.1',
description='Create and manage passwords.',
long_description='PasswordMaker - Python is a Python implementation of' +\
'PasswordMaker (see https://passwordmaker.org).' +\
'Its objective is to generate Web-site individual ' +\
'passwords from hashes of the site url and a master ' +\
'password.',
license='GPL v3 :: GNU General Public License',
keywords=['PasswordMaker'],
requires=['attrs (>=17.0)'],
packages=['.'],
scripts=['passwordmaker.py'],
cmdclass={'test': PyTest},
package_data={
'passwordmaker': [
'*.py',
'COPYING',
'COPYING.LESSER',
'README.md',
'todo.txt',
],
},
classifiers=[
'Development Status :: 2 - Pre-Alpha ',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Security',
],
)