Commit graph

874 commits

Author SHA1 Message Date
依云
30055a9dcb
Merge pull request #164 from DDoSolitary/patch-gems-list
Add list options support for gems source
2020-10-22 00:35:59 +08:00
DDoSolitary
ab66fc0468
Add list options support for gems source 2020-10-22 00:10:45 +08:00
依云
8d1a079703
Merge pull request #163 from yan12125/android-sdk-channel
Add `channel` for Android SDK packages
2020-10-18 00:16:34 +08:00
Chih-Hsuan Yen
ea1200126b
Add channel for Android SDK packages 2020-10-10 13:19:36 +08:00
lilydjwg
d4b07d67b8 Merge branch 'master' of github.com:lilydjwg/nvchecker into master 2020-10-09 19:14:56 +08:00
lilydjwg
f8566f3f91 also install the nvchecker-notify script 2020-10-09 19:11:56 +08:00
lilydjwg
8a988ba3a3 nvchecker-notify: add the keyfile flag 2020-10-09 19:11:12 +08:00
依云
441f2a9fbd
Merge pull request #162 from yan12125/container
Add container source plugin
2020-10-07 21:14:54 +08:00
Chih-Hsuan Yen
75e72c11b3
Add container source plugin
Closes https://github.com/lilydjwg/nvchecker/issues/59
2020-10-07 19:17:48 +08:00
Chih-Hsuan Yen
8d83d7ac66
Add exception HTTPError for HTTP 4xx errors 2020-10-06 22:21:56 +08:00
Chih-Hsuan Yen
f957acc756
Use my formal English name for previous contributions 2020-10-06 22:17:47 +08:00
lilydjwg
42dfd483c7 add nvchecker-notify
which mimics `nvchecker -n` in 1.x era. See #158.

[skip ci]
2020-10-06 11:55:27 +08:00
lilydjwg
e080e32c89 remove old scripts 2020-10-06 11:54:15 +08:00
lilydjwg
926e75c075 fix versions sorting 2020-10-06 10:18:21 +08:00
lilydjwg
71612ad9b8 sort and indent version record files
See #161.
2020-10-06 10:07:20 +08:00
Felix Yan
108016aa45 Fix documentation for git source (fixes #159) 2020-10-06 10:01:25 +08:00
lilydjwg
55c4cd9868 release version 2.1 2020-10-05 23:57:30 +08:00
lilydjwg
7d4b2daa65 make make man work
[skip ci]
2020-10-05 12:26:48 +08:00
lilydjwg
ccae7d8fcf docs: add a script to convert usage.rst to a man page
[skip ci]
2020-10-04 21:18:27 +08:00
依云
c251af817a Create codeql-analysis.yml 2020-10-02 17:24:34 +08:00
lilydjwg
b3bc7ec049 exclude docs/ in setup.py
[skip ci]
2020-10-02 13:03:12 +08:00
lilydjwg
e9190df7c2 docs: try to make things clearer
[skip ci]
2020-10-02 12:54:03 +08:00
lilydjwg
494c67beb0 Merge remote-tracking branch 'origin/pr/155' into master 2020-10-02 12:38:13 +08:00
lilydjwg
54596bde3f well, let's start version 2.1 2020-10-02 12:37:57 +08:00
lilydjwg
854399a30a rename sample_source.toml to sample_config.toml
source now refers to where to get information from, e.g. "source plugins".
2020-10-02 12:35:37 +08:00
Felix Yan
071b57c580
Allow empty to_pattern
It's useful to have a partial match pattern to be replaced by an empty
string, like stripping a suffix. Let's allow it as "not to_pattern" will
reject this.
2020-10-02 04:39:57 +08:00
lilydjwg
0eca4a9b43 releasing version 2.0 2020-10-01 14:41:35 +08:00
lilydjwg
4cb63cbe65 test_gitea: remove some cases that go out of date too frequently 2020-09-28 16:12:22 +08:00
lilydjwg
4f3a900505 setup httpclient from configuration options
closes #76
2020-09-28 15:09:51 +08:00
lilydjwg
254a229401 fix support for Python 3.7 2020-09-24 18:56:14 +08:00
lilydjwg
cd1cbfde30 support per source plugin configuration and support different registry for the npm source 2020-09-24 18:27:30 +08:00
依云
121b94a7eb
Merge pull request #153 from felixonmars/git
Add a git source
2020-09-24 16:44:50 +08:00
Felix Yan
3ffb34257a
Use list comprehension instead of map lambda 2020-09-24 16:13:45 +08:00
Felix Yan
7213d84056
Avoid using regex at all 2020-09-24 05:45:09 +08:00
Felix Yan
d7624defd7
Fix mypy and regex flag 2020-09-24 04:51:28 +08:00
Felix Yan
c9b689d67b
Add a git source
It's a thin wrapper around the cmd source, and reuses its get_cmd
function.
2020-09-24 04:26:12 +08:00
依云
e6ecb753d6
Merge pull request #152 from felixonmars/fix-typo
Correct a typo in usage.rst
2020-09-23 23:11:57 +08:00
Felix Yan
050f440465
Correct a typo in usage.rst 2020-09-23 22:41:14 +08:00
依云
a78c06163c
Merge pull request #151 from felixonmars/npm-range-request
npm: Fetch only first 1KB
2020-09-23 20:54:31 +08:00
Felix Yan
71a63f90f6
npm: Fetch only first 1KB
The result is still large even after specifying
"Accept: application/vnd.npm.install-v1+json". Since the content we need
are always at the beginning of the response, let's make it more violent.
2020-09-23 20:04:02 +08:00
lilydjwg
07951bd745 httpx update to 0.15.0 2020-09-23 17:11:56 +08:00
Felix Yan
23bcbf8906
npm: Request abbreviated metadata to reduce download size
Ref:
https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md
2020-09-23 16:51:09 +08:00
依云
c03e33db56
Merge pull request #148 from felixonmars/apt-parse
apt: Parse Packages and cache it to improve performance
2020-09-21 19:11:32 +08:00
Felix Yan
82d5ebb630
apt: Parse Packages and cache it to improve performance
It's a very noticable 20~40s to 1s improvement here.
2020-09-21 18:49:23 +08:00
lilydjwg
ac73106e43 apt: minor update 2020-09-20 23:09:40 +08:00
lilydjwg
185a7e88a9 use asyncio.Semaphore instead of self-made queue 2020-09-20 22:15:54 +08:00
lilydjwg
f4983eaea3 apt: run decompress in an executor to give other tasks time to run 2020-09-20 22:02:18 +08:00
lilydjwg
450fa7de10 update test_gitea 2020-09-17 13:20:38 +08:00
依云
2502b0babc
Merge pull request #147 from felixonmars/nvcmp-sort-and-newer
Add --sort and --newer to nvcmp
2020-09-17 13:17:55 +08:00
依云
ef808b7517
Merge pull request #146 from felixonmars/apt
Add an APT source
2020-09-17 13:17:33 +08:00