# VersionPy
Small utility to version and release your python tools. Doesn't need any configuration files.
## Install
```
conda install -c vladsaveliev versionpy
```
## Usage
Set version to `0.1.2`, create a git tag and push:
```
$ bump 0.1.2
```
Increment bugfix (patch) component (e.g. `0.1.2` -> `0.1.3`), create a git tag and push:
```
$ bump
```
Increment minor component (e.g. `0.1.3` -> `0.2`), create a git tag and push:
```
$ bump minor
```
Allowed first arguments: `major`, `minor`, `bugfix`/`patch`, or exact version in format of 2 or 3-component version
with a possible pre-prerelease component:
- 1.0.0
- 2.1
- 2.0pre
- 2.0.2a1
For a tracked tool, you can check current version with a single command:
```
$ version
0.2
```
## Under the hood
VersionPy tracks the version number in the file `your_package/_version.py`.
When you run it for the first time, VersionPy would try to locate `_version.py`, or `VERSION.txt`, and if needed initialize `_version.py` it in the main package.
If you have several packages in the project and want to store `_version.py` in a particular one, use `-p`:
```
bump 0.0.1 -p your_package
```
If the version argument is ommited, will set the version to `0.0`.
Python库 | versionpy-0.4.6.tar.gz
版权申诉
127 浏览量
2022-04-18
23:11:38
上传
评论
收藏 5KB GZ 举报
![avatar](https://profile-avatar.csdnimg.cn/277f6345dca0446498fbbc03843436aa_qq_38161040.jpg!1)
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- 一个简单的rust程序,用于管理一个图书馆的图书集合
- Vue中的计算属性和侦听器有什么区别?经典vue面试题
- 一个Ruby程序示例,它实现了一个简单的电子商务网站后端的基本功能 这个示例包括了用户认证、产品展示、购物车管理以及订单
- AutoSAR COM模块详细介绍
- 后缀表达式求值.zip
- 一个Ruby进阶示例,展示了面向对象编程、模块化、异常处理和文件操作 这个例子中,我们将创建一个简单的博客系统,其中包含文章
- 一个简单的Kotlin程序示例,它演示了基本的函数定义、条件语句和循环的使用
- navicat15安装包
- AutoSAR-CP架构介绍
- 编程实战项目:基于asp.net技术的高校网上教材征订系统的设计与实现(含源代码)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)