Tigge / openant

ANT and ANT-FS Python Library
MIT License
174 stars 80 forks source link

Add udev_rules command to install udev rules and check root privileges #8

Closed Toilal closed 9 years ago

Toilal commented 9 years ago

This installs udev rules when running python setup.py udev_rules. It also install those rules when running python setup.py develop.

If user without root access install the module, it runs well and skip udev rules installation while displaying the following message : You must have root privileges to install udev rules. Run \"sudo python setup.py udev_rules\"

This PR is required for TravisCI build in CLI project. (https://github.com/Tigge/Garmin-Forerunner-610-Extractor/pull/119)

I've also added a tox configuration file to test in development environment using tox on each supported environment.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling f6bc36405d3f594dd692fbf6508583cf0bd58050 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling c5d087192711ee0c0e384443fea0bbeae3c8fd58 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling c5d087192711ee0c0e384443fea0bbeae3c8fd58 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling c5d087192711ee0c0e384443fea0bbeae3c8fd58 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling c5d087192711ee0c0e384443fea0bbeae3c8fd58 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 5e936331ec062a63685b9880fad4eea52e0af802 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.

Toilal commented 9 years ago

Now raising an OSError when trying to install without beeing root.

Tigge commented 9 years ago

Looks good! Maybe squash those first two commits together?

Toilal commented 9 years ago

My mistake, i do it now

Toilal commented 9 years ago

Done :)

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling 3b60608f77ac08125d5f95ac5b33682802542265 on Toilal:udev_command into aa3c1d55f47b9b08b4d5eaeb05163b616faa8cc0 on Tigge:master.