Comments (6)
I should probably remove the tox files. I don't use them because they're horribly slow. I would just create a virtualenv for each version you want to test and run pytest.
from pydeps.
Hm.. I do my development on windows and linux, so I don't have any experience with why this is a problem on macOS. The error is coming from the yamldirs package (https://github.com/datakortet/yamldirs - there is a known test failure in the directory2yaml function, but otherwise it should be solid, at least on win+linux).
I have a mac at work and can look at it tomorrow...
from pydeps.
Travis does osx (slowly..) testcase etc. described at https://stackoverflow.com/questions/58719364/tempfile-mkdtemp-difference-on-osx
from pydeps.
The latest checkin has a fix for this issue.
from pydeps.
Thanks - sorry it took me a while to come back to this.
That error appears to be resolved on 92f6d6e - but now I'm getting a different error:
========================================================================== FAILURES ==========================================================================
________________________________________________________________________ test_dep2dot ________________________________________________________________________
def test_dep2dot():
files = """
foo:
- __init__.py
- a.py: |
from . import b
- b.py
"""
with create_files(files) as workdir:
assert simpledeps('foo', '-LDEBUG -vv') == {
'foo.b -> foo.a'
}
> args = pydeps.cli.parse_args(["foo", "--noshow"])
tests/test_dep2dot.py:25:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pydeps/cli.py:99: in parse_args
home = os.environ['USERPROFILE' if sys.platform == 'win32' else 'HOME']
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = environ({'TOX_WORK_DIR': '/Users/miketheman/workspace/miketheman/pydeps/.tox', 'TMPDIR': '/var/folders/r_/gq71n9vx3t5c...iketheman/workspace/miketheman/pydeps/.coverage', 'PYTEST_CURRENT_TEST': 'tests/test_dep2dot.py::test_dep2dot (call)'})
key = 'HOME'
def __getitem__(self, key):
try:
value = self._data[self.encodekey(key)]
except KeyError:
# raise KeyError with the original key value
> raise KeyError(key) from None
E KeyError: 'HOME'
.tox/py37/lib/python3.7/os.py:679: KeyError
Makes me wonder if the HOME
envvar is not available to the tox
environment?
Which brings around a larger question - is tox
still the preferred way to develop/test pydeps? I don't think it's used as part of CI.
from pydeps.
Awesome! I've confirmed that the original error, and the HOME
do not trigger on a fresh virtualenv. Thanks!
Closing!
from pydeps.
Related Issues (20)
- feature: exclude externals deps HOT 2
- Pydeps: Support compiled python filename HOT 2
- [Problem already solved, you can close this]
- The cycles display mode shows useless information and does not work properly for larger projects. HOT 6
- [Feature Request] Specify module name instead of filename HOT 4
- Resolving relative dependencies? HOT 7
- Support for namespace packages HOT 1
- use of `--externals` results in TypeError: 'Config' object does not support item assignment HOT 1
- --dot-output option is not effective HOT 1
- Support output markdown mermaid HOT 1
- empty result with WARNING: SKIPPING ILLEGAL MODULE_NAME: D:.test.a HOT 2
- Support for specifying more than one `fname`
- 1.12.19: pitest fails in `tests/test_package_names.py::test_find_package_names` unit HOT 2
- `--exclude` option not working HOT 1
- Show only top-level imports HOT 1
- Exclude/include dependencies by filepath HOT 1
- Add type hints HOT 1
- Use of pydeps in CI to reject introduction of new import cycles? HOT 3
- Constrain output geometry / size HOT 2
- pydeps randomly generates compiled pyc files when examine python source file HOT 4
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 pydeps.