mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
add setup.py and re-organize files
This commit is contained in:
parent
15fb385235
commit
8ad242da29
9 changed files with 233 additions and 6 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
nvchecker.egg-info/
|
||||||
|
versions/
|
|
@ -92,4 +92,3 @@ More to come. Send me a patch or pull request if you can't wait and have written
|
||||||
Bugs
|
Bugs
|
||||||
----
|
----
|
||||||
* Finish writing results even on Ctrl-C or other interruption.
|
* Finish writing results even on Ctrl-C or other interruption.
|
||||||
* ``setup.py`` script.
|
|
||||||
|
|
204
configurations/arch_lilydjwg.ini
Normal file
204
configurations/arch_lilydjwg.ini
Normal file
|
@ -0,0 +1,204 @@
|
||||||
|
[3to2]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[android-apktool]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[android-docs]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[android-ndk]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[android-sdk]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [aufs3-util-lily-git]
|
||||||
|
|
||||||
|
[cgdb]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[coffee-script]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[dcron]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[dmg2img]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[dnscrypt-proxy-git]
|
||||||
|
; my aur
|
||||||
|
github = jedisct1/dnscrypt-proxy
|
||||||
|
|
||||||
|
[elflibviewer]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[evince-nodbus]
|
||||||
|
cmd = LANG=C pacman -Si evince | grep -F Version | awk '{print $3}'
|
||||||
|
|
||||||
|
[fcitx-lilydjwg-git]
|
||||||
|
github = fcitx/fcitx
|
||||||
|
|
||||||
|
[google-appengine-python]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [gvim-lily]
|
||||||
|
|
||||||
|
[hfsprogs]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[kingsoft-office]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[latencytop]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[libsodium]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [linux-lily]
|
||||||
|
|
||||||
|
; [linux-lily-headers]
|
||||||
|
|
||||||
|
[msdl]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[nautilus-dropbox]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[nodejs-jake]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[openresty-dev]
|
||||||
|
; my aur
|
||||||
|
url = http://openresty.org/
|
||||||
|
regex = ngx_openresty-([\d.]+)\.tar\.gz\|
|
||||||
|
|
||||||
|
[perl-data-random]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-goo-canvas]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-gtk2-imageview]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-gtk2-unique]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-mouse]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-net-dropbox-api]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-net-oauth]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-proc-processtable]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl-yaml-tiny]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[perl4-corelibs]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[python-autopep8]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[python-bitstring]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[python-blist]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[python-cffi]
|
||||||
|
; my aur
|
||||||
|
url = https://pypi.python.org/pypi/cffi
|
||||||
|
regex = cffi-([\d.]+)\.tar\.gz
|
||||||
|
|
||||||
|
[python-pycparser-git]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[python-setproctitle]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [python-you-get-git]
|
||||||
|
; RSS'ed
|
||||||
|
|
||||||
|
[python2-netlib-git]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[reaver-wps-svn]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-gettext]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-levenshtein]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-locale]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-maruku]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-sass]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ruby-yard]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[shutter]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[spideroak]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[sqlite-manager]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ssed]
|
||||||
|
; my aur
|
||||||
|
url = http://sed.sourceforge.net/grabbag/ssed/
|
||||||
|
regex = The current version is ([\d.]+)\.
|
||||||
|
proxy = localhost:8087
|
||||||
|
|
||||||
|
[tp_smapi-dkms]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[ttf-ume]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[urlview]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [vim-lily]
|
||||||
|
|
||||||
|
[wdiff]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[wireshark-gtk2]
|
||||||
|
cmd = LANG=C pacman -Si wireshark-gtk | grep -F Version | awk '{print $3}'
|
||||||
|
|
||||||
|
[xf86-input-wizardpen]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[xkbset]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[xmind]
|
||||||
|
aur
|
||||||
|
|
||||||
|
[zbar]
|
||||||
|
aur
|
||||||
|
|
||||||
|
; [zhcon]
|
||||||
|
; my aur
|
||||||
|
; last update is six years ago
|
||||||
|
|
||||||
|
[zint]
|
||||||
|
aur
|
0
nvchecker/__init__.py
Normal file
0
nvchecker/__init__.py
Normal file
9
nvchecker → nvchecker/main.py
Executable file → Normal file
9
nvchecker → nvchecker/main.py
Executable file → Normal file
|
@ -6,14 +6,13 @@ import sys
|
||||||
import configparser
|
import configparser
|
||||||
import logging
|
import logging
|
||||||
from functools import partial
|
from functools import partial
|
||||||
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib'))
|
|
||||||
|
|
||||||
from pkg_resources import parse_version
|
from pkg_resources import parse_version
|
||||||
from tornado.ioloop import IOLoop
|
from tornado.ioloop import IOLoop
|
||||||
from tornado.options import parse_command_line, define, options
|
from tornado.options import parse_command_line, define, options
|
||||||
|
|
||||||
from get_version import get_version
|
from nvchecker.get_version import get_version
|
||||||
import notify
|
from nvchecker import notify
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
notifications = []
|
notifications = []
|
||||||
|
@ -91,7 +90,7 @@ def get_versions(config):
|
||||||
get_version(name, config[name], print_version_update)
|
get_version(name, config[name], print_version_update)
|
||||||
task_dec()
|
task_dec()
|
||||||
|
|
||||||
def test():
|
def main():
|
||||||
files = parse_command_line()
|
files = parse_command_line()
|
||||||
if not files:
|
if not files:
|
||||||
return
|
return
|
||||||
|
@ -108,4 +107,4 @@ def test():
|
||||||
ioloop.start()
|
ioloop.start()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test()
|
main()
|
23
setup.py
Executable file
23
setup.py
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# vim:fileencoding=utf-8
|
||||||
|
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name = 'nvchecker',
|
||||||
|
version = '0.1',
|
||||||
|
packages = find_packages(),
|
||||||
|
install_requires = ['tornado'],
|
||||||
|
entry_points = {
|
||||||
|
'console_scripts': [
|
||||||
|
'nvchecker = nvchecker.main:main',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
author = 'lilydjwg',
|
||||||
|
author_email = 'lilydjwg@gmail.com',
|
||||||
|
description = 'New version checker for software',
|
||||||
|
license = 'MIT',
|
||||||
|
keywords = 'new version build check',
|
||||||
|
url = 'https://github.com/lilydjwg/nvchecker',
|
||||||
|
)
|
Loading…
Add table
Reference in a new issue