• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

iartarisi/obs-service-github_tarballs: Download upstream tarballs and fetch chan ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

iartarisi/obs-service-github_tarballs

开源软件地址:

https://github.com/iartarisi/obs-service-github_tarballs

开源编程语言:

Python 100.0%

开源软件介绍:

OBS service for downloading tarballs and commit information from github

https://travis-ci.org/mapleoin/obs-service-github_tarballs.png

This is an Open Build Service source service. It downloads a tarball from a remote URL and updates the .spec and .changes files with git commit information from the github API.

How It Works

The Version field will be set to %(tarball_version)s+git.%(timestamp)s.%(commit_sha)s. Where tarball_version is the version as read from the parent directory inside the downloaded tarball - everything after the last dash (-) in the directory's name. timestamp is the current seconds from the UNIX epoch when the source service was run. commit_sha is the latest commit sha hash from the git repository.

On the first run, github_tarballs will just set the spec file's Version field to the latest git commit. The .changes file will only be updated with commit message information when newer commits (compared to the one now set in Version) are found.

The github_tarballs service will also change the specfile's Source: to the filename argument of the service and the %setup -q line to match the parent folder name in the tarball.

Rate Limiting

The github API rate limits requests. The limit can be extended by using github credentials to access the API. obs-service-github_tarballs will read and use these credentials from the .github_tarballs_credentials file in the current user's home directory if it can. The file should contain one line with the standard in standard HTTP BasicAuth format username:password.

Dependencies

Requires argparse which is part of python2.7, but available as a third-party dependency in python2.6.

The tests require python-mock. To run them, just use nosetests or python -m unittest discover (on python2.7).

Contributing

You can submit or ask for improvements using github's Pull Requests or Issues. If you're sending a patch, please make sure the testsuite is still running and also run flake8 on the files you've modified. It would be great if you could also modify this README file to describe new functionality and add tests.

You can take a look at the .travis.yml file to see how the testsuite and flake8 are being run.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap