Skip to content

Commit

Permalink
Code refactoring before publishing on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
xmikos committed Apr 24, 2015
1 parent 9af3c7e commit ae0ffcb
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .gitignore
@@ -1,5 +1,6 @@
# Backup files
*~

# Compiled Python files
__pycache__/
*.py[cod]

build/
dist/
MANIFEST
2 changes: 2 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,2 @@
include LICENSE
include README.rst
6 changes: 3 additions & 3 deletions README.md → README.rst
Expand Up @@ -15,16 +15,16 @@ Requirements
Usage
-----

If you want to use systemctl without password prompt, you should add this line to /etc/sudoers (use visudo command for it):
If you want to use systemctl without password prompt, you should add this line to /etc/sudoers (use visudo command for it)::

%wheel ALL=(ALL) NOPASSWD: /usr/bin/systemctl

And then add yourself to wheel group:
And then add yourself to wheel group::

gpasswd -a your_username wheel

An alternative is to use kdesu instead of sudo (set this in QOpenVPN settings), but then you have to use password for every operation.

You should also add yourself to adm group for log viewer to work:
You should also add yourself to adm group for log viewer to work::

gpasswd -a your_username adm
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/qopenvpn
@@ -1,4 +1,4 @@
#!/usr/bin/env python

from qopenvpn import qopenvpn
qopenvpn.main()
from qopenvpn import __main__
__main__.main()
14 changes: 13 additions & 1 deletion setup.py
Expand Up @@ -15,4 +15,16 @@
data_files=[("share/applications", ["qopenvpn.desktop"]),
("share/pixmaps", ["qopenvpn.png"])],
scripts=["scripts/qopenvpn"],
requires=["PyQt4"])
requires=["PyQt4"],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Topic :: Security :: Cryptography',
'Topic :: System :: Networking'
])

0 comments on commit ae0ffcb

Please sign in to comment.