Skip to content

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

Merged
evelyn-ys merged 10 commits intoAzure:mainfrom
evelyn-ys:db-up-dependency
Apr 2, 2022
Merged

[db-up] Upgrade pymssql to support Python 3.10#4610
evelyn-ys merged 10 commits intoAzure:mainfrom
evelyn-ys:db-up-dependency

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.

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 1, 2022

db-up

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 ==

@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