Comments (4)
Yea, flake8 just made a release that tossed a wrench in our works. I'll try to have a fix out tonight.
Dependency hell strikes again. :(
from tidypy.
New version published that should solve this. Let me know if problems persist.
from tidypy.
Awesome. Thanks! 👍
Was this caused by flake8 publishing a backwards-incompatible change without bumping versions correctly, or could this be solved by stricter dependency management on tidypy? Happy to brainstorm ideas if the latter - unless you already have a plan in place.
from tidypy.
flake8 didn't really do anything wrong, tidypy was just a victim of pip's limited ability to solve non-trivial dependency graphs.
Below are snippets from the output of pipenv graph
for versions 0.6 and 0.7 of tidypy. tidypy depends on pycodestyle and pep8-naming. pep8-naming dependency chain includes a very loose dependency on flake8. When pip went to install flake8, it grabbed the newest, which requires a version of pycodestyle that was outside the bounds that tidypy wanted -- thus the error.
v0.6.0:
- pep8-naming [required: >=0.4,<0.8, installed: 0.7.0]
- flake8-polyfill [required: >=1.0.2,<2, installed: 1.0.2]
- flake8 [required: Any, installed: 3.5.0]
- configparser [required: Any, installed: 3.5.0]
- enum34 [required: Any, installed: 1.1.6]
- mccabe [required: >=0.6.0,<0.7.0, installed: 0.6.1]
- pycodestyle [required: >=2.0.0,<2.4.0, installed: 2.3.1]
- pyflakes [required: >=1.5.0,<1.7.0, installed: 1.6.0]
- pycodestyle [required: >=2.3,<2.4, installed: 2.3.1]
v0.7.0:
- pep8-naming [required: >=0.4,<0.8, installed: 0.7.0]
- flake8-polyfill [required: >=1.0.2,<2, installed: 1.0.2]
- flake8 [required: Any, installed: 3.6.0]
- configparser [required: Any, installed: 3.5.0]
- enum34 [required: Any, installed: 1.1.6]
- mccabe [required: >=0.6.0,<0.7.0, installed: 0.6.1]
- pycodestyle [required: >=2.4.0,<2.5.0, installed: 2.4.0]
- pyflakes [required: >=2.0.0,<2.1.0, installed: 2.0.0]
- setuptools [required: >=30, installed: 40.4.3]
- pycodestyle [required: >=2.4,<2.5, installed: 2.4.0]
I thought about explicitly pinning flake8 in tidypy's dependencies to something known to be safe, but something feels dirty about forcing a dependency on something tidypy doesn't actually depend on. Also, it feels like a slippery slope, as there are other packages that could potentially cause the same sorts of issues (enum34, configparser, mccabe, etc), and pinning the entire tree feels bad, too.
I'm definitely open to suggestions, but I'd like to avoid things like vendoring everything or pinning the full dependency tree. For the time being, I've updated the cron on Travis to do a build every day, so if a release does sneak by that breaks tidypy, I'll at least get a notification.
from tidypy.
Related Issues (20)
- Pyroma complains about unknown docutils directives
- Pyroma "License" vs "Licence"
- Update pycodestyle to 2.4
- Update pep8-naming to 0.6
- Update pylint to 1.9
- # noqa: at file scope HOT 1
- Merge pylint:missing-docstring and pydocstyle:D100-pydocstyle:D104
- Publish v0.8 HOT 1
- Configuration is undocumented HOT 3
- How to scan only one directory? HOT 1
- Unconfigurable report format HOT 2
- Support eradicate in python3 HOT 1
- Remove Python 2 Support
- Unable to specify a configuration file on the command line HOT 1
- AttributeError: 'TidyPyVulture' object has no attribute 'noqa_lines' HOT 2
- Push 0.15 to dockerhub HOT 1
- Upvote feature request for vscode-python
- Yamllint error when enabling "key-ordering" and disabling "line-length" HOT 1
- pip install problem due to demjson dependency and incompatibility with setuptools >= 58.0 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 tidypy.