8000 broken travis.yml: 2.6 does not support pytest · Issue #216 · prometheus/client_python · GitHub
[go: up one dir, main page]

Skip to content
8000

broken travis.yml: 2.6 does not support pytest #216

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

Closed
ioggstream opened this issue Dec 4, 2017 · 9 comments
Closed

broken travis.yml: 2.6 does not support pytest #216

ioggstream opened this issue Dec 4, 2017 · 9 comments
Labels

Comments

@ioggstream
Copy link
Contributor

I expect

travis gate to work with py26

Instead

I get the following error when installing pytest

...
cmdargs: ['/home/travis/build/prometheus/client_python/.tox/py26/bin/pip', 'install', 'coverage', 'pytest', 'unittest2']
...

Collecting py>=1.5.0 (from pytest)
  Could not find a version that satisfies the requirement py>=1.5.0 (from pytest) (from versions: 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7.dev3, 1.4.7, 1.4.8, 1.4.9, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 1.4.14, 1.4.15, 1.4.16, 1.4.17, 1.4.18, 1.4.19, 1.4.20, 1.4.21, 1.4.22, 1.4.23, 1.4.24, 1.4.25, 1.4.26, 1.4.27, 1.4.28, 1.4.29, 1.4.30, 1.4.31, 1.4.32, 1.4.33, 1.4.34)
No matching distribution found for py>=1.5.0 (from pytest)
@brian-brazil
Copy link
Contributor

Looks like something broke on Travis's end in the past month.

@hugovk
Copy link
Contributor
hugovk commented Dec 5, 2017

Pytest and its dependency py have dropped support for Python 2.6 because it's been EOL for four years meaning it hasn't received security updates, and it's also little used so it's about time to drop it. They also dropped support for Python 3.3 which is also EOL and little used.

Here's the pip installs for prometheus_client from PyPI for the last month (via pypinfo --percent --pip prometheus_client pyversion).

python_version percent download_count
2.7 61.2% 44,829
3.6 21.0% 15,367
3.5 13.5% 9,890
3.4 4.0% 2,947
3.7 0.2% 116
2.6 0.1% 87
3.3 0.1% 48
3.2 0.0% 1

I suggest client_python also drops 2.6 (3.3 is already dropped).

@brian-brazil
Copy link
Contributor

Do we know if there are any popular OSes that still use 2.6, such as RHEL?

@hugovk
Copy link
Contributor
hugovk commented Dec 5, 2017

RHEL 6 ships with 2.6 and RHEL 5 ships with 2.4.

image

https://en.wikipedia.org/wiki/CPython#Enterprise_Linux

But a secure Python can be installed using SCL:

https://developers.redhat.com/blog/2013/02/14/setting-up-django-and-python-2-7-on-red-hat-enterprise-6-the-easy-way/

ioggstream added a commit to ioggstream/client_python that referenced this issue Dec 5, 2017
@ioggstream
Copy link
Contributor Author

Another way to close this issue.

@hugovk: I still have to run prometheus_client on RHEL6 too

@hugovk
Copy link
Contributor
hugovk commented Dec 5, 2017

Do you have a plan to upgrade RHEL/Python?

@ioggstream
Copy link
Contributor Author

@hugovk I got a bunch of customers with various RHEL versions including 6, so no dropout for now :(

@ioggstream
Copy link
Contributor Author

@brian-brazil closing for now
@hugovk you can create a new ticket for deprecating py26. It will surely be useful in the near future!

@hugovk
Copy link
Contributor
hugovk commented Dec 5, 2017

Done! #219

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

No branches or pull requests

3 participants
0