зеркало из
1
0
Форкнуть 0
Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall 1349cd074e
Improvements to mindependency dev_requirement conflict resolution (#37669)
* during mindependency runs, dev_requirements on local relative paths are now checked for conflict with the targeted set of minimum dependencies
* multiple type clarifications within azure-sdk-tools
* added tests for new conflict resolution logic

---------

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2024-10-04 12:05:20 -07:00
kdestin a31e507640
fix: Gracefully handle invalid python_requires when finding minversion (#37317)
python_requires must follow the specification defined in:
        https://packaging.python.org/en/latest/specifications/version-specifiers/#id5

    In the event that a package version specifies a `python_requires`
    that does not match that spec, execution terminates with
    an InvalidSpecifier exception.

    This commit makes it so that we catch and log the exception,
    ignoring the version that has the invalid python version specifier.

    An alternative solution could have been to attempt to correct
    the version specifier (e.g. '>= 3.5.*' is invalid, but it'd be
    trivial to correct it to '>=3.5'). But that would potentially invite
    a complexity that costs more than it's worth.
2024-09-12 10:23:40 -07:00
Neehar Duvvuri 96fa1e3fc9
Final Sync of evaluation Code (#37233)
* Final sync of evaluation code

* fix up some user agents
2024-09-10 21:13:47 +00:00
Neehar Duvvuri acb9247bdb
Import InvalidVersion properly in pypi script (#37280) 2024-09-10 20:13:33 +00:00
Scott Beddall c48adf7e65
ensure analyze_dependency can handle an invalid version (#37268) 2024-09-10 10:58:00 -07:00
catalinaperalta 1677cdbcb9
update variable name (#36548)
Co-authored-by: Catalina Peralta <caperal@microsoft.com>
2024-07-19 13:44:06 -07:00
Scott Beddall f0ab89bb21
Simplify Shared Requirements (#29224)
* Moves the analyze_deps script into azure-sdk-tools as an entrypoint 'sdk_analyze_deps' and add typing information to definition file
* Updates the analyze_dependencies module to evaluate the dependency specifiers found across the repo. If any combination of specifiers eliminates all available versions from PyPI (combined with local if present) we will throw. This won't catch transitive dependencies, but it will definitely catch conflicts in directs. A follow-up PR enabling poetry will validate transitive deps.
* Updates our shared_requirements.txt to more of a known dependencies list. It is now more of a "Yes we do have an external dep on isodate. None of the specifiers cause conflicts though."
2023-03-13 15:20:17 -07:00
Scott Beddall f3dc5d76b5
Resolve SSL Cert Failures in CI (#26965)
* add optional ca_certs arg to urllib3 connection pool to ensure that ubuntu tests are not broken by the requests -> urllib3 swap
2022-10-21 00:30:56 +00:00
Scott Beddall 687421cd59
add a default of 3 retries to PyPIClient (#26963) 2022-10-20 23:45:01 +00:00
Scott Beddall 5e7092c63c
Remove requests dependency from PyPIClient (#26954)
* remove requests dependency from PyPIClient in favor of urllib3
* update tox packaging dependency with urllib3
* add urllib3 to azure-sdk-tools requirements
2022-10-20 13:58:45 -07:00
Scott Beddall 35c5935299
Adding the ability to skip compatibility filtering (#25813)
* adding the ability to skip the compatibility filter where appropriate

Co-authored-by: McCoy Patiño <39780829+mccoyp@users.noreply.github.com>
2022-08-23 12:41:00 -07:00
Scott Beddall ecfe90f0da
Refactor Build, Versioning into `azure-sdk-tools` (#25454)
* SDK-Tools refactor
* Refactors scripts present under eng/versioning to namespace ci_tools.versioning within the azure-sdk-tools package. All Integration points in CI are flipped over to consume entrypoints defined in the setup.py.
* Refactors build_packages.py and build_package.py into single module ci_tools.build. This function create_package within this module is used wherever packages are built.
* Moves anything related to setup.py parsing into ci_tools.parsing. More specifically, allows users access to ParsedSetup which has a classmethod from_path that can be aimed at any setup.py or package root.
  * Instead of a crazy tuple that we can get lost in the sauce in, it's just strongly typed members of a class now.
* Moves anything related to processing of requirements into ci_tools.functions.
* Type and doc comment all the moved common functionality
2022-08-16 12:25:02 -07:00
Sean Kane c4cbcee52f
formatting tools code (#18983) 2021-05-27 17:26:28 +00:00
Scott Beddall cfe7f84ec7
Latest/Minimum filter retrieved packages by pyVersion compatibility (#16510)
* filter packages by python_requires release info retrieved by pypi. now we only select package versions that are compatible with current platform
2021-02-04 10:14:39 -08:00
Charles Lowell a9cfcdc66c
Fix pypi_tools.pypi ImportError (#14533) 2020-10-15 11:20:46 -07:00
praveenkuttappan ba7baf2705
PyPIClient module is failing on Python 2.7 and <Python 3.6 versions (#9183) 2019-12-16 18:16:43 -08:00