-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·60 lines (54 loc) · 2.11 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
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2018, Marsiske Stefan
# SPDX-License-Identifier: GPL-3.0-or-later
import os
#from distutils.core import setup, Extension
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
from setuptools.command.sdist import sdist as SetuptoolsSdist
class BuildMakefilesSdist(SetuptoolsSdist):
def run(self):
os.chdir('man')
os.system('make')
os.chdir('..')
SetuptoolsSdist.run(self)
from setuptools.command.build import build as SetuptoolsBuild
class BuildMakefilesBuild(SetuptoolsBuild):
def run(self):
os.chdir('man')
os.system('make')
os.chdir('..')
SetuptoolsBuild.run(self)
setup(name = 'pwdsphinx',
version = '1.0.19',
description = 'SPHINX password protocol',
license = "GPLv3",
author = 'Stefan Marsiske',
author_email = 'sphinx@ctrlc.hu',
url = 'https://github.com/stef/pwdsphinx',
long_description=read('README.md'),
long_description_content_type="text/markdown",
packages = ['pwdsphinx'],
install_requires = ("pysodium", "SecureString", "qrcodegen","zxcvbn-python", 'pyequihash'),
classifiers = ["Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Security :: Cryptography",
"Topic :: Security",
],
entry_points = {
'console_scripts': [
'oracle = pwdsphinx.oracle:main',
'sphinx = pwdsphinx.sphinx:main',
'websphinx = pwdsphinx.websphinx:main',
'bin2pass = pwdsphinx.bin2pass:main',
],
},
cmdclass={'sdist': BuildMakefilesSdist,
'build': BuildMakefilesBuild},
#ext_modules = [libsphinx],
)