Bug 259507 - [NEW PORT] math/py-nptyping: Type hints for Numpy
Summary: [NEW PORT] math/py-nptyping: Type hints for Numpy
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://github.com/ramonhagenaars/npt...
Keywords: feature, needs-qa
Depends on: 259596
Blocks: 259510
  Show dependency treegraph
 
Reported: 2021-10-28 16:12 UTC by Neal Nelson
Modified: 2021-11-02 00:50 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (ports)


Attachments
Git diff of new port. (1.41 KB, patch)
2021-10-28 16:12 UTC, Neal Nelson
no flags Details | Diff
Git diff of new port. (1.48 KB, patch)
2021-11-01 15:03 UTC, Neal Nelson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neal Nelson 2021-10-28 16:12:38 UTC
Created attachment 229098 [details]
Git diff of new port.

New port math/nptyping: Type hints for Numpy

This port is needed for an upcoming update to cad/py-cadquery.

Please note that this port uses github rather than the CHEESESHOP because the latter only provides a wheel.
Comment 1 rsmith 2021-10-29 20:11:06 UTC
I've been trying Neal's patches to get cadquery to work.
(BTW; Great work Neal, much appreciated!)

When I've installed his ports and patches, I get the following error from one of the cadquery examples:

~/github/cadquery/examples> python Ex001_Simple_Block.py
Traceback (most recent call last):
  File "/home/rsmith/github/cadquery/examples/Ex001_Simple_Block.py", line 1, in <module>
    import cadquery as cq
  File "/usr/local/lib/python3.9/site-packages/cadquery/__init__.py", line 31, in <module>
    from .assembly import Assembly, Color, Constraint
  File "/usr/local/lib/python3.9/site-packages/cadquery/assembly.py", line 10, in <module>
    from .occ_impl.solver import (
  File "/usr/local/lib/python3.9/site-packages/cadquery/occ_impl/solver.py", line 2, in <module>
    from nptyping import NDArray as Array
  File "/usr/local/lib/python3.9/site-packages/nptyping/__init__.py", line 2, in <module>
    from nptyping.functions._get_type import get_type
  File "/usr/local/lib/python3.9/site-packages/nptyping/functions/_get_type.py", line 9, in <module>
    from typish import ClsFunction
ModuleNotFoundError: No module named 'typish'

So it seems that https://github.com/ramonhagenaars/typish is required.

I installed typish-1.9.3 (current version) and that seems to work.
Comment 2 Neal Nelson 2021-11-01 15:03:14 UTC
Created attachment 229198 [details]
Git diff of new port.

Oops. Sorry about that. I had already made the typish port, but it got lost in the flurry of new ports required for this CadQuery update. I've submitted it as #259596, which will need to be committed before this port can be committed.

For me this highlights a deficiency in the git workflow for ports as I am unable to test a port with poudriere that depends on another port that has not yet been committed. This is why I've been submitting new ports in dribs and drabs for this CadQuery update.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-11-02 00:50:03 UTC
Thanks Neal, 

Could you confirm/update based on review items provided in bug 259596 and additionally review the port through https://wiki.freebsd.org/Python/PortsPolicy