Skip to content

Commit

Permalink
SwiftUI macOS Python Scripts run
Browse files Browse the repository at this point in the history
Leverage the swift python interop
  • Loading branch information
anupamchugh authored Aug 24, 2020
1 parent 53a310c commit 10bb0a8
Show file tree
Hide file tree
Showing 15 changed files with 1,421 additions and 0 deletions.
379 changes: 379 additions & 0 deletions PythonKitBasics/PythonKitBasics.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objects = {

/* Begin PBXBuildFile section */
1EB80FB024F3B6AB00EB9CBD /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EB80FAF24F3B6AB00EB9CBD /* AppDelegate.swift */; };
1EB80FB224F3B6AB00EB9CBD /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EB80FB124F3B6AB00EB9CBD /* ContentView.swift */; };
1EB80FB424F3B6AC00EB9CBD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1EB80FB324F3B6AC00EB9CBD /* Assets.xcassets */; };
1EB80FB724F3B6AC00EB9CBD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1EB80FB624F3B6AC00EB9CBD /* Preview Assets.xcassets */; };
1EB80FBA24F3B6AC00EB9CBD /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1EB80FB824F3B6AC00EB9CBD /* Main.storyboard */; };
1EB80FC424F3B85300EB9CBD /* PythonKit in Frameworks */ = {isa = PBXBuildFile; productRef = 1EB80FC324F3B85300EB9CBD /* PythonKit */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1EB80FAC24F3B6AB00EB9CBD /* PythonKitBasics.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PythonKitBasics.app; sourceTree = BUILT_PRODUCTS_DIR; };
1EB80FAF24F3B6AB00EB9CBD /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
1EB80FB124F3B6AB00EB9CBD /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
1EB80FB324F3B6AC00EB9CBD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
1EB80FB624F3B6AC00EB9CBD /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
1EB80FB924F3B6AC00EB9CBD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
1EB80FBB24F3B6AC00EB9CBD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
1EB80FBC24F3B6AC00EB9CBD /* PythonKitBasics.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = PythonKitBasics.entitlements; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
1EB80FA924F3B6AB00EB9CBD /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1EB80FC424F3B85300EB9CBD /* PythonKit in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
1EB80FA324F3B6AB00EB9CBD = {
isa = PBXGroup;
children = (
1EB80FAE24F3B6AB00EB9CBD /* PythonKitBasics */,
1EB80FAD24F3B6AB00EB9CBD /* Products */,
);
sourceTree = "<group>";
};
1EB80FAD24F3B6AB00EB9CBD /* Products */ = {
isa = PBXGroup;
children = (
1EB80FAC24F3B6AB00EB9CBD /* PythonKitBasics.app */,
);
name = Products;
sourceTree = "<group>";
};
1EB80FAE24F3B6AB00EB9CBD /* PythonKitBasics */ = {
isa = PBXGroup;
children = (
1EB80FAF24F3B6AB00EB9CBD /* AppDelegate.swift */,
1EB80FB124F3B6AB00EB9CBD /* ContentView.swift */,
1EB80FB324F3B6AC00EB9CBD /* Assets.xcassets */,
1EB80FB824F3B6AC00EB9CBD /* Main.storyboard */,
1EB80FBB24F3B6AC00EB9CBD /* Info.plist */,
1EB80FBC24F3B6AC00EB9CBD /* PythonKitBasics.entitlements */,
1EB80FB524F3B6AC00EB9CBD /* Preview Content */,
);
path = PythonKitBasics;
sourceTree = "<group>";
};
1EB80FB524F3B6AC00EB9CBD /* Preview Content */ = {
isa = PBXGroup;
children = (
1EB80FB624F3B6AC00EB9CBD /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
1EB80FAB24F3B6AB00EB9CBD /* PythonKitBasics */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1EB80FBF24F3B6AC00EB9CBD /* Build configuration list for PBXNativeTarget "PythonKitBasics" */;
buildPhases = (
1EB80FA824F3B6AB00EB9CBD /* Sources */,
1EB80FA924F3B6AB00EB9CBD /* Frameworks */,
1EB80FAA24F3B6AB00EB9CBD /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = PythonKitBasics;
packageProductDependencies = (
1EB80FC324F3B85300EB9CBD /* PythonKit */,
);
productName = PythonKitBasics;
productReference = 1EB80FAC24F3B6AB00EB9CBD /* PythonKitBasics.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
1EB80FA424F3B6AB00EB9CBD /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1160;
LastUpgradeCheck = 1160;
ORGANIZATIONNAME = "Anupam Chugh";
TargetAttributes = {
1EB80FAB24F3B6AB00EB9CBD = {
CreatedOnToolsVersion = 11.6;
};
};
};
buildConfigurationList = 1EB80FA724F3B6AB00EB9CBD /* Build configuration list for PBXProject "PythonKitBasics" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 1EB80FA324F3B6AB00EB9CBD;
packageReferences = (
1EB80FC224F3B85300EB9CBD /* XCRemoteSwiftPackageReference "PythonKit" */,
);
productRefGroup = 1EB80FAD24F3B6AB00EB9CBD /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
1EB80FAB24F3B6AB00EB9CBD /* PythonKitBasics */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
1EB80FAA24F3B6AB00EB9CBD /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1EB80FBA24F3B6AC00EB9CBD /* Main.storyboard in Resources */,
1EB80FB724F3B6AC00EB9CBD /* Preview Assets.xcassets in Resources */,
1EB80FB424F3B6AC00EB9CBD /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
1EB80FA824F3B6AB00EB9CBD /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1EB80FB224F3B6AB00EB9CBD /* ContentView.swift in Sources */,
1EB80FB024F3B6AB00EB9CBD /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
1EB80FB824F3B6AC00EB9CBD /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
1EB80FB924F3B6AC00EB9CBD /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
1EB80FBD24F3B6AC00EB9CBD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
1EB80FBE24F3B6AC00EB9CBD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
1EB80FC024F3B6AC00EB9CBD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = PythonKitBasics/PythonKitBasics.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_ASSET_PATHS = "\"PythonKitBasics/Preview Content\"";
DEVELOPMENT_TEAM = Q7392R2LCV;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = PythonKitBasics/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
PRODUCT_BUNDLE_IDENTIFIER = iowncode.com.PythonKitBasics;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
1EB80FC124F3B6AC00EB9CBD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = PythonKitBasics/PythonKitBasics.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_ASSET_PATHS = "\"PythonKitBasics/Preview Content\"";
DEVELOPMENT_TEAM = Q7392R2LCV;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = PythonKitBasics/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
PRODUCT_BUNDLE_IDENTIFIER = iowncode.com.PythonKitBasics;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
1EB80FA724F3B6AB00EB9CBD /* Build configuration list for PBXProject "PythonKitBasics" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1EB80FBD24F3B6AC00EB9CBD /* Debug */,
1EB80FBE24F3B6AC00EB9CBD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1EB80FBF24F3B6AC00EB9CBD /* Build configuration list for PBXNativeTarget "PythonKitBasics" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1EB80FC024F3B6AC00EB9CBD /* Debug */,
1EB80FC124F3B6AC00EB9CBD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
1EB80FC224F3B85300EB9CBD /* XCRemoteSwiftPackageReference "PythonKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/pvieito/PythonKit";
requirement = {
branch = master;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
1EB80FC324F3B85300EB9CBD /* PythonKit */ = {
isa = XCSwiftPackageProductDependency;
package = 1EB80FC224F3B85300EB9CBD /* XCRemoteSwiftPackageReference "PythonKit" */;
productName = PythonKit;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 1EB80FA424F3B6AB00EB9CBD /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Loading

0 comments on commit 10bb0a8

Please sign in to comment.