Setuptools和正确的构建顺序(测试,lint,构建......)

时间:2016-06-12 14:43:49

标签: python build setuptools

我是setuptools的新手,我对Python的唯一体验就是PyBuild,直到我需要一个适合我的项目依赖的pip包。 我可以构建(my $filename1 = "F1"; open FH1, $filename1 or die "Error"; while(<FH1>) { chomp($_); my @arr = split(/ /, $_); # you can change the split function foreach my $val (@arr) { if(exists $POS_hash{$val}) { print "$POS_hash{$val}\t"; } } print "\n"; } ),我可以lint(@TargetApi(Build.VERSION_CODES.HONEYCOMB) public void animationA() { new Handler().postDelayed(new Runnable() { @Override public void run() { final ImageButton mButton = (ImageButton)findViewById(R.id.Button ); assert mButton != null; mButton.setBackgroundResource(R.drawable.Button); ObjectAnimator mButtonAnimation= ObjectAnimator.ofFloat(mButton , "translationX", 0, -2100); mButtonAnimation.setDuration(11000); mButtonAnimation.setStartDelay(50); mButtonAnimation.setRepeatCount(ObjectAnimator.INFINITE); mButtonAnimation.setInterpolator(new AccelerateDecelerateInterpolator()); ObjectAnimator mButtonAnimation1 = ObjectAnimator.ofFloat(mButton, "alpha", 0, 1); mButtonAnimation1 .setDuration(90); mButtonAnimation1 .setInterpolator(new AccelerateDecelerateInterpolator()); final AnimatorSet setmButton = new AnimatorSet(); setmButton .playTogether(mButtonAnimatiea, mButtonAnimation1 ); //setmButton .setFillAfter(true); setmButton.start(); mButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Handler handlermButton = new Handler(); handlermButton.postDelayed(new Runnable() { @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1) @Override public void run() { setmButton.setDuration(500); } }, 100); } }); }}, 100); } ),我可以测试(python setup.py build)。

现在,我希望能够通过单个命令将我的项目构建为简单的单个序列。作为PyBuild,或任何maven /任何CI脚本。

我对文档有点不知所措,有点懒惰。我的问题非常简单,如何才能在flake8 / unittest警告上实现正确的构建序列?

编辑:更清楚:

我可以在README中添加的简单和通常的命令行指令可以确保新开发人员首先运行单元测试和Lint测试,然后构建我的项目(不是bash脚本),并可选择将其推送到我的私人仓库? 我在node,php或java中使用的大多数项目或其他任何项目都提供了一个命令,可以在触发实际构建和部署之前确保构建周期链接质量工具。

我对setuptools中没有这样的功能感到非常不安。

0 个答案:

没有答案
相关问题