mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 11:04:05 +01:00
Deprecate Python 3.4 and 3.5.
This commit is contained in:
parent
bdb80b196a
commit
aa6bd7257d
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
python3 setup.py install
|
LIMNORIA_WARN_OLD_PYTHON=0 python3 setup.py install
|
||||||
|
|
||||||
- name: Test with unittest
|
- name: Test with unittest
|
||||||
run: |
|
run: |
|
||||||
|
11
setup.py
11
setup.py
@ -82,10 +82,19 @@ if version:
|
|||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
if sys.version_info < (3, 4, 0):
|
if sys.version_info < (3, 4, 0):
|
||||||
sys.stderr.write("Limnoria requires Python 3.4 or newer.")
|
sys.stderr.write("Limnoria requires Python 3.6 or newer.")
|
||||||
sys.stderr.write(os.linesep)
|
sys.stderr.write(os.linesep)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
if sys.version_info < (3, 6, 0) \
|
||||||
|
and os.environ.get('LIMNORIA_WARN_OLD_PYTHON') != '0':
|
||||||
|
sys.stderr.write('====================================================\n')
|
||||||
|
sys.stderr.write('Limnoria support for Python versions older than 3.6\n')
|
||||||
|
sys.stderr.write('is deprecated and may be removed in the near future.\n')
|
||||||
|
sys.stderr.write('You should upgrade ASAP.\n')
|
||||||
|
sys.stderr.write('Install will continue in 60s.\n')
|
||||||
|
sys.stderr.write('====================================================\n')
|
||||||
|
time.sleep(60)
|
||||||
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user