-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix requirements after socketio client refactoring.
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
1 parent
b62a285
commit fa0855f
Showing
3 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |