Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[db-up] Upgrade pymssql to support Python 3.10 #4610

Merged
merged 10 commits into from
Apr 2, 2022

Conversation

evelyn-ys
Copy link
Member

@evelyn-ys evelyn-ys commented Apr 1, 2022

Fix #4608


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

src/db-up/setup.py Outdated Show resolved Hide resolved
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 1, 2022

db-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', '-vv', '--disable-pip-version-check', '--no-cache-dir']
Copy link
Member

@jiasli jiasli Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this safe? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also hesitant about this. But it's annoying to bump manually each time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are already manually bumming version in setup.py, right? If we want, we can loosen the version in both places.

Copy link
Member Author

@evelyn-ys evelyn-ys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ~= instead of ==

src/db-up/azext_db_up/custom.py Outdated Show resolved Hide resolved
src/db-up/setup.py Outdated Show resolved Hide resolved
@jiasli
Copy link
Member

jiasli commented Apr 2, 2022

~= means to loosen the last version fragment. https://peps.python.org/pep-0440/#compatible-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[db-up] db-up fails to install on Python 3.10
3 participants