Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad version labeling for released package #373

Open
jsmidt opened this issue Apr 30, 2020 · 3 comments
Open

Bad version labeling for released package #373

jsmidt opened this issue Apr 30, 2020 · 3 comments

Comments

@jsmidt
Copy link

jsmidt commented Apr 30, 2020

Problem Description

If I install the latest release of alphalens:

wget https://github.com/quantopian/alphalens/archive/0.4.0.tar.gz
tar -xf 0.4.0.tar.gz
cd alphalens-0.4.0
python setup.py build
sudo python setup.py install

Then look at the version number

python
import alphalens
print (alphalens.__version__)

I get: 0+unknown

Furthermore checking the actual install:

ls /usr/lib/python3.8/site-packages/alphalens-*

Gives: /usr/lib/python3.8/site-packages/alphalens-0+unknown-py3.8.egg

In both cases the version number shows "0+unknown" instead of "0.4.0". This will be a problem if for any reason a python package depends on version 0.4.0 or greater.

Versions

  • Alphalens version: 0.4.0
  • Python version: 3.8.2
@eigenfoo
Copy link
Contributor

eigenfoo commented Apr 30, 2020

Alphalens uses versioneer to pull release tags from git tags. Right now it's set up to expect a git tag v0.4.0, but the latest tag is just 0.4.0. Could that be it?

cc @richafrank @dmichalowicz

@dmichalowicz
Copy link
Contributor

The missing v appeared to be the problem, I just pushed a new tag. @jsmidt mind trying it out again?

@jsmidt
Copy link
Author

jsmidt commented Apr 30, 2020

Yes, this resolved the problem:

ls /usr/lib/python3.8/site-packages/alphalens-*
/usr/lib/python3.8/site-packages/alphalens-0.4.0-py3.8.egg

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants