sddsa - #2
Open
wchengru wants to merge 180 commits into
Open
Conversation
Original file got accidentally deleted during a refactor.
Port over the python dependency builder from Chalice. Also added a small wrapper class to adapt the interface to something more like what the Builder Action will use. The interface for the low level will stay the same, the wrapper PythonPipDependencyBuilder class can be modified as needed to match the expected interface as it evolves.
`.yml` is the right extension
Ignoring common Python files
* Python 37 support * Making the ABI selection explicit * Fixing the lambda_abi to a supported list * Making tests work
Notes:
in new pytest, self.assertEquals has been deprecated and self.assertEqual is recommended.
new pylint introduces a few new rules, which has been addressed in their dedicated commits.
* chore: Manage black version in dev.txt * chore: Update appveyor, use black in pip * chore: Add pre-commit-config * chore: Format with black 20.8b1 * chore: Add make pr2.7 for Python 2 that does not run black
* fix: run GlobalToolInstallAction in a lock block and only once * chore: change field name and update unit tests * chore: black formatting * fix: change tests to use threadpool for py2 * chore: update assert call and change usage of Executor
* Added Dynamic Encoding Selection Based on Windows System Default * Fixed dotnet output system dependent encoding * Updated test_custom_make urllib3 Version * Reformatted with black * Rollback Changes to popen for Python 2 Support * Added Doc Page for DotNet Output Encoding * fix(ruby): use stdout stream to raise exceptions from bundler - relevant error information is in stdout instead of stderr for bundler. * chore: bump version to 1.1.0 * chore: Upgrade pytest to 6.1.1 * chore: Upgrade mock to 4.0.2 * chore: Upgrade parameterize to 0.7.4 * chore: Upgrade coverage to 5.3 * chore: Upgrade flake8 to 3.8.4 * chore: Upgrade pylint to 2.6.0 * Consider using Python 3 style super() without arguments (super-with-arguments) * Implicit string concatenation found in assignment (implicit-str-concat) * Consider explicitly re-raising using the 'from' keyword (raise-missing-from) * Only install backports.tempfile for 2.7 & 3.6 * python 2 fallbacks (pylint & mock) * Revert "Consider using Python 3 style super() without arguments (super-with-arguments)" This reverts commit 44284ea. * Revert "Consider explicitly re-raising using the 'from' keyword (raise-missing-from)" This reverts commit cd7c16e. * Disable rules that affecting Python 2 * Manage black version using requirement file (aws#207) * chore: Manage black version in dev.txt * chore: Update appveyor, use black in pip * chore: Add pre-commit-config * chore: Format with black 20.8b1 * chore: Add make pr2.7 for Python 2 that does not run black * chore: Remove python patch version in AppVeyor to be more robust (aws#213) * chore: Remove biased language (aws#212) * fix: run GlobalToolInstallAction in a lock block and only once (aws#214) * fix: run GlobalToolInstallAction in a lock block and only once * chore: change field name and update unit tests * chore: black formatting * fix: change tests to use threadpool for py2 * chore: update assert call and change usage of Executor * chore: bump version to 1.2.0 (aws#218) Co-authored-by: Wilton Wang <CoshUS@users.noreply.github.com> Co-authored-by: Sriram Madapusi Vasudevan <3770774+sriram-mv@users.noreply.github.com> Co-authored-by: Sriram Madapusi Vasudevan <srirammv@amazon.com> Co-authored-by: Sam Liu <xinhol@amazon.com> Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
feat: Add `env` and `.gitignore' to EXCLUDED_FILES for pip workflow aws#175
* Added original_environ * Added Missing Return * Added Missing env in pip_import_string * Reformatted with Black * Added refreshenv to Windows jobs * Updated Default Go Installation Directory * Added GOROOT * Removed refreshenv * Updated PATH * Pinning down golang version * Updated original_environ to only Patch on Linux * Updated Check from Linux to PyInstaller Only * Added Comment for PyInstaller Check
1.3.0 Release PR
…s#209) * Prevent already downloaded dependencies from hanging the download process (it's waiting for user input) * Fixed test * Fixed tests * Formatted Co-authored-by: Mohamed Elasmar <71043312+moelasmar@users.noreply.github.com>
aws#195) * Added maven dependency flag to include groupIds when copying dependencies * updated java maven dependency test expected results * update java maven unit test Co-authored-by: Cosh_ <CoshUS@users.noreply.github.com>
* Support PEP 600 platform tags * fix test * Fix integration test in appveyor by setting GO111MODULE to auto * Fix GOPATH env var in appveyor script * Add note about setting GO111MODULE in appveyor script * Update python_pip integration test * Fix numpy version for py36 in integ test * Update aws_lambda_builders/workflows/python_pip/packager.py Co-authored-by: Chris Rehn <crehn@outlook.com>
…#243) * Allow Python to continue build without requirements.txt * Allow missing requirements.txt file for Python builds * Ruby optional Gemfile and test * Style changes * Add unit tests and additional comments * Fix assertLogs() not compatible with Python2.7 * Fix assertion string * Remove unused exception * Integ. test make sure no artifacts dir has no additional files after build * Kick off build * Check for manifest and skip package actions if not found * Revert Ruby changes until further discussion is had. Make Python workflow more readable. * Remove unused import * Whitespace fix
* Allow Python to continue build without requirements.txt * Allow missing requirements.txt file for Python builds * Ruby optional Gemfile and test * Style changes * Add unit tests and additional comments * Fix assertLogs() not compatible with Python2.7 * Fix assertion string * Remove unused exception * Integ. test make sure no artifacts dir has no additional files after build * Kick off build * Check for manifest and skip package actions if not found * Revert Ruby changes until further discussion is had. Make Python workflow more readable. * Remove unused import * Whitespace fix * Readability changes for Ruby workflow * Remove magic number. Add link to Bundler error codes * Moved var declaration
* Fix local packages not being built * Add int. test to catch future local dependency issues * Specify test requirements path from cwd * Removed redundant/superset pattern * Document the pip regex pattern change * Updated integ to match use case * Tests to check backward comp.
* Adding python39 support (aws#14) * Adding python39 support * changing Visual Studio image from 2017 to Visual Studio 2019 * update Appveyor to solve make pr failure * update packager.py * Update test case * skip new test case which is not tests in windows * update skipif part * black reformat Co-authored-by: jonife <79116465+jonife@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.