{"action":"created","issue":{"url":"https://api.github.com/repos/z4r/python-coveralls/issues/31","labels_url":"https://api.github.com/repos/z4r/python-coveralls/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/z4r/python-coveralls/issues/31/comments","events_url":"https://api.github.com/repos/z4r/python-coveralls/issues/31/events","html_url":"https://github.com/z4r/python-coveralls/issues/31","id":60731292,"number":31,"title":"coveralls problem with non-UTF-8 character from external library","user":{"login":"rtp-calpoly","id":5666358,"avatar_url":"https://avatars.githubusercontent.com/u/5666358?v=3","gravatar_id":"","url":"https://api.github.com/users/rtp-calpoly","html_url":"https://github.com/rtp-calpoly","followers_url":"https://api.github.com/users/rtp-calpoly/followers","following_url":"https://api.github.com/users/rtp-calpoly/following{/other_user}","gists_url":"https://api.github.com/users/rtp-calpoly/gists{/gist_id}","starred_url":"https://api.github.com/users/rtp-calpoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtp-calpoly/subscriptions","organizations_url":"https://api.github.com/users/rtp-calpoly/orgs","repos_url":"https://api.github.com/users/rtp-calpoly/repos","events_url":"https://api.github.com/users/rtp-calpoly/events{/privacy}","received_events_url":"https://api.github.com/users/rtp-calpoly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T21:18:02Z","updated_at":"2015-03-12T20:58:15Z","closed_at":null,"body":"I am running my test coverage assessment through Django Nose, using the following option (@settings.py):\r\n\r\n    NOSE_ARGS = [\r\n        '--verbosity=3',\r\n        '--cover-package=services.accounts,services.common,'\r\n        'services.communications,services.configuration,services.leop,'\r\n        'services.network,services.scheduling,services.simulation'\r\n    ]\r\n\r\nAs you can see, I am restricting the assessment of the coverage only to the packages that I develop by myself. The sequence of commands that I use in order to execute this assessment is the following:\r\n\r\n    coverarge erase\r\n    coverage run manage.py test\r\n    coveralls\r\n\r\nWhen invoking \"coveralls\", it tries to run the coverage assessment also over the external libraries, so that I get the following exception when it tries to access to the source code for \"datetime\":\r\n\r\n    >>> filename = /home/rtubio/repositories/satnet/server/development_3k/.venv/lib/python3.4/site-packages/dateutil/parser.py\r\n    Traceback (most recent call last):\r\n      File \"/home/rtubio/repositories/satnet/server/development_3k/.venv/bin/coveralls\", line 11, in <module>\r\n        sys.exit(wear())\r\n      File \"/home/rtubio/repositories/satnet/server/development_3k/.venv/lib/python3.4/site-packages/coveralls/__init__.py\", line 91, in wear\r\n        source_files=coverage.coveralls(args.base_dir, ignore_errors=args.ignore_errors, merge_file=args.merge_file),\r\n      File \"/home/rtubio/repositories/satnet/server/development_3k/.venv/lib/python3.4/site-packages/coveralls/control.py\", line 9, in coveralls\r\n        return reporter.report(base_dir, ignore_errors=ignore_errors, merge_file=merge_file)\r\n      File \"/home/rtubio/repositories/satnet/server/development_3k/.venv/lib/python3.4/site-packages/coveralls/report.py\", line 14, in report\r\n        source = fp.readlines()\r\n      File \"/home/rtubio/repositories/satnet/server/development_3k/.venv/lib/python3.4/codecs.py\", line 313, in decode\r\n        (result, consumed) = self._buffer_decode(data, self.errors, final)\r\n    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdf in position 1130: invalid continuation byte\r\n\r\nThe first line (>>> filename = 'XXXX') was manually added by my to \"coveralls/report.py:12\", since the original exception does not report the name of the file that provokes the exception to be thrown (following the recommendation from https://github.com/eddyxu/cpp-coveralls/issues/24). In that very same issue, they suggest the usage of '--exclude', an option that seems to be available for \"cpp-coveralls\" but not for \"python-coveralls\".\r\n\r\nTherefore, the following questions arise:\r\n\r\n1) Is the coverage tool ignoring the option for django-nose in which I specify the package over which to assess the coverage?\r\n2) Is there anyway in which I can tell \"coveralls\" to ignore certain packages?\r\n\r\nThanks for the help in advance."},"comment":{"url":"https://api.github.com/repos/z4r/python-coveralls/issues/comments/78614235","html_url":"https://github.com/z4r/python-coveralls/issues/31#issuecomment-78614235","issue_url":"https://api.github.com/repos/z4r/python-coveralls/issues/31","id":78614235,"user":{"login":"z4r","id":639459,"avatar_url":"https://avatars.githubusercontent.com/u/639459?v=3","gravatar_id":"","url":"https://api.github.com/users/z4r","html_url":"https://github.com/z4r","followers_url":"https://api.github.com/users/z4r/followers","following_url":"https://api.github.com/users/z4r/following{/other_user}","gists_url":"https://api.github.com/users/z4r/gists{/gist_id}","starred_url":"https://api.github.com/users/z4r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z4r/subscriptions","organizations_url":"https://api.github.com/users/z4r/orgs","repos_url":"https://api.github.com/users/z4r/repos","events_url":"https://api.github.com/users/z4r/events{/privacy}","received_events_url":"https://api.github.com/users/z4r/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T20:58:15Z","updated_at":"2015-03-12T20:58:15Z","body":"Could you read #30?"}}