sensein / etelemetry-client

Etelemetry client
Other
3 stars 9 forks source link

Conda packaging - version is not set #36

Open oesteban opened 2 years ago

oesteban commented 2 years ago

The conda package does not set a version:

>>> import etelemetry
>>> etelemetry.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'etelemetry' has no attribute '__version__'

or

$ pip show etelemetry
Name: etelemetry
Version: 0+unknown
Summary: Etelemetry python client API
Home-page: https://github.com/sensein/etelemetry-client
Author: Senseable Intelligence Group
Author-email:
License: Apache License, 2.0
Location: /opt/conda/lib/python3.8/site-packages
Requires: requests, ci-info
Required-by: nipype

When installed through pip, although the dunder __version__ remains undefined, at least pip knows how to retrieve the version metadata:

$ pip show etelemetry
Name: etelemetry
Version: 0.2.2
Summary: Etelemetry python client API
Home-page: https://github.com/sensein/etelemetry-client
Author: Senseable Intelligence Group
Author-email:
License: Apache License, 2.0
Location: /opt/conda/lib/python3.8/site-packages
Requires: ci-info, requests
Required-by: nipype