fiaas-publish-0.2.0
توضیحات
Publish python package to PyPI and Github
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fiaas-publish-0.2.0 |
| نام | fiaas-publish |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | FiaaS developers |
| ایمیل نویسنده | fiaas@googlegroups.com |
| آدرس صفحه اصلی | https://github.com/fiaas/publish |
| آدرس اینترنتی | https://pypi.org/project/fiaas-publish/ |
| مجوز | Apache License |
publish - Tool to create a release of a Python package
======================================================
|Build Status| |Codacy Quality Badge| |Codacy Coverage Badge|
.. |Build Status| image:: https://semaphoreci.com/api/v1/fiaas/publish/branches/master/badge.svg
:target: https://semaphoreci.com/fiaas/publish
.. |Codacy Quality Badge| image:: https://api.codacy.com/project/badge/Grade/bd7d31c7ceac43eb81884b2adc4ba3ed
:target: https://www.codacy.com/app/fiaas/publish?utm_source=github.com&utm_medium=referral&utm_content=fiaas/publish&utm_campaign=Badge_Grade
.. |Codacy Coverage Badge| image:: https://api.codacy.com/project/badge/Coverage/bd7d31c7ceac43eb81884b2adc4ba3ed
:target: https://www.codacy.com/app/fiaas/publish?utm_source=github.com&utm_medium=referral&utm_content=fiaas/publish&utm_campaign=Badge_Coverage
publish is a tool to package and release a python project. It will create a changelog and upload artifacts to Github and PyPI.
It is created for and by the `FIAAS project`_, and used for most of our projects.
.. _`FIAAS project`: https://github.com/fiaas
Usage
-----
In order to use publish, you must first install it::
pip install publish
Under the covers, publish uses github-release_ and twine_ to do most of the work, and those tools require credentials for Github and PyPI to be available in environment variables::
export GITHUB_TOKEN=gh-token
export TWINE_USERNAME=pypi-user
export TWINE_PASSWORD=pypi-pass
In order to know where to upload the artifacts, you must specify an organization, and a repository::
publish fiaas k8s
Before uploading anything, publish will verify that the current checkout is suitable to be released, and checks the following items:
* Are all files either ignored or in version control?
* Is every change committed?
* Is the currently checked out code tagged with an annotated tag?
* Does that tag use the convention ``v<major>.<minor>.<bugfix>``?
If the answer to all of these is yes, the name of the tag is used as the version to release. A changelog is generated from the git log, source tarballs and wheels are built, the release is created in Github and PyPI, and the files are uploaded.
.. _github-release: https://github.com/j0057/github-release
.. _twine: https://github.com/pypa/twine
Changes since last version
--------------------------
* `ec150cb`_: Change name to fiaas-publish, and use githubrelease library
* `8569bc2`_: Set a returncode to reflect errors when uploading artifacts
* `a2879ac`_: Bump versions of dependencies
.. _a2879ac: https://github.com/fiaas/publish/commit/a2879ac
.. _ec150cb: https://github.com/fiaas/publish/commit/ec150cb
.. _8569bc2: https://github.com/fiaas/publish/commit/8569bc2
نیازمندی
| مقدار | نام |
|---|---|
| ==1.12.0 | six |
| ==2.1.11 | GitPython |
| ==1.12.1 | twine |
| ==1.5.8 | githubrelease |
| xtr | codacy-coverage; |
| ==3.6.1) | tox |
| ==2.0.0) | mock |
| ==4.0.2) | pytest |
| ==2.6.0) | pytest-cov |
| ==1.19.0) | pytest-html |
| ==0.9.2) | pytest-sugar |
| xtr | prospector; |
| >=1.6.3) | Sphinx |
نحوه نصب
نصب پکیج whl fiaas-publish-0.2.0:
pip install fiaas-publish-0.2.0.whl
نصب پکیج tar.gz fiaas-publish-0.2.0:
pip install fiaas-publish-0.2.0.tar.gz