Skip to content

Commit

Permalink
bump min required Python version to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SomberNight committed Jan 28, 2022
1 parent ee2c78e commit 3f12f28
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ before_install:
- sudo apt-get -qq update
- sudo apt-get install -yq libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev librocksdb-dev libleveldb-dev libboost-all-dev libsodium-dev
python:
- "3.7"
- "3.8"
- "3.9-dev"
# command to install dependencies
Expand Down Expand Up @@ -44,7 +43,7 @@ script:
- sh -c "cd docs && make html"
# Dont report coverage from nightly
after_success:
- if [[ $(python3 -V 2>&1) == *"Python 3.7"* ]]; then
- if [[ $(python3 -V 2>&1) == *"Python 3.8"* ]]; then
pip install coveralls;
coveralls;
fi
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ElectrumX - Reimplementation of electrum-server
===============================================

:Licence: MIT
:Language: Python (>= 3.7)
:Language: Python (>= 3.8)
:Original Author: Neil Booth

This project is a fork of `kyuupichan/electrumx <https://github.com/kyuupichan/electrumx>`_.
Expand Down
2 changes: 1 addition & 1 deletion docs/HOWTO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ small - pull requests are welcome.
================ ========================
Package Notes
================ ========================
Python3 ElectrumX uses asyncio. Python version >= 3.7 is
Python3 ElectrumX uses asyncio. Python version >= 3.8 is
**required**.
`aiohttp`_ Python library for asynchronous HTTP. Version >=
2.0 required.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Authors and License
===================

Neil Booth wrote the vast majority of the code; see :ref:`Authors`.
Python version at least 3.7 is required.
Python version at least 3.8 is required.

The code is released under the `MIT Licence
<https://github.com/spesmilo/electrumx/LICENCE>`_.
Expand Down
4 changes: 2 additions & 2 deletions electrumx_compact_history
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ from electrumx.server.db import DB


async def compact_history():
if sys.version_info < (3, 7):
raise RuntimeError('Python >= 3.7 is required to run ElectrumX')
if sys.version_info < (3, 8):
raise RuntimeError('Python >= 3.8 is required to run ElectrumX')

environ['DAEMON_URL'] = '' # Avoid Env erroring out
env = Env()
Expand Down
4 changes: 2 additions & 2 deletions electrumx_server
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def main():

logger.info('ElectrumX server starting')
try:
if sys.version_info < (3, 7):
raise RuntimeError('ElectrumX requires Python 3.7 or greater')
if sys.version_info < (3, 8):
raise RuntimeError('ElectrumX requires Python 3.8 or greater')
env = Env()
logger.info(f'logging level: {env.log_level}')
logger.setLevel(env.log_level)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name='e-x',
version=version,
scripts=['electrumx_server', 'electrumx_rpc', 'electrumx_compact_history'],
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=['aiorpcX[ws]>=0.18.5,<0.19', 'attrs',
'plyvel', 'pylru', 'aiohttp>=3.3,<4'],
extras_require={
Expand Down Expand Up @@ -38,7 +38,7 @@
'Framework :: AsyncIO',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Database",
'Topic :: Internet',
],
Expand Down

0 comments on commit 3f12f28

Please sign in to comment.