Skip to content

Commit

Permalink
[db-up] Upgrade pymssql to support Python 3.10 (#4610)
Browse files Browse the repository at this point in the history
* Upgrade psycopg2

* pymssql installation

* fix typo

* Update src/db-up/HISTORY.rst

* Upgrade `pymssql` to support Python 3.10

* Update src/db-up/setup.py

* Use `~=` instead of `==`

* Update src/db-up/setup.py
  • Loading branch information
evelyn-ys authored Apr 2, 2022
1 parent f4cd9d4 commit b3a3460
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/db-up/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
0.2.7 (2022-04-02)
++++++++++++++++++
* Upgrade `pymssql` to support Python 3.10

0.2.6 (2021-09-08)
++++++++++++++++++
* `az sql up`: Fix pymssql installation failure with Python 3.8/3.9
Expand Down
2 changes: 1 addition & 1 deletion src/db-up/azext_db_up/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _ensure_pymssql():
python_path = os.environ.get('PYTHONPATH', '')
os.environ['PYTHONPATH'] = python_path + ':' + db_up_ext_path if python_path else db_up_ext_path
cmd = [sys.executable, '-m', 'pip', 'install', '--target', db_up_ext_path,
'pymssql==2.2.2', '-vv', '--disable-pip-version-check', '--no-cache-dir']
'pymssql~=2.2.4', '-vv', '--disable-pip-version-check', '--no-cache-dir']
logger.warning(' Installing "pymssql" pip packages')
with HomebrewPipPatch():
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
Expand Down
4 changes: 2 additions & 2 deletions src/db-up/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from codecs import open
from setuptools import setup, find_packages

VERSION = "0.2.6"
VERSION = "0.2.7"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand All @@ -30,7 +30,7 @@
]

if sys.platform != 'darwin':
DEPENDENCIES.append('pymssql==2.2.2')
DEPENDENCIES.append('pymssql~=2.2.4')

setup(
name='db-up',
Expand Down

0 comments on commit b3a3460

Please sign in to comment.