Commit Graph

52 Commits

Author SHA1 Message Date
Ivan Kravets f57ca747a9 Add support for DL mirrors 2022-04-20 18:03:55 +03:00
Ivan Kravets 5a0a215bfc Use PY3 super() zero-argument syntax 2022-04-15 14:44:30 +03:00
Ivan Kravets 5e18f9bbda Finally removed all tracks to the Python 2.7 2022-04-09 17:46:21 +03:00
Ivan Kravets bd202f55ce Rename search "filters" to "qualifiers" 2022-03-30 14:43:02 +03:00
Alexey Vazhnov 5658e7f718 _internet_on: try IPv4, if not acceptable — try IPv6 (#4151)
* _internet_on: try IPv4, if not acceptable — try IPv6

* _internet_on: replace IPv4 `socket.socket` + IPv6 `socket.socket` with one universal `socket.create_connection`
2022-01-08 14:59:47 +02:00
Ivan Kravets 7cdcc9099b Escape custom request arguments 2022-01-04 14:53:34 +02:00
Ivan Kravets 73ddf80fc1 Refactor authentication part for clients 2022-01-04 14:45:14 +02:00
Ivan Kravets c56dfda833 Minor fixes 2022-01-02 23:08:21 +02:00
Ivan Kravets b7f685ed62 Fix a bug with expired account session 2021-12-20 19:27:56 +02:00
Ivan Kravets 6e03eff303 Handle base AccountError 2021-12-20 19:05:12 +02:00
Ivan Kravets 63674d85e8 Ignore private packages if user not authorized 2021-12-18 13:53:54 +02:00
Ivan Kravets 449722f08c Improved support for private packages in PlatformIO Registry 2021-12-18 13:45:26 +02:00
Ivan Kravets 85c582bc93 Use "/v3//search" endpoint when searching for packages in registry 2021-11-27 15:00:10 +02:00
Ivan Kravets 72cc23ef46 Fix PyLint warning with "No exception type(s) specified (bare-except)" 2021-06-29 18:25:20 +03:00
Ivan Kravets 5c3b5be613 Fix TypeError: 'NoneType' object is not callable 2021-06-29 18:07:45 +03:00
Ivan Kravets 61d6cd3c18 Apply black formatter 2021-04-28 19:58:50 +03:00
Ivan Kravets ad28d1906c Improve a package publishing process 2021-04-21 20:51:54 +03:00
Ivan Kravets 428f46fafe Typo test 2020-10-16 17:05:19 +03:00
Ivan Kravets ee847e03a6 Fix an issue with "'NoneType' object has no attribute 'status_code'" 2020-10-16 14:23:10 +03:00
Ivan Kravets 7bc170a53e Fixed an issue with "KeyError: 'versions'" when dependency does not exist in the registry // Resolve #3666 2020-09-11 21:16:18 +03:00
Ivan Kravets f946a0bc08 Reformat code with black==20.8b1 2020-09-09 16:27:36 +03:00
Ivan Kravets 80c1774a19 Docs: PlatformIO Core 5.0: new commands, migration guide, other improvements 2020-08-28 14:08:26 +03:00
Ivan Kravets da179cb33f Enhance configuration variables 2020-08-23 14:29:31 +03:00
Ivan Kravets dcf91c49ac Remove debug code 2020-08-22 22:56:26 +03:00
Ivan Kravets 95151062f5 Implement mirroring for HTTP client 2020-08-22 22:52:29 +03:00
Ivan Kravets 7e4bfb1959 Move CacheContent API to "cache.py" module 2020-08-22 20:05:14 +03:00
Ivan Kravets abae9c7e77 Cache base registry requests 2020-08-22 17:52:12 +03:00
Ivan Kravets 102aa5f22b Port legacy API requests to the new registry client 2020-08-22 17:49:29 +03:00
Ivan Kravets d92c1d3442 Refactor HTTP related operations 2020-08-22 17:48:49 +03:00
Ivan Kravets 808852f4cc Set default timeout for http requests // Resolve #3623 2020-08-16 20:21:30 +03:00
Ivan Kravets 893ca1b328 Switch library manager to the new package manager 2020-08-12 13:27:05 +03:00
Ivan Kravets 2dd69e21c0 Implement package removing with dependencies 2020-08-01 20:17:07 +03:00
Ivan Kravets a01b3a2473 Do not raise exception when package is not found (404), return None 2020-08-01 19:58:59 +03:00
Ivan Kravets d329aef876 Initial version of a new package manager 2020-07-31 15:42:26 +03:00
Ivan Kravets def149a29e Use updated registry API 2020-07-25 17:13:05 +03:00
Ivan Kravets 6ace5668b8 Update the registry publish endpoints 2020-07-24 20:57:18 +03:00
ShahRustam e853d61e16 Add orgname filter for access list (#3564)
* add orgname filter for access list

* fix

* fix namings
2020-06-17 18:55:40 +03:00
ShahRustam 42e8ea29ff CLI to manage access level on PlatformIO resources. Resolve #3534 (#3563) 2020-06-17 13:53:53 +03:00
ShahRustam a5547491ed Add account and org destroy commands. Fix tests (#3552)
* Add account and org destroy commands. Fix tests

* fix tests

* fix

* fix texts
2020-06-09 15:50:37 +03:00
ShahRustam 94cb808285 CLI to manage teams. Resolve #3533 (#3547)
* CLI to manage teams.Minor fixes. Resolve #3533

* fix teams tests

* disable org and team tests

* minor fixes. fix error texts

* fix split compatibility
2020-06-04 19:31:30 +03:00
Ivan Kravets 0c4c113b0a Fix account shpw command when PLATFORMIO_AUTH_TOKEN is used 2020-06-04 14:09:42 +03:00
Ivan Kravets 3c1b08daab Ignore empty PLATFORMIO_AUTH_TOKEN 2020-06-04 13:57:56 +03:00
ShahRustam 140fff9c23 CLI to manage organizations. Resolve #3532 (#3540)
* CLI to manage organizations. Resolve #3532

* fix tests

* fix test

* add org owner test

* fix org test

* fix invalid username/orgname error text

* refactor auth request in clients

* fix

* fix send auth request

* fix regexp

* remove duplicated code. minor fixes.

* Remove space

Co-authored-by: Ivan Kravets <me@ikravets.com>
2020-06-03 17:41:30 +03:00
Ivan Kravets 26ba6e4756 Add new option to package publishing CLI which allows to disable email notiication 2020-05-28 17:06:36 +03:00
Ivan Kravets ae58cc74bd Rename checksum header to X-PIO-Content-SHA256 2020-05-28 16:08:37 +03:00
Ivan Kravets 37e795d539 Send package checksum when publishing 2020-05-28 16:07:20 +03:00
Ivan Kravets c1965b607b Add binary stream to package publishing request 2020-05-27 17:27:05 +03:00
Ivan Kravets c06859aa9f Add package type to unpublish command 2020-05-27 14:30:27 +03:00
ShahRustam e706a2cfe2 Refactor pio account client. Resolve #3525 (#3529) 2020-05-27 13:39:58 +03:00
Ivan Kravets deb12972fb Implement "package unpublish" CLI 2020-05-27 01:10:35 +03:00