Final fixes for the first version
parent
849bd5a6ec
commit
d3861235db
@ -0,0 +1,2 @@
|
||||
SOFTWARE_VERSION = "1.0.6"
|
||||
__version__ = SOFTWARE_VERSION
|
@ -1,2 +1,2 @@
|
||||
from SamAuthenticator.Authenticator import *
|
||||
from SamAuthenticator.AuthenticatorGUIApp import *
|
||||
# from SamAuthenticator.Authenticator import *
|
||||
# from SamAuthenticator.AuthenticatorGUIApp import *
|
||||
|
@ -1,4 +1,4 @@
|
||||
import SamAuthenticator as auth
|
||||
from SamAuthenticator.AuthenticatorGUIApp import *
|
||||
|
||||
auth.start()
|
||||
start()
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
RMDIR /S /Q dist
|
||||
RMDIR /S /Q build
|
||||
CALL python setup.py bdist_wheel --universal
|
||||
if NOT %ERRORLEVEL% == 0 goto errorHandling
|
||||
cd ..
|
||||
pause
|
||||
exit 0
|
||||
|
||||
:errorHandling
|
||||
echo "Error while building..."
|
||||
pause
|
||||
exit 1
|
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#go to the directory of the script
|
||||
reldir=`dirname $0`
|
||||
cd $reldir
|
||||
directory=`pwd`
|
||||
|
||||
rm -rf build
|
||||
rm -rf dist
|
||||
|
||||
python3 setup.py sdist
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'Python packager source distribution tool failed.'
|
||||
exit
|
||||
fi
|
@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
python -c "import SamAuthenticator.Meta;print(SamAuthenticator.Meta.__version__)" > ver.txt
|
||||
set /p VER=<ver.txt
|
||||
call pip install dist\samauth-%VER%-py2.py3-none-any.whl --upgrade --verbose
|
||||
call rm ver.txt
|
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
#go to the directory of the script
|
||||
reldir=`dirname $0`
|
||||
cd $reldir
|
||||
directory=`pwd`
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pip3 install dist/samauth* --upgrade
|
||||
if [ $? -ne 0 ]; then
|
||||
echo 'Package installation failed. Did you build the package? Do you have pip3 installed?'
|
||||
exit
|
||||
fi
|
||||
|
@ -0,0 +1 @@
|
||||
python setup.py register sdist upload
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
#python3 setup.py register sdist upload
|
||||
twine upload dist/*.tar.gz
|
||||
|
@ -0,0 +1,34 @@
|
||||
# from distutils.core import setup
|
||||
import SamAuthenticator.Meta
|
||||
import os
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
try:
|
||||
del os.link
|
||||
except:
|
||||
pass
|
||||
|
||||
include_files = ["SamAuthenticator/images/key.png"]
|
||||
|
||||
setup(
|
||||
name="samauth",
|
||||
version = SamAuthenticator.Meta.__version__,
|
||||
author="Samer Afach",
|
||||
author_email="samer@afach.de",
|
||||
packages=["SamAuthenticator"],
|
||||
include_package_data=True,
|
||||
url="https://git.afach.de/samerafach/SamAuthenticator",
|
||||
description="A simple Google Authenticator replacement",
|
||||
data_files=include_files,
|
||||
install_requires=['pyqt5', 'onetimepass', 'cryptography', 'argon2'],
|
||||
extras_requires=['pyqt5', 'onetimepass', 'cryptography', 'argon2'],
|
||||
python_requires='>=3.4',
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'samauth = SamAuthenticator.AuthenticatorGUIApp:start',
|
||||
'samauthenticator = SamAuthenticator.AuthenticatorGUIApp:start'
|
||||
]}
|
||||
)
|
Loading…
Reference in New Issue