release.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:ForgiveDB 作者: hui-z 项目源码 文件源码
def release(*setup_commands):
    markdown_file = os.path.join(base_dir, 'README.md')
    rst_file = os.path.join(base_dir, 'README.rst')
    rst_content = pypandoc.convert(markdown_file, 'rst')
    with open(rst_file, 'wb') as f:
        f.write(rst_content.encode('utf-8'))
    run('python setup.py {}'.format(' '.join(setup_commands)))
    os.unlink(rst_file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号