Restructure and add setup.py

This should make it possible to install with pip
main v0.0.1
Micke Nordin 3 years ago
parent fd76ee72df
commit b2e7b4ed6d
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ "${1}" == "-u" ]]; then if [[ "${1}" == "-u" ]]; then
echo "Uninstalling passui" echo "Uninstalling passui"
sudo rm /usr/local/bin/passui /usr/share/applications/passui.desktop sudo rm /usr/local/bin/passui /usr/share/applications/{org.smolnet.,}passui.desktop
echo "If you wish you can now manually remove the dependencies: wxpython git gnupg pass" echo "If you wish you can now manually remove the dependencies: wxpython git gnupg pass"
exit 0 exit 0
elif [[ "${1}" == "-h" ]]; then elif [[ "${1}" == "-h" ]]; then
@ -20,11 +20,11 @@ elif [[ -f /usr/bin/pacman ]]; then # Arch/Manjaro
else else
echo " This distribution is not supported by this installer. echo " This distribution is not supported by this installer.
manually install: wxpython python3-gnupg git gnupg pass manually install: wxpython python3-gnupg git gnupg pass
and then copy passui to /usr/local/bin and passui.desktop to /usr/share/applications/" and then copy passui to /usr/local/bin and org.smolnet.passui.desktop to /usr/share/applications/"
exit 1 exit 1
fi fi
sudo cp src/main.py /usr/local/bin/passui sudo cp scripts/passui /usr/local/bin/
sudo cp -a src/pass_handler /usr/lib/python3.9/site-packages/ sudo cp -a lib/pass_handler /usr/lib/python3.9/site-packages/
sudo cp -a src/pass_handler /usr/lib/python3.9/ sudo cp -a lib/pass_handler /usr/lib/python3.9/
sudo cp src/passui.desktop /usr/share/applications/ sudo cp data/org.smolnet.passui.desktop /usr/share/applications/
exit 0 exit 0

@ -0,0 +1,4 @@
wxPython==4.0.7
typing-extensions==3.7.4.3
typing-inspect==0.7.1
python-gnupg==0.4.6

@ -0,0 +1,28 @@
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="passui",
version="0.0.1",
author="Micke Nordin",
author_email="hej@mic.ke",
data_files = [('share/applications', ['data/org.smolnet.passui.desktop']),],
description="A GUI for the standad Unix password manager.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://code.smolnet.org/micke/passui",
project_urls={
"Bug Tracker": "https://code.smolnet.org/micke/passui",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GPL-3.0",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.9",
scripts=["scripts/passui"],
)
Loading…
Cancel
Save