jaysoffian / eap_proxy

Proxy EAP packets between interfaces on Linux devices such as the Ubiquiti Networks EdgeRouter™ and UniFi® Security Gateway.
BSD 3-Clause "New" or "Revised" License
562 stars 88 forks source link

add setup.py so zip archive can be pip-installed #42

Closed tobiasmcnulty closed 3 years ago

tobiasmcnulty commented 3 years ago

It seems to work:

root@OpenWrt:~# pip3 install https://github.com/tobiasmcnulty/eap_proxy/archive/master.zip
Collecting https://github.com/tobiasmcnulty/eap_proxy/archive/master.zip
  Downloading https://github.com/tobiasmcnulty/eap_proxy/archive/master.zip
     - 20 kB 35 kB/s
Using legacy setup.py install for eap-proxy, since package 'wheel' is not installed.
Installing collected packages: eap-proxy
    Running setup.py install for eap-proxy ... done
Successfully installed eap-proxy-1.0

The script itself is run without the .py extension:

root@OpenWrt:~# eap_proxy --help
usage: eap_proxy [-h] [--ping-gateway] [--ping-ip PING_IP]
                 [--ignore-when-wan-up] [--ignore-start] [--ignore-logoff]
                 [--restart-dhcp] [--set-mac] [--vlan-id VLAN_ID] [--daemon]
                 [--pidfile PIDFILE] [--syslog] [--run-as USER[:GROUP]]
                 [--promiscuous] [--debug] [--debug-packets]
                 IF_WAN IF_ROUTER
<snip>

I also removed the release I'd uploaded to PyPI so folks can't accidentally install that. Also, let me know if you want me to add you to the project on pypi, in case you wish to use it in the future.

jaysoffian commented 3 years ago

Thanks!