Skip to content

Commit

Permalink
Fix requirements after socketio client refactoring.
Browse files Browse the repository at this point in the history
Refactored to get a single source of truth on the requirements.
Had to fix issues related to the import of gazu in setup.py
  • Loading branch information
aboellinger committed Sep 20, 2021
1 parent b62a285 commit fa0855f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
6 changes: 1 addition & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
python-socketio[client]==5.2.1; python_version == "2.7"
python-socketio[client]==5.3.0; python_version == "3.5"
python-socketio[client]==5.4.0; python_version > "3.5"
requests==2.26.0
deprecated==1.2.13
-e .[dev,test]
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ classifiers =
zip_safe = False
packages = find:
install_requires =
socketio-client==0.7.2
deprecated==1.1.0
requests==2.24.0
python-socketio[client]==5.2.1; python_version == "2.7"
python-socketio[client]==5.3.0; python_version == "3.5"
python-socketio[client]==5.4.0; python_version > "3.5"
deprecated==1.2.13
requests==2.26.0

[options.packages.find]
# ignore gazutest directory
Expand Down
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/usr/bin/env python
import ast
import re
import os

from setuptools import setup

from gazu.__version__ import __version__

# We hack our way into getting the version from gazu without imports :
# running gazu/__init__.py would cause errors due to the import of dependencies yet to be installed
versionpath = os.path.join(os.path.dirname(__file__), "gazu/__version__.py")
with open(versionpath, "r") as file:
__version__ = ast.literal_eval(re.search('__version__ *= *(\S+)', file.read()).group(1))

setup()

0 comments on commit fa0855f

Please sign in to comment.