From 6ace5668b8e3fe19f7636ef31de508b816920931 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 24 Jul 2020 20:57:18 +0300 Subject: [PATCH] Update the registry publish endpoints --- platformio/clients/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index c48094ee..a1993900 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -43,7 +43,7 @@ class RegistryClient(RESTClient): with open(archive_path, "rb") as fp: response = self.send_auth_request( "post", - "/v3/package/%s/%s" % (owner, PackageType.from_archive(archive_path)), + "/v3/packages/%s/%s" % (owner, PackageType.from_archive(archive_path)), params={ "private": 1 if private else 0, "notify": 1 if notify else 0, @@ -67,7 +67,7 @@ class RegistryClient(RESTClient): owner = ( account.get_account_info(offline=True).get("profile").get("username") ) - path = "/v3/package/%s/%s/%s" % (owner, type, name) + path = "/v3/packages/%s/%s/%s" % (owner, type, name) if version: path = path + "/version/" + version response = self.send_auth_request(