Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to install current package #349

Closed
lukka5 opened this issue Feb 7, 2019 · 4 comments
Closed

Way to install current package #349

lukka5 opened this issue Feb 7, 2019 · 4 comments

Comments

@lukka5
Copy link

lukka5 commented Feb 7, 2019

If I get / download a Python package I would like to run the tests to ensure test are passing. I would like to install the package, it's dependencies and then running the test suite. Something like:

fades -r requirements.txt -d . -x pytest  # Assuming pytest is in requirements.txt

But requirements . is not supported by parsing. Alternatively something like this:

fades -d .[test] -x pytest  # Assuming pytest is in setup.py extra_require

Is someway to achieve this? Not sure if it's related to #222

@gilgamezh
Copy link
Contributor

gilgamezh commented Feb 17, 2019

hello! we support install from a path. So you can run something like fades -d file://$(pwd)

would it work for you?

@facundobatista
Copy link
Member

Hello lukka5!

I'm not fully understanding the case... You download a Python package from somewhere, unpack it in your disk, and then want to use fades to run its tests? Or you use fades to install a package inside a virtualenv, and then want to run the tests for that package? Or a third thing?

Thanks!

@facundobatista
Copy link
Member

Bumping this, it's been a year without response from the OP.

@lukka5
Copy link
Author

lukka5 commented Mar 30, 2020

So sorry, I completely overlooked this. @gilgamezh answer works perfectly. I needed to do something like this:

git clone <repo>
cd <repo>
fades -r requirements.txt -d file://$(pwd) -x pytest

Thanks for this amazing utility.

@lukka5 lukka5 closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants