Skip to content

Commit 05319dd

Browse files
committed
add user_agent when initiating Synapse object and specify synapseclient dependency
1 parent b7772ef commit 05319dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

genie/process_functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
from synapseclient.core.utils import to_unix_epoch_time
1818
from urllib3.util import Retry
1919

20+
from . import __version__
21+
2022
pd.options.mode.chained_assignment = None
2123

2224
logger = logging.getLogger(__name__)
@@ -789,7 +791,7 @@ def synapse_login(debug: Optional[bool] = False) -> Synapse:
789791
"""
790792
# If debug is True, then silent should be False
791793
silent = False if debug else False
792-
syn = synapseclient.Synapse(debug=debug, silent=silent)
794+
syn = synapseclient.Synapse(debug=debug, silent=silent, user_agent = f"aacrgenie/{__version__}")
793795
try:
794796
syn.login()
795797
except Exception:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ project_urls =
3030
packages = find:
3131
install_requires =
3232
pyranges==0.1.4
33-
synapseclient[pandas]>=4.0.0, <5.0.0
33+
synapseclient[pandas]>=4.8.0, <5.0.0
3434
# pandas>=2.0.0, <3.0.0
3535
httplib2>=0.11.3
3636
PyYAML>=5.1

0 commit comments

Comments
 (0)