作者:Sen LEI

### 作者邮箱:sen.lei@outlook.com

### 首页:https://github.com/Listen180/auto_pypi

### 文档:None

### 下载链接

Auto-PyPi Command Line Tool

|PyPI Version| |PyPI Platform| |PyPI License| |PyPI Doc|

|Mac OS| |Linux|

Why Should I Use This?

This is a Python command line tool to automatically setup your (updated version) python package onto PyPi.

As you may know, PyPi indexes (both real and test index) do not allow you to reuse package name (considering version numner), which means you can not upload your package with the same package name together with an identical version numner.

In another word, you have to change the version number in your setup.py file before each time you want to upload your modified package. What's more, you also need to remove the old build and egg folder before you run the setup tools.

You'll find it not convenient at all if you are uploading and testing your package frequently. Even if you are not going to upload and test frequently, each time you remove the previous setup related folders comes with some risks and is still time-consuming.

By using this command line tool, you will be all set after a single command autopypi. The only thing you need to care about now is the package version number.

You could chage the version number in the setup.py file as usual, but I highly recommend you to change a little bit in your setup.py file making the version number as an input value from the terminal:

.. code-block:: python

version_number = input("Input the new version number you are going to use: ")

setuptools.setup( name="autopypi", version=versionnumber, author="Sen LEI", ...)

By doing this, you just need to run the command autopypi, and specify a version number later when it pops up.

Usage

Use As A Command Line Tool

Just run autopypi in terminal, providing your package's location and new version number later:

.. code-block:: shell

Usage: autopypi [OPTIONS] PKG_DIR

Python command line tool to setup Python package automatically.

Example: $ autopypi your-package-root-directory -r

Example: $ cd your-package-root-directory

$ autopypi . -r

Options: -r, --real Use the real PyPi index (instead of test PyPi). --help Show this message and exit.

Then you'll be asked to input the username and passcode of PyPi / Test-PyPi as usual.

Documentation

Check out the latest auto_pypi documentation at Read the Docs _

|

|

|Sen LEI Website| |Sen LEI Github|

.. |PyPI Platform| image:: https://img.shields.io/pypi/pyversions/autopypi.svg?logo=python&logoColor=white :target: https://pypi.python.org/pypi/autopypi

.. |PyPI License| image:: https://img.shields.io/github/license/Listen180/autopypi.svg :target: https://github.com/Listen180/autopypi/blob/master/LICENSE

.. |PyPI Version| image:: https://img.shields.io/pypi/v/autopypi.svg :target: https://pypi.python.org/pypi/autopypi

.. |PyPI download| image:: https://img.shields.io/pypi/dm/autopypi.svg :target: https://pypi.python.org/pypi/autopypi

.. |PyPI Doc| image:: https://readthedocs.org/projects/autopypi/badge :target: https://autopypi.readthedocs.io/en/latest/

.. |Sen LEI Github| image:: https://img.shields.io/badge/Github-Sen%20LEI-orange.svg?logo=github&longCache=true&style=flat&logoColor=white :target: https://github.com/Listen180

