Google Magenta Portfiles Help Request for new py-note-seq port

Joshua Root jmr at macports.org
Sun Jul 5 08:01:50 UTC 2020


On 2020-7-5 06:35 , Jason Liu wrote:
>     If upstream doesn't have a useful version number, you need to make
>     one up. It should monotonically increase over time. It should change
>     whenever the upstream source code you are installing from changes.
> 
> 
> For ports I've submitted which don't have any version numbering in the
> project's GitHub repo, I've been using the date of the commit as the
> version number in the portfile... but don't try to use the GitHub commit
> hash, since that is not a monotonically increasing number. So, for
> example, if I submitted a port for a project's commit that occurred
> today, the version number would be 20200704. Some of the MacPorts devs
> have indicated to me that this date-based version number shouldn't be
> separated using dashes or dots; it should just look like a single
> integer. Also, don't include the commit's time in the version number
> string, only the date.

Those last couple sentences aren't official rules. I would actually
prefer the human-readable ISO 8601 format (separated with dashes).
Appending the time is likely overkill since that would only be useful if
you're updating multiple times per day.

- Josh


More information about the macports-dev mailing list