tencentyun / tcfcli Goto Github PK
View Code? Open in Web Editor NEWtencent cloud serverless cloud function cmd tools
License: Apache License 2.0
tencent cloud serverless cloud function cmd tools
License: Apache License 2.0
tcf local invoke -e event.json -t template.yaml -n env.json
指定-n env.json 来指定函数环境变量时,在运行中无法获取到设置的环境变量
看到Enable有的是Bool(True和False)有的是String('TRUE'和'FALSE')表示其, 应该统一
$ tcf deploy -f --template-file deploy.yaml
deploy default begin
default testscf already exists, update it now
Deploy function 'testscf' failure. Error: 当前函数状态无法进行此操作,请在函数状态正常时重试。.
RequestId: b'7ce70235-2c12-4901-aba6-f48d6b87673d'
当前package 时生成的 zip 包为随机命名,期望可以自行指定 zip 包名及文件夹路径。
Hi, as shown in the following full dependency graph of tcf, tcf requires click==6.7, tcf requires _ flask >=1.0.0,<2.0.0_ (flask 1.1.2 will be installed, i.e., the newest version satisfying the version constraint), and directed dependency flask 1.1.2 transitively introduces click >=5.1.
Obviously, there are multiple version constraints set for click in this project. However, according to pip's “first found wins” installation strategy, click 6.7 (i.e., the newest version satisfying constraint >=6.7,<1.3.0) is the actually installed version.
Although the first found package version click 6.7 just satisfies the later dependency constraint (click==6.7), such installed version is very close to the upper bound of the version constraint of click specified by flask 1.1.2.
Once flask upgrades,its newest version will be installed, as tcf does not specify the upper bound of version constraint for flask. Therefore, it will easily cause a dependency conflict (build failure), if the upgraded flask version introduces a higher version of click, violating its another version constraint >=6.7,<1.3.0.
According to the release history of flask, it habitually upgrates Click in its recent releases. For instance, flask 1.0 upgrated Click’s constraint from >=2.0 to >=4.0, and flask 1.1 upgrated Click’s constraint from >=4.0 to >=5.1.
As such, it is a warm warning of a potential dependency conflict issue for tcf.
tcf - 0.3.0
| +- certifi(install version:2020.4.5.1 version range:>=2018.4.16)
| +- chevron(install version:0.12.2 version range:>=0.12.0,<0.13.0)
| +- click(install version:6.7 version range:==6.7)
| +- cookiecutter(install version:1.6.0 version range:>=1.6.0,<1.7.0)
| | +- binaryornot(install version:0.4.4 version range:>=0.2.0)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2)
| | +- click(install version:6.7 version range:>=5.0)
| | +- future(install version:0.18.2 version range:>=0.15.2)
| | +- jinja2(install version:2.11.2 version range:>=2.7)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- jinja2-time(install version: version range:>=0.1.0)
| | +- poyo(install version:0.5.0 version range:>=0.1.0)
| | +- requests(install version:2.23.0 version range:>=2.18.0)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- whichcraft(install version:0.6.1 version range:>=0.4.0)
| +- cos-python-sdk-v5(install version:1.7.8 version range:>=1.5.8)
| | +- dicttoxml(install version:1.7.4 version range:*)
| | +- requests(install version:2.23.0 version range:>=2.8)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- six(install version:1.14.0 version range:*)
| +- docker(install version:4.2.0 version range:>=3.3.0)
| | +- requests (install version:2.23.0 version range:>=2.14.2)
| | | +- certifi(install version:2020.4.5.1 version range:>=2017.4.17)
| | | +- chardet(install version:3.0.4 version range:>=3.0.2,<4)
| | | +- idna(install version:2.9 version range:>=2.5,<3)
| | | +- urllib3(install version:1.25.9 version range:>=1.21.1,<1.26)
| | +- six (install version:1.14.0 version range:>=1.4.0)
| | +- websocket-client (install version:0.57.0 version range:>=0.32.0)
| | | +- six(install version:1.14.0 version range:*)
| +- flask(install version:1.1.2 version range:>=1.0.0,<2.0.0)
| | +- click(install version:6.7 version range:>=5.1)
| | +- itsdangerous(install version:1.1.0 version range:>=0.24)
| | +- Jinja2(install version:2.11.2 version range:>=2.10.1)
| | | +- MarkupSafe(install version:2.0.0a1 version range:>=0.23)
| | +- Werkzeug(install version:1.0.1 version range:>=0.15)
| +- jsonschema(install version:3.2.0 version range:>=3.0.1,<4.0.0)
| +- pathlib2(install version:2.3.5 version range:>=2.3.2)
| | +- six(install version:1.14.0 version range:*)
| +- ptvsd(install version:4.2.11b1 version range:>=4.2.0,<4.3.0)
| +- pyyaml(install version:5.3.1 version range:>=3.12)
| +- tencentcloud-sdk-python(install version:3.0.161 version range:>=3.0.30)
Thanks for your help.
Best,
Neolith
scf 已支持 nodejs 12.16,而这个工具不支持,如果以后不维护的话,建议放开限制。
由于 serverless 权限过大,可以自由创建数据库等资源,运维说影响安全不让用 serverless deploy 命令,只能使用 scf deploy,所以需要使用这个工具。
tcf init --runtime nodejs12.16 --name testscf
Usage: tcf init [OPTIONS]
Error: Invalid value for "-r" / "--runtime": invalid choice: nodejs12.16. (choose from python3.6, python2.7, go1, php5, php7, nodejs6.10, nodejs8.9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.