python中的经典计算机科学算法
algos-p的Python项目详细描述
什么是algos py?
这个包包含一些经典计算机的实现 科学算法。我的主要目标是了解这些算法 最好的办法就是自己去实现。
在我实践测试驱动开发(使用pytest)的过程中, 连续集成(带travis和appveyor),覆盖 跟踪(使用coveralls和codecov),版本控制(使用git, github和gitlab),文档(带有sphinx和readthedocs) 还有更多。
如何测试?
运行所有单元测试:
$ pytest -n 2
为特定模块运行单元测试:
$ pytest ./tests/test_heap.py
运行所有单元测试并生成覆盖率报告:
$ pytest -n 2 --cov=src
哪里可以找到?
主存储库:
https://github.com/alisianoi/algos-py
辅助(镜像)存储库:
https://gitlab.com/alisianoi/algos-py
释放程序:
$ python setup.py check --restructuredtext $ # change version in setup.py $ git add setup.py $ git commit -m "Bump version to 1.0.0" $ git tag v1.0.0 $ git push origin master && git push origin --tags $ git push gitlab master && git push gitlab --tags $ python setup.py bdist_wheel $ twine upload ./dist/algos_py-1.0.0-py3-none-any.whl