codezonediitj / pydatastructs

A python package for data structures and algorithms
https://pydatastructs.readthedocs.io/en/stable/
Other
199 stars 269 forks source link

Versioning Tool/Script #444

Open czgdp1807 opened 2 years ago

czgdp1807 commented 2 years ago

Description of the problem

We need a tool/script that can update version number everywhere in the project by executing a single command. Following are the constraints,

  1. We decide the version numbers manually.
  2. We want to update to a new version number by executing a single command.
  3. The way to do it should be simple - Say, some-tool 1.0.1-dev 1.0.1-alpha.

Example of the problem

References/Other comments

cc: @HarshCasper

youknowqyh commented 2 years ago

What does everywhere mean to be more specific? By command grep 1.0.1-dev -r ./pydatastructs I can see a lot of positions with 1.0.1-dev. Do I need to change all these texts with 1.0.1-dev to 1.0.1-alpha for example?

czgdp1807 commented 2 years ago

The above is just an example. We will be releasing 6 months later (at the earliest), so we need to decide upon a tool that can update the version number everywhere in one go.

czgdp1807 commented 2 years ago

By everywhere I mean, where 1.0.1-dev is present inside the project (README, code, documentation source) should be updated to say, 1.0.1-alpha and so on.

youknowqyh commented 2 years ago

Make sense. I'll work on it.