sclorg / rpm-list-builder

RPM List Builder helps you to build a list of defined RPM packages including Software Collection from the recipe file
GNU General Public License v2.0
4 stars 8 forks source link

Add --version option #59

Closed khardix closed 7 years ago

khardix commented 7 years ago

The current version is automatically detected using setuptools.

Output:

$ python -m rpmlb --version
rpmlb, version 1.0.0
hroncok commented 7 years ago

Would adding a test be too much pedant? Does it work with the entrypoint as well?

khardix commented 7 years ago

Would adding a test be too much pedant?

I'm really not sure how to test this, apart from just checking it is there.

Does it work with the entrypoint as well?

It does:

$ rpmlb --version
rpmlb, version 1.0.0
hroncok commented 7 years ago

I'm really not sure how to test this, apart from just checking it is there.

will send PR.

junaruga commented 7 years ago

OK, awesome! It looks good to me.

(venv) $ python -m rpmlb --version
rpmlb, version 1.0.0
(venv) $ rpmlb --version
rpmlb, version 1.0.0