Visitar URL original
cx_Oracle 8.0 has been released · Issue #456 · oracle/python-cx_Oracle · GitHub
The Wayback Machine - https://web.archive.org/web/20201123005659/https://github.com/oracle/python-cx_Oracle/issues/456
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

cx_Oracle 8.0 has been released #456

Open
cjbj opened this issue Jun 27, 2020 · 17 comments
Open

cx_Oracle 8.0 has been released #456

cjbj opened this issue Jun 27, 2020 · 17 comments
Labels

Comments

@cjbj
Copy link
Member

@cjbj cjbj commented Jun 27, 2020

Python cx_Oracle 8.0 is now Production on PyPI. This release adds an API for specifying the location of the Oracle Client libraries and optional configuration files. The default character set is now UTF-8. A new prefetchrows attribute allows further tuning of query fetch performance. And there’s more! Note this release supports Python 3 only.

My release blog post announcements is at: https://blogs.oracle.com/opal/the-new-cx_oracle-80-release-brings-easier-configuration

@cjbj cjbj added the announcement label Jun 27, 2020
@cjbj cjbj pinned this issue Jun 27, 2020
@rafaelreuber
Copy link

@rafaelreuber rafaelreuber commented Jun 27, 2020

Good job folks!

@ThiefMaster
Copy link

@ThiefMaster ThiefMaster commented Jul 30, 2020 •

python_requires metadata would have been nice. :/

Now Python 2 users (yeah, I know, EOL and everything. but moving away takes some time) will get 8.0 as well just to fail in setup.py. And due to the way how python packaging works this is not something that can be fixed anymore (without yanking the released package which would be a bad idea for various reasons).

@cjbj
Copy link
Member Author

@cjbj cjbj commented Jul 30, 2020 •

There's no need to be rude about it. If we didn't know about something and made a mistake, then we're sorry. We don't like making things hard for users either.

If you want to share your knowledge and help keep the project in great shape throughout each development cycle then contributions are always welcome.

(For future readers coming across this, here are the notes on installing with Python 2.)

@ThiefMaster
Copy link

@ThiefMaster ThiefMaster commented Jul 30, 2020

You are right, I was just a bit annoyed since it broke my build. Updated my comment to be nicer.

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Jul 30, 2020

I've added the necessary metadata. I wasn't aware that it existed so my apologies -- and thanks for bringing it to my attention! We can't fix the 8.0.0 build but if we make a 8.0.1 release that should resolve your issue, I believe? Please advise!

@ThiefMaster
Copy link

@ThiefMaster ThiefMaster commented Jul 30, 2020

Unfortunately not, since pip will still see 8.0.0 as a valid version, so adding the metadata now will only result in newer versions being hidden from incompatible python versions.

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Jul 30, 2020

Ah. So it will see that versions later than 8.0.0 are invalid but there's this lovely 8.0.0 that you can upgrade to. Sigh. Again, my apologies.

@ThiefMaster
Copy link

@ThiefMaster ThiefMaster commented Jul 30, 2020

Yeah, it's really annoying that this particular metadata cannot be added retroactively. :/

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Jul 30, 2020

Indeed!

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Jul 30, 2020

Hmm, looks like PyPI has the ability to "yank" a release. That means that it is ignored unless you explicitly ask for it as in

pip install cx_Oracle=8.0.0

This is documented in PEP 592. That might resolve it for you, right?

@ThiefMaster
Copy link

@ThiefMaster ThiefMaster commented Jul 30, 2020

Indeed. I hadn't realized that this was finally implemented!

@sharkguto-gmf-tech
Copy link

@sharkguto-gmf-tech sharkguto-gmf-tech commented Aug 11, 2020

when will be available the asyncio driver??? We are in 2020 :)

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Aug 20, 2020

All I can say is that it is under consideration and that I have no idea if/when it will be available! Even though asyncio has been around for some time many of the frameworks are just starting to add support for it!

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Sep 1, 2020

@ThiefMaster, cx_Oracle 8.0.1 has been released with specific support for the metadata tag that tells Python 2 to leave it alone and cx_Oracle 8.0.0 has been yanked. So if you do pip install cx_Oracle with Python 2 you will now get version 7.3 directly. Apologies it took so long to get this done -- but its done now!

@wgwz
Copy link

@wgwz wgwz commented Oct 13, 2020

I'm seeing this in a install process:

WARNING: The candidate selected for download or install is a yanked version: 'cx-Oracle' candidate (version 8.0.0 at https://files.pythonhosted.org/packages/4a/f2/a81884da5af209cfbde1ce1ea90c8f6b0497c7f475fefe5c43cb94610f8a/cx_Oracle-8.0.0-cp38-cp38-manylinux1_x86_64.whl#sha256=fb5beb3ad5a102d8276e0c7dac68fab6aa63cc49afe1ccc9e3709071a3b95c64 (from https://pypi.org/simple/cx-oracle/))
Reason for being yanked: <none given>
Collecting cx_Oracle==8.0.0
  Downloading cx_Oracle-8.0.0-cp38-cp38-manylinux1_x86_64.whl (781 kB)

Of course I can bump to the latest version. I suppose I just wanted to add it here. It did raise a red flag when I noticed it, i.e. was this pulled for a security vulnerability?

@anthony-tuininga
Copy link
Member

@anthony-tuininga anthony-tuininga commented Oct 13, 2020

The reason it was yanked is because Python 2 was trying to install it -- and Python 2 is incapable of running cx_Oracle 8. cx_Oracle 8.0.1 specifically adds the metadata necessary to tell Python 2 to ignore it but cx_Oracle 8.0.0 had to be yanked or Python 2 would continue to try to install it! Hope that makese sense to you! I would have put a reason but wasn't sure what would make sense there.

@wgwz
Copy link

@wgwz wgwz commented Oct 24, 2020

That makes sense, I just wanted to check and add a comment here because I’m sure others will be curious as well. Google search will perhaps bring them here :-)

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

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.