Commit Graph

384 Commits

Author SHA1 Message Date
lilydjwg
64703e8b2d tests: add test_cache 2018-10-10 17:35:18 +08:00
lilydjwg
e2fb91d3fb tests: fix clear_cache arg 2018-10-10 17:22:02 +08:00
lilydjwg
10e3478b12 fix test_keyfile
keyfile is not part of cache keys so the expectations are wrong.

We don't make it part of cache keys because we don't expect keyfile to
affect the version as long as we can get it.
2018-10-10 17:17:02 +08:00
lilydjwg
26eaef92aa handle deprecated warning, reindent conftest.py 2018-10-10 17:08:28 +08:00
lilydjwg
903b414183 cache result during a run
so that different entries can refer to a same software without much overhead.

This is needed because entries may be generated, and only nvchecker can
tell if two entries are expecting the same result because the name may
or may not be relevant.

Closes #81.
2018-10-10 17:03:20 +08:00
lilydjwg
8cc902909e update doc for AUR use_last_modified config 2018-09-30 19:51:55 +08:00
lilydjwg
faf14b64c4 Merge branch 'master' of github.com:lilydjwg/nvchecker 2018-09-30 19:50:27 +08:00
依云
0848d0a5d7
Merge pull request #82 from petronny/master
added use_last_modified for aur
2018-09-30 19:49:30 +08:00
Jingbei Li
ddbe30db8c added use_last_modified for aur 2018-09-30 17:42:42 +08:00
lilydjwg
b8812f4ae6 fix typo in comments 2018-09-27 21:40:21 +08:00
lilydjwg
81fb17ab25 nvtake: log for ignored names 2018-09-25 12:54:56 +08:00
lilydjwg
2d9bbadd15 add --ignore-nonexistent arg to nvtake 2018-09-25 12:36:17 +08:00
lilydjwg
033440da84 gitlab: fix rate limiting check 2018-09-25 12:33:37 +08:00
lilydjwg
9937378876 structlog PrintLogger doesn't have the 'fatal' synonym. 2018-09-22 21:27:17 +08:00
lilydjwg
60afa62d89 Revert "cache get_version results".
Some sources will use the name.

This reverts commits aabf9f5037
and f75a156d46.
2018-09-22 13:36:13 +08:00
lilydjwg
f75a156d46 fix get_version cache key 2018-09-22 13:28:59 +08:00
lilydjwg
aabf9f5037 cache get_version results
closes #81
2018-09-22 13:12:25 +08:00
lilydjwg
db376ccfed fix referring to wrong conf when logging no-result messages 2018-09-22 12:17:27 +08:00
lilydjwg
bfc4b76124 fix logging message module info pointing to structlog 2018-09-22 12:11:25 +08:00
lilydjwg
5bb2c960e5 declare that we support python 3.7 2018-09-21 19:41:42 +08:00
依云
68d9cd5d61
Merge pull request #80 from yan12125/add-missing_ok
Add missing ok
2018-09-21 16:10:58 +08:00
Chih-Hsuan Yen
e6d0449bc4
Fix tests 2018-09-21 12:18:21 +08:00
Chih-Hsuan Yen
1d16726c90
Add missing_ok, which suppresses no-result warnings 2018-09-21 12:17:21 +08:00
lilydjwg
42a02efec8 pytest 3.7.0 doesn't work with pytest-asyncio 0.9.0. pin to old pytest for now
Also see: https://github.com/pytest-dev/pytest-asyncio/issues/89
2018-08-01 16:41:19 +08:00
lilydjwg
0c459c1c03 Update README.rst about installation and running 2018-08-01 16:10:04 +08:00
lilydjwg
3e915a6a39 travis-ci: Python 3.7 isn't ready yet? 2018-07-22 23:17:16 +08:00
lilydjwg
431d80c61e test Python 3.7 2018-07-22 23:04:10 +08:00
lilydjwg
af368112ed Merge remote-tracking branch 'origin/pr/77' 2018-07-22 23:03:53 +08:00
lilydjwg
9f5028bbf0 tornado: set max_clients to 20
we'd better find out a way to specify this in the config file though.
2018-07-22 23:02:07 +08:00
Chih-Hsuan Yen
d9872dad6b Relax tornado requirement
I guess nobody is using tornado<4
2018-07-22 21:59:40 +08:00
Chih-Hsuan Yen
6afa9a551a Fix test_anitya 2018-07-22 21:08:00 +08:00
Chih-Hsuan Yen
7face004e4 Also test tornado<5 2018-07-22 21:08:00 +08:00
lilydjwg
00f7dccb39 update setup.py so that users can pip install nvchecker without other steps 2018-06-27 16:01:51 +08:00
lilydjwg
c537cf20fc bump version 2018-06-27 16:01:33 +08:00
lilydjwg
18d4e02977 fix max_concurrent config not being respected 2018-06-27 15:39:32 +08:00
lilydjwg
2e4f5d23a0 new version 2018-06-22 15:32:30 +08:00
lilydjwg
be6f9dc9e9 github & gitlab: exc.response may be None when timed out 2018-06-19 18:29:38 +08:00
lilydjwg
9b8cfc6f6f github: avoid TypeError when github returns 502 or similar
...without the ratelimit header
2018-06-12 15:15:58 +08:00
依云
6848c49dfb
Merge pull request #73 from Xuanwo/gitlab-without-token
Add rate limit check support for gitlab
2018-06-10 22:12:12 +08:00
Xuanwo
c9f2fcdb62 tests: Add local test for over limit check
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2018-06-10 21:24:33 +08:00
Xuanwo
bb7afab0a7 gitlab: Support get tags without token
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2018-06-10 21:24:22 +08:00
依云
07a97e04c5
Merge pull request #72 from Xuanwo/fix-gitlab-support
Fix gitlab support
2018-06-09 00:08:51 +08:00
Xuanwo
9d32a25c55 gitlab: Upgrade to API v4
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2018-06-09 00:02:02 +08:00
Xuanwo
f1c55296af misc: Ignore .pytest_cache
Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2018-06-09 00:01:55 +08:00
lilydjwg
116e426d5a vcs: collect errors into log
This fixes #39.
2018-05-29 14:46:53 +08:00
lilydjwg
e61f9dcd76 vcs: fix name conflicts 2018-05-17 17:29:41 +08:00
lilydjwg
9340db2663 vcs: should return oldver than generate a new one 2018-05-16 14:10:41 +08:00
lilydjwg
c1c531d707 debian API becomes flaky recently 2018-05-15 22:37:39 +08:00
lilydjwg
5383fb30e0 get_version should always return the current version
not None when it's not updated.
2018-05-15 22:25:35 +08:00
lilydjwg
8c0f7b5680 log extra arguments to console 2018-05-13 19:07:00 +08:00