Alexandru Fikl
fed4fc52ff
test_cran: bump xml2 version to pass test
2023-05-01 09:59:16 +03:00
Alexandru Fikl
1be02fc29c
remove usage of deprecared sre_constants
2023-04-30 14:12:34 +03:00
依云
4a0caf3213
Merge pull request #222 from yan12125/fix-test_alpm
...
Fix test_alpm in Arch chroots
2023-04-07 21:11:50 +08:00
Chih-Hsuan Yen
166dfb11a4
Fix test_alpm in Arch chroots
...
Arch chroots with recent devtools has options=(debug) by default, and
thus test_alpm fails:
_________________________ ERROR at setup of test_alpm __________________________
module = <module 'tests.test_alpm' from '/build/nvchecker/src/nvchecker/tests/test_alpm.py'>
def setup_module(module):
global temp_dir, db_path
temp_dir = tempfile.TemporaryDirectory()
temp_path = pathlib.Path(temp_dir.name)
pkg_path = temp_path / 'test-pkg'
pkg_path.mkdir()
with (pkg_path / 'PKGBUILD').open('w') as f:
f.write(
'pkgname=test-pkg\n'
'pkgver=1.2.3\n'
'pkgrel=4\n'
'arch=(any)\n'
'provides=("test-provides=5.6-7" "test-provides-unversioned")\n'
)
subprocess.check_call(['makepkg', '--nosign'], cwd=pkg_path)
pkg_file = subprocess.check_output(['makepkg', '--packagelist'], cwd=pkg_path, text=True).strip()
db_path = pkg_path / 'test-db'
db_path.mkdir()
repo_path = db_path / 'sync'
repo_path.mkdir()
> subprocess.check_call([
'repo-add',
repo_path / 'test-repo.db.tar.gz',
pkg_path / pkg_file
])
tests/test_alpm.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')],)
kwargs = {}, retcode = 1
cmd = ['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['repo-add', PosixPath('/tmp/tmp2kl26h_y/test-pkg/test-db/sync/test-repo.db.tar.gz'), PosixPath('/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst\n/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst')]' returned non-zero exit status 1.
/usr/lib/python3.10/subprocess.py:369: CalledProcessError
---------------------------- Captured stdout setup -----------------------------
==> Making package: test-pkg 1.2.3-4 (Fri Apr 7 11:53:43 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> Extracting sources...
==> Entering fakeroot environment...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "test-pkg"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: test-pkg 1.2.3-4 (Fri Apr 7 11:53:44 2023)
==> No packages modified, nothing to do.
---------------------------- Captured stderr setup -----------------------------
==> ERROR: File '/pkgdest/test-pkg-1.2.3-4-any.pkg.tar.zst
/pkgdest/test-pkg-debug-1.2.3-4-any.pkg.tar.zst' not found.
2023-04-07 20:38:17 +08:00
lilydjwg
80343945a1
bump version to 2.11
2023-04-06 21:00:56 +08:00
lilydjwg
1bbbdca638
github actions: exclude matrix containing an upstream bug
2023-03-26 20:51:19 +08:00
lilydjwg
414c20a60f
update github actions versions
2023-03-26 20:02:39 +08:00
lilydjwg
931b3fdf3c
github actions: test again Python 3.11
2023-03-26 18:47:38 +08:00
lilydjwg
577a42ef89
update tests
...
Microsoft's teams repo has gone.
2023-03-26 18:39:05 +08:00
lilydjwg
addc7d0b52
regex source: cache by url and post_data
...
so we can search for different regexes for the same web page.
fixes #221 .
2023-03-26 17:30:08 +08:00
依云
e71dd309e7
Merge pull request #220 from alexfikl/port-platformdirs
...
Port from deprecated appdirs to platformdirs
2023-02-02 01:27:05 +08:00
Alexandru Fikl
8366e519d6
port from deprecated appdirs to platformdirs
2023-02-01 17:15:15 +02:00
lilydjwg
2782205efc
remove unused # type: ignore
2022-11-20 14:16:33 +08:00
lilydjwg
2107e6ef6f
try to fix mypy
2022-11-20 14:14:33 +08:00
lilydjwg
4bace14110
add comment about how to build and upload
2022-11-20 13:50:32 +08:00
lilydjwg
fad7cf631d
Merge remote-tracking branch 'origin/pr/212'
...
Conflicts:
setup.cfg
setup.py
2022-11-20 13:42:22 +08:00
lilydjwg
add6951eae
new dev version starts
2022-11-20 13:35:54 +08:00
lilydjwg
8ca78f7445
docs: update about default git branch.
...
[skip ci]
2022-11-08 20:57:10 +08:00
lilydjwg
324f2f5f59
bump version to 2.10
2022-10-30 13:57:00 +08:00
依云
115963ab93
Merge pull request #219 from yan12125/minor-fixes
...
Several minor fixes for docs and tests
2022-10-29 14:37:55 +08:00
Chih-Hsuan Yen
2fc6be9d4e
Update versions in test_{openvsx,vsmarketplace}
2022-10-29 14:22:23 +08:00
Chih-Hsuan Yen
3d3d8c6136
Fix test_{archpkg,pacman}
...
Apparently the ipw2100-fw package is dropped. I switched to another
package that is rarely updated.
2022-10-29 14:21:02 +08:00
Chih-Hsuan Yen
51ffbbdf61
Fix docs warnings
...
usage.rst:886: (WARNING/2) Title underline too short.
Check Visual Studio Code Marketplace
~~~~~~~~~~~~~~~
usage.rst:886: (WARNING/2) Title underline too short.
Check Visual Studio Code Marketplace
~~~~~~~~~~~~~~~
2022-10-29 14:20:07 +08:00
lilydjwg
4c4479d4ea
gitea: omit default branch if not specified, fix for blm
2022-08-25 16:46:06 +08:00
依云
a1d2a1325c
Merge pull request #218 from moodyhunter/master
...
alpm source: support checking packages from multiple repos
2022-08-25 16:32:03 +08:00
Moody Liu
dada15505c
doc: separate 'repo' and 'repos' for alpm source
2022-08-21 15:29:07 +01:00
Moody Liu
706952609e
update alpm documentation: repos
2022-08-21 14:54:34 +01:00
Moody Liu
7b2a464821
alpm: support searching in multiple repos
2022-08-21 14:51:06 +01:00
lilydjwg
13cca483e1
update test_android_sdk.py
2022-08-12 13:52:04 +08:00
lilydjwg
9ee53041b6
catch exceptions from Worker.run
2022-08-12 13:40:33 +08:00
lilydjwg
8b8f2d1d8a
nvchecker-notify: try Notify 0.8
...
fixes #217 .
2022-07-16 15:48:59 +08:00
lilydjwg
268bd9125e
begin a new version
2022-07-16 15:47:52 +08:00
lilydjwg
2325d2ac74
bump version to 2.9
2022-06-27 20:33:39 +08:00
Vanilla
2de30c0acd
vsmarketplace: use better filterType
...
fixes #216 .
2022-06-18 16:27:17 +08:00
lilydjwg
914c6414e8
fix tests trying to raise exc_info=True
2022-06-12 14:22:14 +08:00
lilydjwg
8b32c26d1e
htmlparser: handle xpath pointing to element instead of text()
2022-06-12 12:31:11 +08:00
lilydjwg
e683476fb2
avoid the whole process taken down by a single _process_result
2022-06-12 12:22:07 +08:00
lilydjwg
88cbdd925c
fix mypy
2022-06-05 14:41:57 +08:00
lilydjwg
ffe84cae08
add support for using awesomeversion to compare versions
2022-06-05 14:31:54 +08:00
lilydjwg
d706961669
update tests
2022-04-21 17:23:20 +08:00
lilydjwg
f2aa4cad20
fix typos
2022-04-21 17:16:34 +08:00
lilydjwg
48f82e819b
bump version to 2.9dev
2022-04-21 17:16:23 +08:00
lilydjwg
257b0f63fe
packaging issue fixed
...
It was setuptools-scm that caused a lot of unintended files to be
packaged. That package was required by twine but it's no longer needed
now.
2022-04-11 19:17:39 +08:00
lilydjwg
5605f62269
bump version to 2.8
2022-04-11 18:40:15 +08:00
lilydjwg
69a5d82d25
tests: fix some warnings
2022-04-07 14:06:03 +08:00
lilydjwg
2e042d7576
fix httpx and aiohttp issues
...
It seems that we no longer need to close the sessions.
2022-04-07 13:44:38 +08:00
lilydjwg
2ea44d3694
make mypy happy
2022-04-02 12:07:20 +08:00
Chih-Hsuan Yen
1235d77e72
Pin werkzeug for httpbin compatibility
2022-04-02 12:03:45 +08:00
Chih-Hsuan Yen
c15e9b7576
android-sdk improvements
...
* Returns all matched versions to support list options
* Don't hard-code the host OS
* Document the default of `channel`
2022-04-02 11:53:27 +08:00
Dusk Banks
2598b0fd19
tests: pytest-asyncio asyncio_mode
-> strict
...
the `asyncio_mode` of `legacy` (current default) is deprecated.
`asyncio_mode` will be `strict` by default in the future.
2022-03-03 09:56:33 -08:00