Comments (3)
thanks Bert.
It specifies Python 3.6+ in the metadata, which should raise a warning/error for older versions of Python. https://github.com/tonybaloney/wily/blob/master/pyproject.toml#L31
That metadata tag was only introduced in the 1.2 Metadata API
Curious to know:
- Which version of Pip are you using?
- Which version of wily did it install?
from wily.
It looks like it is installing WIly 0.2.0 on python 2.7 (pip 18.1)
The full walk-through:
bert@bert-i7000:/python_workspace$ mkdir wily-test/python_workspace$ cd wily-test/
bert@bert-i7000:
bert@bert-i7000:/python_workspace/wily-test$ python --version/python_workspace/wily-test$ python -m virtualenv venv2
Python 2.7.13
bert@bert-i7000:
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/bert/python_workspace/wily-test/venv2/bin/python2
Also creating executable in /home/bert/python_workspace/wily-test/venv2/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
bert@bert-i7000:/python_workspace/wily-test$ source venv2/bin/activate/python_workspace/wily-test$ pip --version
(venv2) bert@bert-i7000:
pip 18.1 from /home/bert/python_workspace/wily-test/venv2/local/lib/python2.7/site-packages/pip (python 2.7)
(venv2) bert@bert-i7000:/python_workspace/wily-test$ pip install --upgrade pip/python_workspace/wily-test$ pip install --upgrade virtualenv
Requirement already up-to-date: pip in ./venv2/lib/python2.7/site-packages (18.1)
(venv2) bert@bert-i7000:
Collecting virtualenv
Using cached https://files.pythonhosted.org/packages/7c/17/9b7b6cddfd255388b58c61e25b091047f6814183e1d63741c8df8dcd65a2/virtualenv-16.1.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-16.1.0
(venv2) bert@bert-i7000:/python_workspace/wily-test$ pip install wily/python_workspace/wily-test$ wily
Collecting wily
Using cached https://files.pythonhosted.org/packages/f9/81/65c23c01a56dbf393335c5b6b5120f4dc33433f1e6b01a1c3609d5b8b1b5/wily-0.2.0-py2.py3-none-any.whl
Installing collected packages: wily
Successfully installed wily-0.2.0
(venv2) bert@bert-i7000:
Traceback (most recent call last):
File "/home/bert/python_workspace/wily-test/venv2/bin/wily", line 7, in
from wily.main import cli
File "/home/bert/python_workspace/wily-test/venv2/local/lib/python2.7/site-packages/wily/init.py", line 4, in
import colorlog
ImportError: No module named colorlog
(venv2) bert@bert-i7000:~/python_workspace/wily-test$ ls -lrt /home/bert/python_workspace/wily-test/venv2/lib/python2.7/site-packages/
totaal 244
-rw-r--r-- 1 bert bert 126 nov 11 10:16 easy_install.py
-rw-r--r-- 1 bert bert 315 nov 11 10:16 easy_install.pyc
drwxr-xr-x 4 bert bert 4096 nov 11 10:16 pkg_resources
drwxr-xr-x 5 bert bert 4096 nov 11 10:16 setuptools
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 setuptools-40.5.0.dist-info
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 pkg_resources-0.0.0.dist-info
drwxr-xr-x 4 bert bert 4096 nov 11 10:16 pip
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 pip-18.1.dist-info
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 wheel-0.32.2.dist-info
drwxr-xr-x 3 bert bert 4096 nov 11 10:16 wheel
-rw-r--r-- 1 bert bert 101286 nov 11 10:16 virtualenv.py
-rw-r--r-- 1 bert bert 88602 nov 11 10:16 virtualenv.pyc
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 virtualenv_support
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 virtualenv-16.1.0.dist-info
drwxr-xr-x 5 bert bert 4096 nov 11 10:16 wily
drwxr-xr-x 2 bert bert 4096 nov 11 10:16 wily-0.2.0.dist-info
from wily.
Looks like I added the metadata after version 0.2.
Have removed early builds from PyPi, verified this now gives the correct message:
➜ ~ python2 -V
Python 2.7.15
➜ ~ pip2 -V
pip 9.0.3 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)
➜ ~ pip2 install --upgrade pip
Cache entry deserialization failed, entry ignored
Collecting pip
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 726kB/s
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Successfully installed pip-18.1
➜ ~ pip2 install wily
Collecting wily
Could not find a version that satisfies the requirement wily (from versions: )
No matching distribution found for wily
➜ ~
from wily.
Related Issues (20)
- wily version not displayed in help text
- Reports show git commits in the wrong order HOT 4
- Wily reports on the CLI show columns in unpredictable order
- Wily console output shows values in green when they get worse and red when they get better. HOT 1
- Rank command missing from docs HOT 1
- Red and green colours flipped in usage HOT 2
- wily's temp files seem to sometimes conflict with git checkout HOT 1
- Alternative Complexity Measures HOT 2
- report metrics by function, method or class
- Wily fails when enabled on GitHub workflow HOT 8
- Cant install wily due to dependency conflict with Click <8.0 HOT 4
- Cant install wily due to dependency conflict with progress 1.6
- Package Wily on conda-forge? HOT 3
- class complexity behaviour
- Return results for diff and rank methods HOT 1
- Click version not matching in pyproject.toml HOT 2
- `wily build` alway return `No data collected` for all operators HOT 3
- Add Code of Conduct
- Wily fails to setup archiver sometimes HOT 5
- In-line visualization of maintainability index HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wily.