.. |Sen LEI Website| image:: https://img.shields.io/badge/Author-Sen%20LEI-orange.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAADVCAMAAAD3nkWxAAACglBMVEUAAAD///9xjI0NAAAA1XRSTlMAAQIDBAUGBwgJCgsMDg8REhQXGBkaGxwdHh8gIiMkJSYnKCkqKywtLi8wMTI0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFJTVVZZWltcXV5fYGFkZWZnaGlqb3BxcnN0dXZ3ent8fYCBgoOFh4iKi4yNkJGSk5SVlpeZmpydnp+hoqOmp6ipqqusra6vsbKztLW2ubu8vsDDxMXGx8jJy8zNzs/Q0dLT1NXW19jZ3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7yOdf5AAAEF0lEQVR42u3da1fVVRAG8Ocgl8BCBQtJirQwqCwIk8DMMpIuplCIXcyiUioLKcssLVMjNCrCrOhCaqGppd1LKSsijgUY4DnP9+kVbzDgv8/ZL2ZY8/sOs+dZs9bMhjHGGGOMMcYYY4wxxhhjjPElPaegeGFxfs55mBgSCh7a1t7FYV3tr67OD0G1tMq3uni2P5qXpUKr+Tv+5mhObb8OGi38lGNrXxKCMmUHOb4D10OTzMYoA2nOgBpVYQbVsxw6nPMCXTSmQYGcL+nmyEyIN6eTrk5eAeFKwnTXUwLRCnsZi37RLTmvm7EJ50OsGZ2M1fELIFRiO2O3PwkyPcd4NECk8ijjEb0ZAqX9yPj8PBnyPMt4rYc4eYOM18BsSPM247cLwsyOMH6RWZClkT7sgCjTh+jDYCYkeZR+PAxJDtOPgxCkgL7MgRx19OUxyNFGX96HGMm99KU3GVIU059CSLGS/qyAFBvoTwOk2E1/WiDFEfrzBaT4if58Dym66U8XpBigP/9CiFCE/kRCEOIf+nMKUvxKf05Aim/pzzFI8Qn9+RhSbKM/r0CKNfSnFlLcRn/KIcV0ehPNhBjf0JevIMfL9GUT5LiTvtwOOVLD9COcCkG204+tkKSMfsyHJAlf04ejIYhSTR8qIUvSDz5mFokQ5l7GrwbSJHzGeH2eAHHmRhifyDVwoCU2vQiJJh+NL9emQaS8Psau9zIIVcPY3QOx6hmrdRBsk4IZjLtJOxmLpkkQLfQ83b2UAOmeiNJNtA4KVHTTRXgpVMje6xL+cqBE8uP9DKavLgl6ZL3JIN6dCV1u+Ijj+bAU+hS3DnF0Q+8UQaep97WPNnZZmwHFLqxp7By5vvNadTb0m1q0on5LY0tbS+OWp6sLp8AYY4wxxhgjTfKVlbVPPbN+bdXV52KCuLxu/xCHDe2rz4N6iXft40gdlYlQ7aZj/D/f3QG9prVyNO+dD6VKj3N0vy+CSncPcixnHoBCj0Q5jjVQZ1mU44muhDJlgxzfmTKoMuUEg/gtE5o0M5hmKFLKoBZDjVAHgzoUghblDG4JtNjD4NqgRHaEwUWyoMMqulgNHXbTRSt06KGLcAgaZNHNDGiwiG5uhAZVdFMFDR6km1XQoJZuapW0Kzf3T8i6Wg4NSuhmHjTIoJtpUOEkXfwCHZro4nXoUOO4SqFDej+DO50OJXYxuCZocVWUgc2FGh8wqD1woOX88sClUGQDg2mAJikHGERHClTJ7eH4ui+CMkW9Dv9t6HFLP8fWtxgKzfuLY/nzWqiUvddh70qP5HWnRyupJ5Og18VvRHi2yM4c6DZrc/fI93zzJdAv5daNhweHE9KhjeXJmCgScxdULK1YkJsIY4wxxhhjjDHGGGOMMcYYY4wxxhhjjBnhP6hK+cPRlZTHAAAAAElFTkSuQmCC&longCache=true&style=flat&logoColor=white :target: https://listen180.github.io/LEI-Sen/

.. |orgrepo| image:: https://img.shields.io/badge/-repository-green.svg?logo=github&longCache=true&style=flat&logoColor=white :target: https://github.com/autopypi/

.. |Mac OS| image:: https://img.shields.io/badge/Mac%20OS-green.svg?logo=apple&longCache=true&style=flat&logoColor=white

.. |Linux| image:: https://img.shields.io/badge/Linux-green.svg?logo=linux&longCache=true&style=flat&logoColor=white

Copy from pypi.org

