pypreprocessor
pypreprocessor copied to clipboard
Move test import to RunTest class
Cannot install via pip due to below error so moved import statement. Also removed self import.
PS D:\Users\...\pypreprocessor\tests\.isolated> pip install pypreprocessor
Collecting pypreprocessor
Using cached pypreprocessor-0.7.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\...\pip-build-lrqpqz\pypreprocessor\setup.py", line 16, in <module>
from tests import RunTests
File "tests\__init__.py", line 11, in <module>
from tests import maintest
ImportError: cannot import name maintest
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\...\temp\pip-build-lrqpqz\pypreprocessor\
Hi,
until the pull-request is merged a temporary solution could be:
Specifying this branch/fork during the pip install command:
pip install pypreprocessor --extra-index-url Repo-URL
and for Repo-URL set in the URL to the Epikem:master which should be:
https://github.com/Epikem/pypreprocessor
resulting in:
pip install pypreprocessor --extra-index-url https://github.com/Epikem/pypreprocessor
I tested the above way and still got the error (on Mac), seems the above method does not work.
But you can try: pip install git+https://github.com/Epikem/pypreprocessor This worked for me
You can install with this command : pip install git+https://github.com/Epikem/pypreprocessor.git