derrix060 / onedriveClient

A Microsoft OneDrive and OneDrive for Business client for Linux, written in Python3.
MIT License
65 stars 10 forks source link

Disable setup.py test dependency version checks #46

Open modelmat opened 5 years ago

modelmat commented 5 years ago

I believe this is actually part of the setuptools functionality, so I'm not sure if this is even possible.

When installing via the AUR, there is the option to add a check function which runs the tests when building. However, because the packages are installed straight from the Arch repositories, they are often the latest version - which requirements.txt specifies they are not to be. So far, it hasn't caused any issues aside from running the texts, it will complain about the incorrect versions of packages before completing the tests (and hence will fail).

It would be great if it was possible to run python setup.py test--no-check-dependencies` (or the like) which does not check the dependency versions.

derrix060 commented 5 years ago

I would say that if the requirements specify an specific version, this version needs to be used. Can you investigate to see if is possible to install via AUR in a virtual environment? This way it won't mix up any other python dependency that might be installed.

modelmat commented 5 years ago

I've looked before and it seems it would be lots of hassle. I can try, but it's probably not the best - even the commands will have to somehow activate the virtual environment (though this is fine for systemd services).