[MacPorts] #61980: port lint --nitpick gives false warning when version is a single integer and python PortGroup is used
MacPorts
noreply at macports.org
Sun Jan 3 10:21:57 UTC 2021
#61980: port lint --nitpick gives false warning when version is a single integer
and python PortGroup is used
--------------------+--------------------
Reporter: Tatsh | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Keywords: | Port:
--------------------+--------------------
I made a Portfile for pyproject2setuppy which uses single integer
versions: https://pypi.org/project/pyproject2setuppy/#history
I set this version in the Portfile in the `version` field as usual, and I
set `python.versions ...`. This seems to confuse `port lint --nitpick`:
{{{
Warning: Line 18 seems to hardcode the version number, consider using
${version} instead
}}}
If I put a 'normal' version string like `9.0`, the warning does not
appear.
Portfile before workaround:
https://github.com/Tatsh/ports/blob/0ac5a6fb6f4c39bec98e5c52938b1895ce84c156/python
/py-pyproject2setuppy/Portfile
--
Ticket URL: <https://trac.macports.org/ticket/61980>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list