mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-12-28 17:48:52 +01:00
parent
aab973f12e
commit
1e82571b3d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
sshuttle/version.py
|
||||
*.pyc
|
||||
*~
|
||||
*.8
|
||||
|
14
setup.py
14
setup.py
@ -19,12 +19,20 @@
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
with open('VERSION.txt', 'r') as f:
|
||||
version = f.readline().strip()
|
||||
|
||||
def version_scheme(version):
|
||||
from setuptools_scm.version import guess_next_dev_version
|
||||
version = guess_next_dev_version(version)
|
||||
return version.lstrip("v")
|
||||
|
||||
setup(
|
||||
name="sshuttle",
|
||||
version=version,
|
||||
use_scm_version={
|
||||
'write_to': "sshuttle/version.py",
|
||||
'version_scheme': version_scheme,
|
||||
},
|
||||
setup_requires=['setuptools_scm'],
|
||||
# version=version,
|
||||
url='https://github.com/sshuttle/sshuttle',
|
||||
author='Brian May',
|
||||
author_email='brian@linuxpenguins.xyz',
|
||||
|
@ -126,6 +126,7 @@ r,remote= ssh hostname (and optional username) of remote sshuttle server
|
||||
x,exclude= exclude this subnet (can be used more than once)
|
||||
X,exclude-from= exclude the subnets in a file (whitespace separated)
|
||||
v,verbose increase debug message verbosity
|
||||
V,version print the sshuttle version number and exit
|
||||
e,ssh-cmd= the command to use to connect to the remote [ssh]
|
||||
seed-hosts= with -H, use these hostnames for initial scan (comma-separated)
|
||||
no-latency-control sacrifice latency to improve bandwidth benchmarks
|
||||
@ -142,6 +143,10 @@ hostwatch (internal use only)
|
||||
o = options.Options(optspec)
|
||||
(opt, flags, extra) = o.parse(sys.argv[1:])
|
||||
|
||||
if opt.version:
|
||||
from sshuttle.version import version
|
||||
print(version)
|
||||
exit(0)
|
||||
if opt.daemon:
|
||||
opt.syslog = 1
|
||||
if opt.wrap:
|
||||
|
Loading…
Reference in New Issue
Block a user