Skip to content

Commit

Permalink
setup: update supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Feb 23, 2023
1 parent 448d195 commit f17dfe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions applecatalog/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import requests
from tqdm import tqdm

APPLE_SEED_URL = 'https://swscan.apple.com/content/catalogs/others/index-10.16{type}-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz'
APPLE_SEED_URL = 'https://swscan.apple.com/content/catalogs/others/index-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz'
MacOsProduct = namedtuple('MacOsProduct', 'product name build version')
Product = namedtuple('Product', 'id version title date basename')

Expand Down Expand Up @@ -37,7 +37,8 @@ def __init__(self, type_='seed'):
self.reload()

def reload(self):
self._catalog = plistlib.loads(gzip.decompress(requests.get(APPLE_SEED_URL.format(type=self._type)).content))
self._catalog = plistlib.loads(
gzip.decompress(requests.get(APPLE_SEED_URL.format(type=self._type), verify=False).content))

@property
def date(self):
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import setup, find_packages
import os

from setuptools import find_packages, setup

BASE_DIR = os.path.realpath(os.path.dirname(__file__))
VERSION = '0.0.6'

Expand Down Expand Up @@ -39,10 +40,11 @@ def get_description():
],
},
classifiers=[
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
url='https://github.com/doronz88/applecatalog',
project_urls={
Expand Down

0 comments on commit f17dfe4

Please sign in to comment.