Bug 236370

Summary: devel/py-mypy: update to 0.670
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: flo
Priority: --- Flags: flo: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 236369    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2019-03-07 17:46:41 UTC
Created attachment 202695 [details]
Patch

- Update to 0.670
- Add testing support
- Fix WWW
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2019-03-07 17:47:24 UTC
(Depends on devel/py-typed-ast update)
Comment 2 Florian Limberger 2019-03-09 14:09:47 UTC
Make test fails on my installation:
$ make test
===>  Testing for py36-mypy-0.670
===>   py36-mypy-0.670 depends on file: /usr/local/bin/python3.6 - found
running test
running egg_info
writing mypy.egg-info/PKG-INFO
writing dependency_links to mypy.egg-info/dependency_links.txt
writing entry points to mypy.egg-info/entry_points.txt
writing requirements to mypy.egg-info/requires.txt
writing top-level names to mypy.egg-info/top_level.txt
reading manifest file 'mypy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'extensions'
writing manifest file 'mypy.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 179, in <module>
    include_package_data=True,
  File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.6/site-packages/setuptools/command/test.py", line 228, in run
    self.run_tests()
  File "/usr/local/lib/python3.6/site-packages/setuptools/command/test.py", line 250, in run_tests
    exit=False,
  File "/usr/local/lib/python3.6/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/local/lib/python3.6/unittest/main.py", line 118, in parseArgs
    self._do_discovery(argv[2:])
  File "/usr/local/lib/python3.6/unittest/main.py", line 229, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/usr/local/lib/python3.6/unittest/loader.py", line 341, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/local/lib/python3.6/unittest/loader.py", line 398, in _find_tests
    full_path, pattern, namespace)
  File "/usr/local/lib/python3.6/unittest/loader.py", line 475, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/usr/local/lib/python3.6/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/usr/local/lib/python3.6/unittest/loader.py", line 190, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/local/lib/python3.6/site-packages/setuptools/command/test.py", line 40, in loadTestsFromModule
    tests.append(TestLoader.loadTestsFromModule(self, module))
  File "/usr/local/lib/python3.6/unittest/loader.py", line 122, in loadTestsFromModule
    if isinstance(obj, type) and issubclass(obj, case.TestCase):
  File "/usr/ports/devel/py-mypy/work-py36/mypy-0.670/mypy/nodes.py", line 2525, in __getattribute__
    raise AssertionError(object.__getattribute__(self, 'msg'))
AssertionError: fallback can't be filled out until semanal
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-mypy
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2019-03-11 14:51:07 UTC
Current version tests fail in the same place:

===>  Testing for py37-mypy-0.641_1
===>   py37-mypy-0.641_1 depends on file: /usr/local/bin/python3.7 - found
running test
running egg_info
writing mypy.egg-info/PKG-INFO
writing dependency_links to mypy.egg-info/dependency_links.txt
writing entry points to mypy.egg-info/entry_points.txt
writing requirements to mypy.egg-info/requires.txt
writing top-level names to mypy.egg-info/top_level.txt
reading manifest file 'mypy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'mypy.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 171, in <module>
    include_package_data=True,
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 228, in run
    self.run_tests()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 250, in run_tests
    exit=False,
  File "/usr/local/lib/python3.7/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/usr/local/lib/python3.7/unittest/main.py", line 124, in parseArgs
    self._do_discovery(argv[2:])
  File "/usr/local/lib/python3.7/unittest/main.py", line 244, in _do_discovery
    self.createTests(from_discovery=True, Loader=Loader)
  File "/usr/local/lib/python3.7/unittest/main.py", line 154, in createTests
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/usr/local/lib/python3.7/unittest/loader.py", line 347, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/usr/local/lib/python3.7/unittest/loader.py", line 404, in _find_tests
    full_path, pattern, namespace)
  File "/usr/local/lib/python3.7/unittest/loader.py", line 481, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/usr/local/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/test.py", line 40, in loadTestsFromModule
    tests.append(TestLoader.loadTestsFromModule(self, module))
  File "/usr/local/lib/python3.7/unittest/loader.py", line 123, in loadTestsFromModule
    if isinstance(obj, type) and issubclass(obj, case.TestCase):
  File "/usr/work/usr/ports/devel/py-mypy/work-py37/mypy-0.641/mypy/nodes.py", line 2488, in __getattribute__
    raise AssertionError(object.__getattribute__(self, 'msg'))
AssertionError: ClassDef is lacking info
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-mypy
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2019-03-11 14:52:43 UTC
Both versions run fine normally though, but I've already run into bugs in 0.641 which were already fixed in 0.670
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2019-03-19 13:37:15 UTC
So, any objections?
Comment 6 Florian Limberger 2019-03-20 07:11:46 UTC
No objections, anything else works.
Sorry I took so long to get back to you, and thanks for the update.
Comment 7 commit-hook freebsd_committer freebsd_triage 2019-03-21 13:36:23 UTC
A commit references this bug:

Author: amdmi3
Date: Thu Mar 21 13:35:26 UTC 2019
New revision: 496455
URL: https://svnweb.freebsd.org/changeset/ports/496455

Log:
  - Update to 0.670
  - Add testing support
  - Fix WWW

  PR:		236370
  Approved by:	flo@snakeoilproductions.net (maintainer)

Changes:
  head/devel/py-mypy/Makefile
  head/devel/py-mypy/distinfo
  head/devel/py-mypy/pkg-descr