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

Drop support for EOL Python 2.6, 3.2 and 3.3 #24

Merged
merged 5 commits into from Dec 1, 2018
Merged

Drop support for EOL Python 2.6, 3.2 and 3.3 #24

merged 5 commits into from Dec 1, 2018

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Nov 24, 2018

Summary: pathspec used to support Python 2.6 because it's a dependency of yamllint, which in turn is a dependency Ansible, which supported Python 2.6. Ansible has now dropped 2.6, so yamllint and pathspec may also drop it.


Python 2.6, 3.2 and 3.3 are EOL and no longer receiving security updates (or any updates) from the core Python team.

Version Release date Supported until
2.6 2008-10-01 2013-10-29
3.2 2011-02-20 2016-02-27
3.3 2012-09-29 2017-09-29

Source: https://en.wikipedia.org/wiki/CPython#Version_history

They're also little used. Here's the pip installs for pathspec from PyPI for last month:

category percent downloads
2.7 56.50% 372,224
3.6 29.41% 193,745
3.5 7.67% 50,527
3.7 2.58% 17,008
3.4 2.49% 16,390
null 1.29% 8,500
3.3 0.04% 233
2.6 0.03% 208
3.2 0.00% 3
3.8 0.00% 3
Total 658,841

Source: pypistats python_minor --last-month pathspec


Ansible 2.7.0 was released in October 2018 which drops Python 2.6.

  • Support for running an Ansible controller with Python-2.6 has been dropped. You can still manage machines which use Python-2.6 but you will have to manage them from a machine which has Python-2.7 or Python-3.5 or greater installed. See the porting guide if you need more information.

https://github.com/ansible/ansible/blob/stable-2.7/changelogs/CHANGELOG-v2.7.rst#v2-7-0

The decision to drop Python-2.6 support on the controller was made because many dependent libraries are becoming unavailable there. In particular, python-cryptography is no longer available for Python-2.6 and the last release of pycrypto (the alternative to python-cryptography) has known security bugs which will never be fixed.

https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.7.html#python-compatibility


This PR:

  • Includes PR Test on Travis CI #23 to test on Travis CI
  • Drops support for EOL Python versions
  • Upgrade Python syntax with pyupgrade
  • Add python_requires to help pip

@cpburnz cpburnz merged commit d67a42a into cpburnz:master Dec 1, 2018
@cpburnz
Copy link
Owner

cpburnz commented Dec 1, 2018

Since yamllint has dropped support for Python 2.6, 3.2 and 3.3 I'll happily drop support for them because that was the reason I supported them. Thank you for finding this and for the stats.

@hugovk hugovk deleted the rm-eol branch December 1, 2018 18:28
@hugovk
Copy link
Contributor Author

hugovk commented Dec 1, 2018

You're welcome!

@hugovk hugovk mentioned this pull request Dec 1, 2018
bors bot added a commit to rehandalal/therapist that referenced this pull request Oct 4, 2019
95: Update pathspec to 0.6.0 r=rehandalal a=pyup-bot


This PR updates [pathspec](https://pypi.org/project/pathspec) from **0.5.9** to **0.6.0**.



<details>
  <summary>Changelog</summary>
  
  
   ### 0.6.0
   ```
   ------------------

- `Issue 24`_: Drop support for Python 2.6, 3.2, and 3.3.
- `Issue 25`_: Update README.rst.
- `Issue 26`_: Method to escape gitwildmatch.

.. _`Issue 24`: cpburnz/python-pathspec#24
.. _`Issue 25`: cpburnz/python-pathspec#25
.. _`Issue 26`: cpburnz/python-pathspec#26
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pathspec
  - Changelog: https://pyup.io/changelogs/pathspec/
  - Repo: https://github.com/cpburnz/python-path-specification
</details>



Co-authored-by: pyup-bot <github-bot@pyup.io>
clrpackages pushed a commit to clearlinux-pkgs/pathspec that referenced this pull request Oct 7, 2019
…0.6.0

0.6.0 (2019-10-03)
------------------

- `Issue #24`_: Drop support for Python 2.6, 3.2, and 3.3.
- `Issue #25`_: Update README.rst.
- `Issue #26`_: Method to escape gitwildmatch.

.. _`Issue #24`: cpburnz/python-pathspec#24
.. _`Issue #25`: cpburnz/python-pathspec#25
.. _`Issue #26`: cpburnz/python-pathspec#26
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

Successfully merging this pull request may close these issues.

None yet

2 participants