developer-disk-image 0.0.1__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- developer_disk_image-0.0.4/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- developer_disk_image-0.0.4/.github/workflows/codeql.yml +74 -0
- developer_disk_image-0.0.4/.github/workflows/python-app.yml +43 -0
- developer_disk_image-0.0.4/.github/workflows/python-publish.yml +31 -0
- developer_disk_image-0.0.4/.gitignore +7 -0
- developer_disk_image-0.0.4/MANIFEST.in +2 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/PKG-INFO +11 -6
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/README.md +5 -3
- developer_disk_image-0.0.4/developer_disk_image/_version.py +16 -0
- developer_disk_image-0.0.4/developer_disk_image/exceptions.py +6 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image/repo.py +13 -4
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/PKG-INFO +12 -7
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/SOURCES.txt +9 -0
- developer_disk_image-0.0.4/developer_disk_image.egg-info/top_level.txt +2 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/pyproject.toml +10 -6
- developer_disk_image-0.0.4/tests/__init__.py +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/tests/test_repo.py +5 -0
- developer_disk_image-0.0.1/developer_disk_image.egg-info/top_level.txt +0 -4
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image/__init__.py +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/dependency_links.txt +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/entry_points.txt +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/requires.txt +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/requirements.txt +0 -0
- {developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/setup.cfg +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ "master" ]
|
|
17
|
+
pull_request:
|
|
18
|
+
# The branches below must be a subset of the branches above
|
|
19
|
+
branches: [ "master" ]
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '24 3 * * 6'
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
analyze:
|
|
25
|
+
name: Analyze
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
permissions:
|
|
28
|
+
actions: read
|
|
29
|
+
contents: read
|
|
30
|
+
security-events: write
|
|
31
|
+
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
language: [ 'python' ]
|
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
37
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
38
|
+
|
|
39
|
+
steps:
|
|
40
|
+
- name: Checkout repository
|
|
41
|
+
uses: actions/checkout@v3
|
|
42
|
+
|
|
43
|
+
# Initializes the CodeQL tools for scanning.
|
|
44
|
+
- name: Initialize CodeQL
|
|
45
|
+
uses: github/codeql-action/init@v2
|
|
46
|
+
with:
|
|
47
|
+
languages: ${{ matrix.language }}
|
|
48
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
49
|
+
# By default, queries listed here will override any specified in a config file.
|
|
50
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
51
|
+
|
|
52
|
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
53
|
+
# queries: security-extended,security-and-quality
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
57
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
58
|
+
- name: Autobuild
|
|
59
|
+
uses: github/codeql-action/autobuild@v2
|
|
60
|
+
|
|
61
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
62
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
63
|
+
|
|
64
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
65
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
66
|
+
|
|
67
|
+
# - run: |
|
|
68
|
+
# echo "Run, Build Application using script"
|
|
69
|
+
# ./location_of_script_within_repo/buildscript.sh
|
|
70
|
+
|
|
71
|
+
- name: Perform CodeQL Analysis
|
|
72
|
+
uses: github/codeql-action/analyze@v2
|
|
73
|
+
with:
|
|
74
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Python application
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ '**' ]
|
|
9
|
+
pull_request:
|
|
10
|
+
# The branches below must be a subset of the branches above
|
|
11
|
+
branches: [ "master" ]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13" ]
|
|
20
|
+
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v3
|
|
24
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
25
|
+
uses: actions/setup-python@v4
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
- name: Lint with flake8
|
|
29
|
+
run: |
|
|
30
|
+
python -m pip install flake8
|
|
31
|
+
flake8 . --max-complexity=10 --max-line-length 127
|
|
32
|
+
- name: Verify sorted imports
|
|
33
|
+
run: |
|
|
34
|
+
python -m pip install isort
|
|
35
|
+
isort . -m HANGING_INDENT -l 120 --check-only
|
|
36
|
+
- name: Test install
|
|
37
|
+
run: |
|
|
38
|
+
python -m pip install --upgrade pip
|
|
39
|
+
python -m pip install -U .
|
|
40
|
+
- name: Test
|
|
41
|
+
run: |
|
|
42
|
+
python -m pip install --upgrade pytest
|
|
43
|
+
python -m pytest -vvvv
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# This workflows will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
name: Upload Python Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
deploy:
|
|
12
|
+
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v3
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v4
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.x'
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install --upgrade pip
|
|
24
|
+
pip install -U build setuptools wheel twine
|
|
25
|
+
- name: Build and publish
|
|
26
|
+
env:
|
|
27
|
+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
28
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
29
|
+
run: |
|
|
30
|
+
python -m build
|
|
31
|
+
twine upload dist/*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: developer_disk_image
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Download DeveloperDiskImage ans Personalized images from GitHub
|
|
5
5
|
Author-email: doronz88 <doron88@gmail.com>
|
|
6
6
|
Maintainer-email: doronz88 <doron88@gmail.com>
|
|
@@ -10,14 +10,19 @@ Keywords: ios,DeveloperDiskImage
|
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.9
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
21
|
+
Requires-Dist: requests
|
|
20
22
|
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest; extra == "test"
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/developer_disk_image/ "PyPi package")
|
|
21
26
|
|
|
22
27
|
# Overview
|
|
23
28
|
|
|
@@ -30,8 +35,8 @@ Store both types of Apple's DeveloperDiskImage files:
|
|
|
30
35
|
- `BuildManifest.plist`
|
|
31
36
|
- Trustcache
|
|
32
37
|
|
|
33
|
-
The split of the new format is requires for OS* other
|
|
34
|
-
inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
38
|
+
The split of the new format is requires for OS* other than macOS that will have trouble extracting the original APFS
|
|
39
|
+
image inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
35
40
|
|
|
36
41
|
# Python package
|
|
37
42
|
|
|
@@ -39,7 +44,7 @@ Additionally, this repo provides a python API for accessing this repository.
|
|
|
39
44
|
You can install it as follows:
|
|
40
45
|
|
|
41
46
|
```shell
|
|
42
|
-
python3 -m pip install developer_disk_image
|
|
47
|
+
python3 -m pip install -U developer_disk_image
|
|
43
48
|
```
|
|
44
49
|
|
|
45
50
|
## Example usage
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://pypi.org/project/developer_disk_image/ "PyPi package")
|
|
2
|
+
|
|
1
3
|
# Overview
|
|
2
4
|
|
|
3
5
|
Store both types of Apple's DeveloperDiskImage files:
|
|
@@ -9,8 +11,8 @@ Store both types of Apple's DeveloperDiskImage files:
|
|
|
9
11
|
- `BuildManifest.plist`
|
|
10
12
|
- Trustcache
|
|
11
13
|
|
|
12
|
-
The split of the new format is requires for OS* other
|
|
13
|
-
inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
14
|
+
The split of the new format is requires for OS* other than macOS that will have trouble extracting the original APFS
|
|
15
|
+
image inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
14
16
|
|
|
15
17
|
# Python package
|
|
16
18
|
|
|
@@ -18,7 +20,7 @@ Additionally, this repo provides a python API for accessing this repository.
|
|
|
18
20
|
You can install it as follows:
|
|
19
21
|
|
|
20
22
|
```shell
|
|
21
|
-
python3 -m pip install developer_disk_image
|
|
23
|
+
python3 -m pip install -U developer_disk_image
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
## Example usage
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# file generated by setuptools_scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '0.0.4'
|
|
16
|
+
__version_tuple__ = version_tuple = (0, 0, 4)
|
|
@@ -5,6 +5,8 @@ from typing import Mapping, Optional
|
|
|
5
5
|
|
|
6
6
|
import requests
|
|
7
7
|
|
|
8
|
+
from developer_disk_image.exceptions import GithubRateLimitExceededError
|
|
9
|
+
|
|
8
10
|
DEVELOPER_DISK_IMAGE_REPO_TREE_URL = \
|
|
9
11
|
'https://api.github.com/repos/doronz88/DeveloperDiskImage/git/trees/main?recursive=true'
|
|
10
12
|
|
|
@@ -23,9 +25,9 @@ class PersonalizedImage:
|
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
class DeveloperDiskImageRepository:
|
|
26
|
-
@
|
|
27
|
-
def create() -> 'DeveloperDiskImageRepository':
|
|
28
|
-
return
|
|
28
|
+
@classmethod
|
|
29
|
+
def create(cls) -> 'DeveloperDiskImageRepository':
|
|
30
|
+
return cls(cls._query(DEVELOPER_DISK_IMAGE_REPO_TREE_URL)['tree'])
|
|
29
31
|
|
|
30
32
|
def __init__(self, tree: Mapping):
|
|
31
33
|
self._path_urls = {}
|
|
@@ -52,4 +54,11 @@ class DeveloperDiskImageRepository:
|
|
|
52
54
|
url = self._path_urls.get(path, {}).get('url')
|
|
53
55
|
if url is None:
|
|
54
56
|
return None
|
|
55
|
-
return base64.b64decode(
|
|
57
|
+
return base64.b64decode(self._query(url)['content'])
|
|
58
|
+
|
|
59
|
+
@staticmethod
|
|
60
|
+
def _query(url: str) -> Mapping:
|
|
61
|
+
response = json.loads(requests.get(url).text)
|
|
62
|
+
if response.get('message', '').startswith('API rate limit exceeded'):
|
|
63
|
+
raise GithubRateLimitExceededError()
|
|
64
|
+
return response
|
{developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.0.
|
|
2
|
+
Name: developer_disk_image
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Download DeveloperDiskImage ans Personalized images from GitHub
|
|
5
5
|
Author-email: doronz88 <doron88@gmail.com>
|
|
6
6
|
Maintainer-email: doronz88 <doron88@gmail.com>
|
|
@@ -10,14 +10,19 @@ Keywords: ios,DeveloperDiskImage
|
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.9
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
21
|
+
Requires-Dist: requests
|
|
20
22
|
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest; extra == "test"
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/developer_disk_image/ "PyPi package")
|
|
21
26
|
|
|
22
27
|
# Overview
|
|
23
28
|
|
|
@@ -30,8 +35,8 @@ Store both types of Apple's DeveloperDiskImage files:
|
|
|
30
35
|
- `BuildManifest.plist`
|
|
31
36
|
- Trustcache
|
|
32
37
|
|
|
33
|
-
The split of the new format is requires for OS* other
|
|
34
|
-
inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
38
|
+
The split of the new format is requires for OS* other than macOS that will have trouble extracting the original APFS
|
|
39
|
+
image inside: `~/Library/Developer/DeveloperDiskImages`.
|
|
35
40
|
|
|
36
41
|
# Python package
|
|
37
42
|
|
|
@@ -39,7 +44,7 @@ Additionally, this repo provides a python API for accessing this repository.
|
|
|
39
44
|
You can install it as follows:
|
|
40
45
|
|
|
41
46
|
```shell
|
|
42
|
-
python3 -m pip install developer_disk_image
|
|
47
|
+
python3 -m pip install -U developer_disk_image
|
|
43
48
|
```
|
|
44
49
|
|
|
45
50
|
## Example usage
|
{developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/SOURCES.txt
RENAMED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
MANIFEST.in
|
|
1
3
|
README.md
|
|
2
4
|
pyproject.toml
|
|
3
5
|
requirements.txt
|
|
6
|
+
.github/ISSUE_TEMPLATE/feature_request.md
|
|
7
|
+
.github/workflows/codeql.yml
|
|
8
|
+
.github/workflows/python-app.yml
|
|
9
|
+
.github/workflows/python-publish.yml
|
|
4
10
|
developer_disk_image/__init__.py
|
|
11
|
+
developer_disk_image/_version.py
|
|
12
|
+
developer_disk_image/exceptions.py
|
|
5
13
|
developer_disk_image/repo.py
|
|
6
14
|
developer_disk_image.egg-info/PKG-INFO
|
|
7
15
|
developer_disk_image.egg-info/SOURCES.txt
|
|
@@ -9,4 +17,5 @@ developer_disk_image.egg-info/dependency_links.txt
|
|
|
9
17
|
developer_disk_image.egg-info/entry_points.txt
|
|
10
18
|
developer_disk_image.egg-info/requires.txt
|
|
11
19
|
developer_disk_image.egg-info/top_level.txt
|
|
20
|
+
tests/__init__.py
|
|
12
21
|
tests/test_repo.py
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "developer_disk_image"
|
|
3
|
-
version = "0.0.1"
|
|
4
3
|
description = "Download DeveloperDiskImage ans Personalized images from GitHub"
|
|
5
4
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.
|
|
5
|
+
requires-python = ">=3.9"
|
|
7
6
|
license = { file = "LICENSE" }
|
|
8
7
|
keywords = ["ios", "DeveloperDiskImage"]
|
|
9
8
|
authors = [
|
|
@@ -16,13 +15,14 @@ classifiers = [
|
|
|
16
15
|
"Development Status :: 5 - Production/Stable",
|
|
17
16
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
18
17
|
"Programming Language :: Python :: 3",
|
|
19
|
-
"Programming Language :: Python :: 3.8",
|
|
20
18
|
"Programming Language :: Python :: 3.9",
|
|
21
19
|
"Programming Language :: Python :: 3.10",
|
|
22
20
|
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
24
24
|
]
|
|
25
|
-
dynamic = ["dependencies"]
|
|
25
|
+
dynamic = ["dependencies", "version"]
|
|
26
26
|
|
|
27
27
|
[project.optional-dependencies]
|
|
28
28
|
test = ["pytest"]
|
|
@@ -35,11 +35,15 @@ test = ["pytest"]
|
|
|
35
35
|
developer_disk_image = "developer_disk_image.__main__:cli"
|
|
36
36
|
|
|
37
37
|
[tool.setuptools.packages.find]
|
|
38
|
-
exclude = ["docs*", "tests*"]
|
|
38
|
+
exclude = ["docs*", "tests*", "PersonalizedImages*", "DeveloperDiskImages*"]
|
|
39
39
|
|
|
40
40
|
[tool.setuptools.dynamic]
|
|
41
41
|
dependencies = { file = ["requirements.txt"] }
|
|
42
|
+
version = { attr = "developer_disk_image._version.__version__" }
|
|
43
|
+
|
|
44
|
+
[tool.setuptools_scm]
|
|
45
|
+
version_file = "developer_disk_image/_version.py"
|
|
42
46
|
|
|
43
47
|
[build-system]
|
|
44
|
-
requires = ["setuptools>=43.0.0", "wheel"]
|
|
48
|
+
requires = ["setuptools>=43.0.0", "setuptools_scm>=8", "wheel"]
|
|
45
49
|
build-backend = "setuptools.build_meta"
|
|
File without changes
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from developer_disk_image.exceptions import GithubRateLimitExceededError
|
|
1
4
|
from developer_disk_image.repo import DeveloperDiskImageRepository
|
|
2
5
|
|
|
3
6
|
|
|
7
|
+
@pytest.mark.xfail(raises=GithubRateLimitExceededError)
|
|
4
8
|
def test_developer_disk_image():
|
|
5
9
|
repo = DeveloperDiskImageRepository.create()
|
|
6
10
|
assert repo.get_developer_disk_image('16.4') is not None
|
|
7
11
|
assert repo.get_developer_disk_image('16.4aaaa') is None
|
|
8
12
|
|
|
9
13
|
|
|
14
|
+
@pytest.mark.xfail(raises=GithubRateLimitExceededError)
|
|
10
15
|
def test_personalized_disk_image():
|
|
11
16
|
repo = DeveloperDiskImageRepository.create()
|
|
12
17
|
assert repo.get_personalized_disk_image() is not None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{developer_disk_image-0.0.1 → developer_disk_image-0.0.4}/developer_disk_image.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|