Skip to content

Commit

Permalink
Evergreening - August 2023 (#45)
Browse files Browse the repository at this point in the history
* Toolchain and dependencies refresh

* Apple frameworks list update per Xcode 15 beta

* Update CHANGELOG.md and version bump

* Enforcing urllib3 version for codecov script
  • Loading branch information
matsoftware committed Aug 18, 2023
1 parent 09a85ff commit d05f77f
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.4](https://github.com/matsoftware/swift-code-metrics/releases/tag/1.5.4) - 2023-08-18

### Fixed

- [PR-45](https://github.com/matsoftware/swift-code-metrics/pull/45) Apple frameworks list update per Xcode 15 beta and CI evergreening

## [1.5.3](https://github.com/matsoftware/swift-code-metrics/releases/tag/1.5.3) - 2023-03-17

### Fixed
Expand Down
12 changes: 8 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ set -e
top="$(dirname "$0")"
python3 -m venv "${top}"/venv

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install wheel
pip_install="${top}/venv/bin/python3 ${top}/venv/bin/pip3 install"

$pip_install --upgrade "pip>=23.0"

$pip_install wheel

if arch | grep -q 'arm64'; then
echo "Overriding pygraphviz setup for M1 architecture"
"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install --global-option=build_ext --global-option="-I$(brew --prefix graphviz)/include" --global-option="-L$(brew --prefix graphviz)/lib" pygraphviz
$pip_install --global-option=build_ext --global-option="-I$(brew --prefix graphviz)/include" --global-option="-L$(brew --prefix graphviz)/lib" pygraphviz
fi

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install -r requirements.txt
$pip_install -r requirements.txt

"${top}"/venv/bin/python3 "${top}"/venv/bin/pip3 install -r tests-requirements.txt
$pip_install -r tests-requirements.txt
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
long_description = fh.read()

install_requires = [
"matplotlib >= 2",
"adjustText < 1",
"matplotlib > 2",
"adjustText",
"pygraphviz > 1.5",
"pyfunctional >= 1.2",
"numpy >= 1.22.0",
"pyfunctional > 1.2",
"numpy > 1.22.0",
"dataclasses"
]

Expand Down
45 changes: 45 additions & 0 deletions swift_code_metrics/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,39 @@ class AnalyzerHelpers:
'Accelerate',
'Accessibility',
'Accounts',
'ActivityKit',
'AddressBook',
'AddressBookUI',
'AdServices',
'AdSupport',
'AGL',
'Algorithms',
'AppClip',
'AppKit',
'AppIntents',
'AppleArchive',
'AppleTextureEncoder',
'ApplicationServices',
'AppTrackingTransparency',
'ArgumentParser',
'ARKit',
'AssetsLibrary',
'Atomics',
'AudioToolbox',
'AudioUnit',
'AuthenticationServices',
'AutomatedDeviceEnrollment',
'AutomaticAssessmentConfiguration',
'AVFAudio',
'AVFoundation',
'AVKit',
'AVRouting',
'BackgroundTasks',
'BusinessChat',
'CallKit',
'CarPlay',
'CFNetwork',
'Cinematic',
'ClassKit',
'ClockKit',
'CloudKit',
Expand Down Expand Up @@ -76,19 +88,24 @@ class AnalyzerHelpers:
'CoreServices',
'CoreSpotlight',
'CoreTelephony',
'CoreTransferable',
'CoreText',
'CoreVideo',
'CoreWLAN',
'CreateML',
'CreateMLComponents',
'CryptoKit',
'CryptoTokenKit',
'DarwinNotify',
'DeveloperToolsSupport',
'DeviceActivity',
'DeviceCheck',
'DeviceDiscoveryExtension',
'DiskArbitration',
'Dispatch',
'Distributed',
'dnssd',
'DockKit',
'DriverKit',
'EndpointSecurity',
'EventKit',
Expand All @@ -97,6 +114,8 @@ class AnalyzerHelpers:
'ExecutionPolicy',
'ExposureNotification',
'ExternalAccessory',
'ExtensionFoundation',
'ExtensionKit',
'FamilyControls',
'FileProvider',
'FileProviderUI',
Expand All @@ -108,6 +127,7 @@ class AnalyzerHelpers:
'GameController',
'GameKit',
'GameplayKit',
'GenerateManual',
'GLKit',
'GroupActivities',
'GSS',
Expand All @@ -117,6 +137,7 @@ class AnalyzerHelpers:
'HTTPLiveStreaming',
'Hypervisor',
'iAd',
'ImageIO',
'InputMethodKit',
'IOBluetooth',
'IOBluetoothUI',
Expand All @@ -134,15 +155,23 @@ class AnalyzerHelpers:
'ManagedSettings',
'ManagedSettingsUI',
'MapKit',
'Matter',
'MatterSupport'
'MediaAccessibility',
'MediaLibrary',
'MediaPlayer',
'MediaSetup',
'Messages',
'MessageUI',
'Metal',
'MetalFX',
'MetalKit',
'MetalPerformanceShaders',
'MetalPerformanceShadersGraph',
'MetricKit',
'MLCompute',
'MobileCoreServices',
'ModelIO',
'MultipeerConnectivity',
'MusicKit',
'NaturalLanguage',
Expand All @@ -152,29 +181,40 @@ class AnalyzerHelpers:
'NetworkingDriverKit',
'NewsstandKit',
'NotificationCenter',
'networkext',
'ObjectiveC',
'OpenAL',
'OpenDirectory',
'OpenGL',
'os',
'os_object',
'ParavirtualizedGraphics',
'PassKit',
'PDFKit',
'PencilKit',
'PHASE',
'PhotoKit',
'ProximityReader',
'PushKit',
'PushToTalk',
'QTKit',
'QuartzCore',
'QuickLook',
'QuickLookThumbnailing',
'RealityKit',
'RegexBuilder',
'ReplayKit',
'RoomPlan',
'SafariServices',
'SafetyKit',
'SceneKit',
'ScreenCaptureKit',
'ScreenSaver',
'ScreenTime',
'Security',
'SecurityFoundation',
'SecurityInterface',
'SensitiveContentAnalysis',
'SensorKit',
'ServiceManagement',
'ShazamKit',
Expand All @@ -187,10 +227,14 @@ class AnalyzerHelpers:
'SpriteKit',
'StoreKit',
'StoreKitTest',
'SwiftData',
'SwiftUI',
'Symbols',
'System',
'SystemConfiguration',
'SystemExtensions',
'TabularData',
'ThreadNetwork'
'TVML',
'TVMLKit JS',
'TVMLKit',
Expand All @@ -210,6 +254,7 @@ class AnalyzerHelpers:
'WatchKit',
'WebKit',
'WidgetKit',
'WorkoutKit',
'XCTest',
'XPC'
]
Expand Down
2 changes: 1 addition & 1 deletion swift_code_metrics/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.5.3"
VERSION = "1.5.4"
5 changes: 3 additions & 2 deletions tests-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest
pytest-cov==2.5.0
pytest-cov
codecov
coverage
coverage
urllib3 <=1.26.15 # https://github.com/psf/requests/issues/6432#issuecomment-1535149114

0 comments on commit d05f77f

Please sign in to comment.