Commit Graph

801 Commits

Author SHA1 Message Date
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
Felix Yan
d380e31881
Fix srcpkg test 2020-09-17 12:55:30 +08:00
Felix Yan
a018f71186
Make mirror and suite mandatory 2020-09-17 12:53:03 +08:00
Felix Yan
a2b03867a9 Add --sort and --newer to nvcmp
The arrow is shown as backwards if the new version is older than the old
version. Also added a switch --newer to hide those with an older new
version.
2020-09-17 12:49:26 +08:00
Felix Yan
da5b489173
Use srcpkg instead of source_pkg 2020-09-16 21:19:38 +08:00
Felix Yan
b620ed4e90
Support source package too 2020-09-16 18:57:50 +08:00
Felix Yan
819a8461a4
Use deb.debian.org instead of ftp.debian.org 2020-09-16 17:41:45 +08:00
Felix Yan
ae563d007f
Add an APT source
This source follows the same flow apt itself uses to check for a
package's version, so it can be used to check for any APT repository
(not necessarily Debian or Ubuntu).
2020-09-16 17:20:17 +08:00
lilydjwg
e744a27572 use dedicated exception for loading errors
fixes #145
2020-09-11 15:11:50 +08:00
依云
f28cc7ae61
Merge pull request #144 from felixonmars/patch-2
Correct a typo in util.py
2020-09-09 07:01:39 +08:00
Felix Yan
f8444926ba
Correct a typo in util.py 2020-09-09 02:39:44 +08:00
依云
61e53b6698
Merge pull request #141 from felixonmars/nvtake-to-specific-version
Allow nvtake to update to a specific version
2020-09-03 19:30:59 +08:00
lilydjwg
fbb7484b32 docs: try newer sphinx
type annotations don't link. :meta private: doesn't hide. async is
absent.

[ci skip]
2020-09-03 17:52:30 +08:00
lilydjwg
daae6b5341 readthedocs doesn't have curl-config, try without 2020-09-03 17:02:08 +08:00
lilydjwg
bf8baa2c21 httpclient: fix headers being modified across invocations 2020-09-03 17:00:04 +08:00
lilydjwg
b9ac0794aa add docs/requirements.txt for readthedocs 2020-09-03 16:55:18 +08:00
lilydjwg
cf42eab8c2 README: add documentation badge 2020-09-03 16:53:29 +08:00
lilydjwg
03f99944cf remove the NEW file
because it's done!
2020-09-03 16:42:48 +08:00
lilydjwg
1ceea05e15 trim down README and link the docs from readthedocs
It doesn't link well on GitHub.
2020-09-03 16:39:51 +08:00
lilydjwg
7bae8ece16 tests/test_debianpkg: update 2020-09-03 16:30:32 +08:00
lilydjwg
717c3e2367 Merge branch 'master' of github.com:lilydjwg/nvchecker into master 2020-09-03 16:27:57 +08:00
lilydjwg
8c99ae8eea add documentation for plugins 2020-09-03 16:27:35 +08:00
依云
0397ea5cc5
Merge pull request #143 from felixonmars/f-string
Fix f-string in github source
2020-09-03 10:33:43 +08:00
Felix Yan
52ab39d92e
Fix f-string in github source 2020-09-03 04:38:14 +08:00