Giter Club home page Giter Club logo

Comments (6)

thebjorn avatar thebjorn commented on July 21, 2024 1

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.

thebjorn avatar thebjorn commented on July 21, 2024

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.

thebjorn avatar thebjorn commented on July 21, 2024

Travis does osx (slowly..) testcase etc. described at https://stackoverflow.com/questions/58719364/tempfile-mkdtemp-difference-on-osx

from pydeps.

thebjorn avatar thebjorn commented on July 21, 2024

The latest checkin has a fix for this issue.

from pydeps.

miketheman avatar miketheman commented on July 21, 2024

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.

miketheman avatar miketheman commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.