paritytech / parity-publish

A tool to manage publishing Parity's crates
Apache License 2.0
4 stars 1 forks source link

Include version number in README of each crate #41

Open ggwpez opened 2 months ago

ggwpez commented 2 months ago

The README of each crate should mention the version number at the end. This makes it possible to reverse-lookup into what release a crate version was included.

Morganamilo commented 2 months ago

What's the plan for this? A magic sed is the only way I can think to do it but that feels messy and easily breakable if some one changes the readme format unknowingly.

ggwpez commented 2 months ago

What's the plan for this? A magic sed is the only way I can think to do it but that feels messy and easily breakable if some one changes the readme format unknowingly.

Hm not sure i get what you mean, so maybe Im oversimplifying it but can we do something like this? echo "\nThe corresponding Polkadot-SDK release for this version is: $VERSION" >> README.md

Morganamilo commented 2 months ago

I guess that works if we want it right at the bottom of the readme.

Morganamilo commented 2 months ago

I've written it so it appends

## Release

{description}

where description is something like Polkadot SDK v1.2.3.

It's this way because the tool should be repo agnostic so I don't want to hardcode polkadot into the sentence and I generally prefer readme's to be less wordy.

Let me know if this wording works for you.

ggwpez commented 2 months ago

Yep sounds good, thanks!
Then what do we do with the crate description? crates-io only shows the latest description which is then wrong for old versions. Maybe we should remove it to avoid confusion?