创建或管理python应用程序或包

pybundler的Python项目详细描述


pybundler

Manages python applicatons or packages.

PyPI version

创建python包的基本模板并管理python应用程序或包。 这个工具的目的是提供与ruby的bundler类似的体验。 这个包基于pypkg-generatorpipenv

安装

OS X和Linux:

来自PYPI

$ pip3 install pybundler

从源头出发

$ git clone https://github.com/dany2691/pybundler.git
$ cd pybundler
$ python3 setup.py install

用法示例

打开终端并键入:

$ pybundler --help

它将显示:

Options:
  --install-all         Installs all packages from Pipfile
  -i, --install TEXT    Install a given package or the content of the Pipfile
  -u, --uninstall TEXT  uninstalls a given dependecy
  -d, --dev             If it is True, install dependency in dev section
  --lock                Creates or updates the Pipfile.lock
  -s, --shell           Spawns a shell within the virtualenv
  -b, --build-wheel     Creates a source archive and a wheel for your package
  -t, --test-release    Uploads the package to test.pypi.org
  -r, --release         Uploads the package to pypi.org andpushes it to the
                        git remote
  -p, --package         Creates a new python package from scratch
  -v, --version         Shows the current version of the package
  --help                Show this message and exit.

这个工具的目的是提供与ruby的bundler类似的体验。所以你可以从头开始创建一个新的包。

$ pybundler --package

然后,将提示一个问题列表,以便自定义新软件包:

Please, enter the nanme of the package: : greate-project
Enter the path of the project (default: current dir)[]:
Do you want to include a license file?  [y/N]: y
Do you want to include a code of conduct file?  [y/N]: y
Do you want to include a Pipfile file?  [y/N]: y
Do you want to install pytest?  [y/N]: y

因此,您可以在虚拟环境中安装像pipenv这样的依赖项:

$ pybundler --install numpy==1.16.2

您可以安装开发依赖项,如下所示:

$ pybundler --install pytest --dev

因此,与pipenv一样,可以从pipfile安装所有依赖项

$ pybundler --install-all

以下选项生成或更新pipfile.lock:

$ pybundler --lock

以下选项在virtualenv中生成一个shell:

$ pybundler --shell

要查看系统中安装的当前版本:

$ pybundler --version

为了使新包的发布自动化,我们提供了构建包并将其上载到pypi和远程git服务的下一个选项。

这是python setup.py sdist bdist_wheel的替代品

$ pybundler --build-wheel

下一个选项是将包上载到test.pypi.org:

$ pybundler --test-release

最后但并非最不重要的是,这一个,将包上传到pypi.org并将其推送到git远程:

$ pybundler --release

开发设置

此项目使用pipenv进行依赖性解析。这是一种混合 皮普和维图阿列诺夫。按照下面的说明设置开发环境。

$ git clone https://github.com/dany2691/pybundler.git
$ cd pybundler
$ pipenv shell
$ pipenv install -e .

要运行测试套件,请在pybundler目录中:

$ pytest -vv test/

发布历史记录

  • 0.3.0分
    • add:add--选项的版本标志
  • 0.2.1条
    • 修复:修复文档
  • 0.2.0条
    • 更改:项目的新名称,pybundler而不是py-bundler
  • 0.1.1条
    • 修复:readme.md已修复,text/markdown而不是text/markadown
  • 0.1.0条
    • 第一次正确释放
    • 添加:添加cli模块
  • 0.0.1分
    • 进行中的工作

丹尼尔·奥马尔·维加拉·佩雷斯–@dan1_netdaniel.omar.vergara@gmail.com

https://github.com/dany2691

贡献

  1. 叉它(https://gitlab.com/hexagondata_projects/pybundler
  2. 创建功能分支(git checkout -b feature/fooBar
  3. 提交更改(git commit -am 'Add some fooBar'
  4. 推到分支(git push origin feature/fooBar
  5. 创建新的拉取请求

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
提供mysql命令的Tomcat6 Java Servlet?   类型级别上的java@Resource   java当我使用SeleniumWebDriver运行TestNG套件时,我看到了这个异常。有人能帮我调试一下吗?   java读取Linux MIME问题上的Windows文本文件?   从URL读取数据的java Android AsyncTask返回Android。操作系统。NetworkOnMainThreadException   java MongoError:Spring引导抛出E11000重复密钥错误   Spring批处理读取器中sql查询内部的java调用方法   SeleniumWebDriver中的java添加日期格式MM/dd/yyyy   java如何在ObjectAnimation之后锁定视图?   当我试图在java中使用selenium webdriver登录时,出现了“此浏览器或应用程序可能不安全”错误   java如何在swaggerui中获取POST数据?   java Tomcat挂起调用时区   java使用Facelets 1.1.12在JSF 1.2中创建自己的验证器   java我可以直接在文件系统中存储ElasticSearch索引吗?   java Log4j没有打印日志   java如何在RecycleView适配器中显示ImageView onClick中的对话框片段   java找不到类“安卓”。操作系统。持久捆绑'   java与php web上的Linux脚本通信   在Tomcat下解析XML文档时,weblogic的DomainFactoryProperties中存在java NullPointerException