Commit Graph

29 Commits

Author SHA1 Message Date
David Dalcino
7ebd6aa34e Use sha256 hashes only from trusted mirrors
To keep this commit small, `hashurl` was removed from QtPackage, and
`get_hash` constructs the hash url based on the url of the 7z archive
to download. I think that in the future, QtArchive and QtPackage could
be refactored to construct this url more appropriately. However, this
would be a complicated change that doesn't belong in this commit.
2022-03-06 17:36:32 -08:00
Hiroshi Miura
eaf5a46e48 Merge pull request #459 from ddalcino/fix-archives-flag
Restrict effect of `--archives` flag to base and debug_info modules
2022-01-26 14:21:47 +09:00
Hiroshi Miura
9b66f03718 Accept Update.xml that use comma without space as delimiter
resolve #475

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2022-01-12 22:24:16 +09:00
David Dalcino
6e06e058c5 Add tests for --archives flag 2021-12-05 11:53:27 -08:00
David Dalcino
c5b89f6170 fail on mismatched tool versions
This recreates the legacy behavior, where `aqt tool` would fail to
install a tool variant when the version in the xml file does not match
the version requested in cli arguments.

This also recreates a bug where `aqt tool` cannot install tools that
do not have a valid semantic version.
2021-09-30 19:15:32 -07:00
David Dalcino
a5bb2553ce Add improved error messages for missing archives 2021-09-20 12:46:47 -07:00
David Dalcino
4593108eb4 black 2021-09-02 12:48:58 -07:00
David Dalcino
35cf033c27 Add coverage for archives 2021-09-02 11:44:40 -07:00
David Dalcino
fca26ebe7d Add test for ModuleToPackage 2021-08-25 15:04:16 -07:00
David Dalcino
0ea5d586ef fix merge error 2021-08-25 13:16:10 -07:00
David Dalcino
c9c1388027 Merge remote-tracking branch 'upstream/master' into fail-on-missing-modules
# Conflicts:
#	aqt/archives.py
#	tests/test_archives.py
2021-08-25 09:49:59 -07:00
David Dalcino
053937c817 Add test for ToolArchives 2021-08-24 10:07:42 -07:00
David Dalcino
536b5c3bd4 Add test for all modules 2021-08-23 11:48:23 -07:00
David Dalcino
f2ab2686e7 Improve check for PackageUpdate naming convention 2021-08-23 10:57:17 -07:00
David Dalcino
099a7744a0 Improve readability of test_parse_update_xml
This change alters the variable name "target" to the more appropriate
"arch", and adds appropriate parameter names to the QtArchive
constructor call, so that the test runs properly

This also updates the use of the 'QtPackage.url' data member to
'QtPackage.archive_url', which is more current.
2021-08-23 10:57:15 -07:00
David Dalcino
67e18951ae Add test for QtArchives with specific modules 2021-08-23 10:57:12 -07:00
Hiroshi Miura
a767956a5b Coding style update by Black/isort
Change to max line length to 125

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-08-02 13:41:41 +09:00
Hiroshi Miura
ab823596dc Utilize dataclasses (#313)
* Utilize dataclasses

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* PEP8

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-07-15 08:08:53 +09:00
Hiroshi Miura
fac014216f Use global instance to hold Settings instead of Borg (#272)
* Use global variable to hold Settings

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* Settings global instance to hold configurations

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* Revert to Settings class to helper module

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* Revert Settings class variables

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* PEP8

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* CI: change actions to use macos-11

Signed-off-by: Hiroshi Miura <miurahr@linux.com>

* Revert "CI: change actions to use macos-11"

CI: macos-11 is just for private preview

This reverts commit f1d576f4bf.
2021-06-19 10:43:19 +09:00
Hiroshi Miura
741eb4989e PEP8/Black
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-24 08:27:07 +09:00
Hiroshi Miura
4c0638250c Move constants into settings.ini configuration
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-23 13:00:31 +09:00
Hiroshi Miura
57cec9e2e0 Integrate cuteci installer into aqtinstall (#239)
* Add cuteci intaller

* Check qtaccount.ini existence

* Fix subprocess call

* sub command show elapsed time

* test: cli: update help message exception

* Update URL base handling

* old version installer accept environment variable

- qtaccount: QTLOGIN and QTPASSWORD variable

* Change cuteci sub command to 'offline_installer'

* Update qscript to deselect QtCreator from installation

* Reuse downloaded installer file

* Update test and fix MANIFEST

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-05-20 14:43:02 +09:00
Hiroshi Miura
d841741641 Reformat by black
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-04-02 12:20:10 +09:00
Hiroshi Miura
1ecd418acc Fix tests(more)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-01-21 10:15:58 +09:00
Gamso
91b78c24f2 Add check on packages name to download (#159)
* Add check on packages name to download only packages for platforms specified.

* More stronger check with using platforms from combinations.json.

* Add test

Co-authored-by: Gamso <gamso@live.fr>
2020-09-11 14:41:53 +09:00
Hiroshi Miura
c6f135fec2 test: Fix test version conbinations
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2020-05-02 12:19:40 +09:00
Hiroshi Miura
048d129768 Fix handling of QtArchive variables
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2020-05-02 12:19:40 +09:00
Hiroshi Miura
2a6b67e1c3 PEP8
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2020-05-02 08:49:04 +09:00
Hiroshi Miura
a097878bc0 test: Add unit test for archives.py
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2020-05-02 08:40:41 +09:00