Skip to content

Commit

Permalink
allow python 3.6 as it passes on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jun 9, 2024
1 parent c439bcf commit c472e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ version = os.environ.get('EXABGP_VERSION',release)
# Do not change the first line as it is parsed by scripts
if sys.version_info.major < 3:
sys.exit('exabgp requires python3.7 or later')
if (sys.version_info.major == 3 and sys.version_info.minor < 7):
sys.exit('exabgp requires python3.7 or later')
sys.exit('exabgp requires python3.6 or later')
if (sys.version_info.major == 3 and sys.version_info.minor < 6):
sys.exit('exabgp requires python3.6 or later')
if __name__ == '__main__':
sys.stdout.write(version)
Expand Down
6 changes: 3 additions & 3 deletions src/exabgp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Do not change the first line as it is parsed by scripts

if sys.version_info.major < 3:
sys.exit('exabgp requires python3.7 or later')
if sys.version_info.major == 3 and sys.version_info.minor < 7:
sys.exit('exabgp requires python3.7 or later')
sys.exit('exabgp requires python3.6 or later')
if sys.version_info.major == 3 and sys.version_info.minor < 6:
sys.exit('exabgp requires python3.6 or later')


def latest_github():
Expand Down

0 comments on commit c472e16

Please sign in to comment.