diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a572fc87b9..4d1ddeb3ff 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,7 +10,7 @@ Added * Continue introducing `pants `_ to improve DX (Developer Experience) working on StackStorm, improve our security posture, and improve CI reliability thanks in part to pants' use of PEX lockfiles. This is not a user-facing addition. - #5778 #5789 #5817 #5795 #5830 #5833 + #5778 #5789 #5817 #5795 #5830 #5833 #5834 Contributed by @cognifloyd diff --git a/contrib/examples/BUILD b/contrib/examples/BUILD new file mode 100644 index 0000000000..cdb13c30df --- /dev/null +++ b/contrib/examples/BUILD @@ -0,0 +1,14 @@ +# Using `python_requirements()` here results in: +# ">1 target exports this module, so it is ambiguous which to use" +# This error refers to the "requests" module. +# So, we explicitly list deps instead. + +python_requirement( + name="beautifulsoup4", + requirements=["beautifulsoup4"], +) + +python_requirement( + name="flask", + requirements=["flask"], +) diff --git a/lockfiles/st2.lock b/lockfiles/st2.lock index 98ccfcf4a0..9b2e5a0dc4 100644 --- a/lockfiles/st2.lock +++ b/lockfiles/st2.lock @@ -13,9 +13,11 @@ // "RandomWords", // "apscheduler", // "argcomplete", +// "beautifulsoup4", // "ciso8601", // "cryptography", // "eventlet<0.31", +// "flask", // "flex", // "gitdb", // "gitpython", @@ -769,6 +771,24 @@ "requires_python": ">=3.6", "version": "38.0.4" }, + { + "artifacts": [ + { + "algorithm": "sha256", + "hash": "454a69d788c7fda44efd71e259be79577822f5e3f53f029a22d08004e951dc9f", + "url": "https://files.pythonhosted.org/packages/26/2f/1095cdc2868052dd1e64520f7c0d5c8c550ad297e944e641dbf1ffbb9a5d/dataclasses-0.6-py3-none-any.whl" + }, + { + "algorithm": "sha256", + "hash": "6988bd2b895eef432d562370bb707d540f32f7360ab13da45340101bc2307d84", + "url": "https://files.pythonhosted.org/packages/59/e4/2f921edfdf1493bdc07b914cbea43bc334996df4841a34523baf73d1fb4f/dataclasses-0.6.tar.gz" + } + ], + "project_name": "dataclasses", + "requires_dists": [], + "requires_python": null, + "version": "0.6" + }, { "artifacts": [ { @@ -916,6 +936,31 @@ "requires_python": ">=3.6", "version": "3.4.1" }, + { + "artifacts": [ + { + "algorithm": "sha256", + "hash": "59da8a3170004800a2837844bfa84d49b022550616070f7cb1a659682b2e7c9f", + "url": "https://files.pythonhosted.org/packages/cd/77/59df23681f4fd19b7cbbb5e92484d46ad587554f5d490f33ef907e456132/Flask-2.0.3-py3-none-any.whl" + }, + { + "algorithm": "sha256", + "hash": "e1120c228ca2f553b470df4a5fa927ab66258467526069981b3eb0a91902687d", + "url": "https://files.pythonhosted.org/packages/84/9d/66347e6b3e2eb78647392d3969c23bdc2d8b2fdc32bd078c817c15cb81ad/Flask-2.0.3.tar.gz" + } + ], + "project_name": "flask", + "requires_dists": [ + "Jinja2>=3.0", + "Werkzeug>=2.0", + "asgiref>=3.2; extra == \"async\"", + "click>=7.1.2", + "itsdangerous>=2.0", + "python-dotenv; extra == \"dotenv\"" + ], + "requires_python": ">=3.6", + "version": "2.0.3" + }, { "artifacts": [ { @@ -1288,6 +1333,24 @@ "requires_python": null, "version": "0.1.16" }, + { + "artifacts": [ + { + "algorithm": "sha256", + "hash": "5174094b9637652bdb841a3029700391451bd092ba3db90600dea710ba28e97c", + "url": "https://files.pythonhosted.org/packages/9c/96/26f935afba9cd6140216da5add223a0c465b99d0f112b68a4ca426441019/itsdangerous-2.0.1-py3-none-any.whl" + }, + { + "algorithm": "sha256", + "hash": "9e724d68fc22902a1435351f84c3fb8623f303fffcc566a4cb952df8c572cff0", + "url": "https://files.pythonhosted.org/packages/58/66/d6c5859dcac92b442626427a8c7a42322068c5cd5d4a463ce78b93f730b7/itsdangerous-2.0.1.tar.gz" + } + ], + "project_name": "itsdangerous", + "requires_dists": [], + "requires_python": ">=3.6", + "version": "2.0.1" + }, { "artifacts": [ { @@ -4427,6 +4490,27 @@ "requires_python": "<4,>=3.6", "version": "3" }, + { + "artifacts": [ + { + "algorithm": "sha256", + "hash": "1421ebfc7648a39a5c58c601b154165d05cf47a3cd0ccb70857cbdacf6c8f2b8", + "url": "https://files.pythonhosted.org/packages/f4/f3/22afbdb20cc4654b10c98043414a14057cd27fdba9d4ae61cea596000ba2/Werkzeug-2.0.3-py3-none-any.whl" + }, + { + "algorithm": "sha256", + "hash": "b863f8ff057c522164b6067c9e28b041161b4be5ba4d0daceeaa50a163822d3c", + "url": "https://files.pythonhosted.org/packages/6c/a8/60514fade2318e277453c9588545d0c335ea3ea6440ce5cdabfca7f73117/Werkzeug-2.0.3.tar.gz" + } + ], + "project_name": "werkzeug", + "requires_dists": [ + "dataclasses; python_version < \"3.7\"", + "watchdog; extra == \"watchdog\"" + ], + "requires_python": ">=3.6", + "version": "2.0.3" + }, { "artifacts": [ { @@ -4766,9 +4850,11 @@ "RandomWords", "apscheduler", "argcomplete", + "beautifulsoup4", "ciso8601", "cryptography", "eventlet<0.31", + "flask", "flex", "gitdb", "gitpython",