python xmxl 无法启动_auto-pypi-一个Python命令行工具,用于自动设置包并将其上载到PyPi。-Sen LEI Use As A Command Line Tool...相关推荐

  1. python xmxl 无法启动_/usr/bin/python: can't decompress data; zlib not available 的异常处理

    1. 问题背景 使用Pycharm连接远程服务器端pipenv虚拟环境的python解释器,运行python spark脚本时报错如下错误: 2018-09-12 23:56:00 ERROR Exe ...

  2. 自己写的python软件可以在哪发布-如何发布一个Python命令行工具

    本文简介 上次写的一个终端里面斗鱼TV弹幕Python版本和Ruby版本,并且发布到PIP和RubyGems上面.在发布PIP包的时候,居然Google不到一篇可以非常好的讲解这个流程的文章.于是整理 ...

  3. 懒人神器 !一个创意十足的 Python 命令行工具

    作者 | 写代码的明哥 来源 | Python编程时光 当听到某些人说 xx 库非常好用的时候,我们总是忍不住想要去亲自试试. 有一些库,之所以好用,是对一些库做了更高级的封闭,你装了这个库,就会附带 ...

  4. python编写请求参数带文件_转载:如何编写一个带命令行参数的Python文件

    看到别人执行一个支持命令行参数的python文件,瞬间觉得高大上起来.牛逼起来,那么如何编写一个带命令行参数的python脚本呢?不用紧张,下面将简单易懂地让你学会如何让自己的python脚本,支持命 ...

  5. Python -- Scrapy 命令行工具(command line tools)

    结合scrapy 官方文档,进行学习,并整理了部分自己学习实践的内容 Scrapy是通过 scrapy 命令行工具进行控制的. 这里我们称之为 "Scrapy tool" 以用来和 ...

  6. python3命令需要使用命令行开发者工具_3 个 Python 命令行工具

    用 Click.Docopt 和 Fire 库写你自己的命令行应用. 有时对于某项工作来说一个命令行工具就足以胜任.命令行工具是一种从你的 shell 或者终端之类的地方交互或运行的程序.Git 和 ...

  7. python读音有道词典-有道词典命令行快速翻译,Python编程的利器

    本文的文字及图片来源于网络,仅供学习.交流使用,不具有任何商业用途,版权归原作者所有,如有问题请及时联系我们以作处理. 以下文章来源于Python实用宝典,作者Python实用宝典 在编程时经常会遇到 ...

  8. python工具是什么-使用Python编写命令行工具有什么好的库?

    使用Python编写命令行工具的库很多,我最推荐的还是Google Fire Hello World 要介绍Fire是什么,看一个简单的例子就明白了 # calc.py import fire cla ...

  9. python命令行工具_python命令行工具Click快速掌握

    前言 写 Python 的经常要写一些命令行工具,虽然标准库提供有命令行解析工具 Argparse,但是写起来非常麻烦,我很少会使用它.命令行工具中用起来最爽的就是 Click,它是 Flask 的团 ...

最新文章

  1. Android 的权限级别小记
  2. 海外观察丨6 大营销风向洞察,暗藏哪些机会?
  3. Go——cron定时任务Demo
  4. 数据库-优化-pt-query-digest安装
  5. 程序员面试金典 - 面试题 17.16. 理发师(动态规划DP)
  6. ROS----小乌龟之你追我赶
  7. ImageUtils.java:图片处理工具类[裁剪/图片水印/文字水印/缩放补白/Base64加密解密]
  8. 怎样在ppt中加入随机抽号_潮流女生怎样穿更时髦?经典中加入个性,减龄时尚还高级,快入坑...
  9. SQLite(二)高级操作
  10. ubuntu的无比注意事项
  11. Atitit  记录方法调用参数上下文arguments
  12. android activitygroup tab,android 之用ActivityGroup 实现Tab分页
  13. 华为的冬天----任正非
  14. BLE蓝牙连接不稳定以及突然断开的原因和解决方法
  15. pixi更新加载图片
  16. excel的合并和分开and转为在线文档
  17. Good Bye 2022: 2023 is NEAR C. Koxia and Number Theory
  18. 中等专业学校计算机教师,中等专业学校计算机班主任老师年度工作总结
  19. android购物车简单实现全选+加减器+总价格
  20. Couldn‘t find ffmpeg or avconv - defaulting to ffmpeg, but may not work快速解决办法

热门文章

  1. java获取中文字符串汉语拼音和首字母
  2. Veritas NetBackup8.1.1设置备份
  3. matlab计算一组数的函数值_matlab中怎么求一组数据概率最大的数
  4. iframe嵌套微信公众号文章
  5. 百度Sugar BI 数据可视化里的标签页组件如何实现
  6. python中data是什么意思_C++中cv::Mat中的data属性对应在python中是什么
  7. 几种方法判断平面点在三角形内
  8. php手册下载打开没有内容,word保存了但是再打开就没有了怎么办
  9. 事务码ABAVN-资产卡片报废-BAPI_ASSET_RETIREMENT_POST
  10. TX2/Linux下can总线的接收与发送详解!(回环测试)