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

Invalid version referenced in pypyodbc package pypyodbc-1.3.5.2.zip #50

Open
sliverc opened this issue Mar 24, 2017 · 9 comments
Open

Comments

@sliverc
Copy link

sliverc commented Mar 24, 2017

The pypi package pypyodbc-1.3.5.2.zip still has version 1.3.4 referenced in it's setup.py which leads to following warning message when upgrading with pip:

Requested pypyodbc==1.3.5.2 from https://pypi.python.org/packages/ea/48/bb5412846df5b8f97d42ac24ac36a6b77a802c2778e217adc0d3ec1ee7bf/pypyodbc-1.3.5.2.zip#md5=9f262beb1aebf7556fce26cad2c5d462 (from -r requirements.txt (line 15)), but installing version 1.3.4

I guess it is best to keep the version in setup.py in sync with the pypi package version.

@salteggs
Copy link

I am seeing the same problem... The current available versions on pypi are 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.3.3.1, 1.3.4.3, 1.3.5.2. However pypi installs the following:

  • 1.3.2 => 1.3.2
  • 1.3.3.1 => 1.3.3
  • 1.3.4.3 => 1.3.4
  • 1.3.5.2 => 1.3.4

This results in the package being reinstalled for versions > 1.3.2.

I'm going to stick to 1.3.2 for now since 1.3.3 is for time out support, 1.3.4 seems to be a re-release and 1.3.5 is not mentioned in the history page.

@fouvry
Copy link

fouvry commented Jul 26, 2017

This also leads to the odd situation that pip list --outdated gives the package as outdated, but when one tries to update it, it installs the 1.3.4 version (which is particularly odd if that version is already installed).

@gordthompson
Copy link

This issue appears to have been fixed by commit 042c6fd so it should no longer be a problem after the next release.

@rolweber
Copy link

AIUI, the next release will use the version number defined here:
https://github.com/jiangwen365/pypyodbc/blob/master/pypyodbc.py#L29

Still looks as if version 1.3.6.x will report as version 1.3.6, without patchlevel.
But maybe the next version will be published as 1.3.6, without patchlevel, as well.

@MRigal
Copy link

MRigal commented Oct 19, 2017

@jiangwen365 it might be time to release a 1.3.6 version.
The actual version mismatch is pretty annoying for all reinstalls, updates and outdated info...

Thanks in advance!

@matiasmlforever
Copy link

Any comments on how to actually install 1.3.5.2?

@gordthompson
Copy link

@matiasmlforever - My impression was that pip install pypyodbc actually did install from pypyodbc-1.3.5.2.zip on PyPI, but once installed it reported its version as 1.3.4. If that is not the case (and it really is installing the older 1.3.4 code) then you might try

pip install git+https://github.com/jiangwen365/pypyodbc@044227a7c67e5322f4ec4368c92680d9a696bc44

@rolweber
Copy link

rolweber commented Mar 7, 2019

The current versioning scheme with four components doesn't comply with PEP 440:
https://www.python.org/dev/peps/pep-0440/#examples-of-compliant-version-schemes

The smoothest path forward would be to release a version 1.4.0, and then stick to three components. I don't have time to come up with a PR though :-(

@nickolay
Copy link

nickolay commented Jun 1, 2021

...then you might try

pip install git+https://github.com/jiangwen365/pypyodbc@044227a7c67e5322f4ec4368c92680d9a696bc44

Note that this might report it "Successfully installed pypyodbc-1.0.5" due to an incorrect version in setup.py of that revision.

Also this didn't help me convince pipenv the pypyodbc is properly installed. I ended up using the fork that's being set up in #107:

$ pipenv install git+https://github.com/pypyodbc/pypyodbc.git@v1.3.5#egg=pypyodbc

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

8 participants