From irv at furrypants.com Fri Aug 5 13:43:51 2022 From: irv at furrypants.com (irv furrypants.com) Date: Fri, 5 Aug 2022 17:43:51 +0000 Subject: [Baypiggies] Help with creating Python-based Mac Application Message-ID: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Hi, I have been developing a large Python-based game using the pygame package. The development of the game is going well - it's almost ready to show. I am at the point where I am trying to turn this into a single file application. I've worked through all the documentation using PyInstaller to do this. The good news is that I can now build a Windows application. But I've found that building a Mac application is quite a bit more complicated. I can build the Mac application and it runs fine ... on my computer. But it won't run on any other Mac. This is because of a relatively new safety feature of the Mac called GateKeeper. In order to run on other Macs now, applications need to be "signed" by the developer. So I've paid my $99 to become an official Apple developer. But I am lost trying to read through all the documentation from both Apple and PyInstaller (using ".spec" files) about how to use the Apple Developer ID and "certificates". Apple's documentation is all about how to use Xcode - which I'm not using. It's completely unclear to me what steps I have to do to sign my application. I'm asking if anyone here has gone through the process of turning a Python program into a Mac executable and wouldn't mind spending some time with me (via Zoom) to help me get this done. If you are interested in helping, please contact me off list at: Irv at furrypants.com Thanks in advance, Irv -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlfxbroker at gmail.com Fri Aug 5 14:01:50 2022 From: mlfxbroker at gmail.com (Mike Smith) Date: Fri, 5 Aug 2022 11:01:50 -0700 Subject: [Baypiggies] Help with creating Python-based Mac Application In-Reply-To: References: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Message-ID: Have not, but interested in volunteering. Especially in AI, Cloud, any takers? On Fri, Aug 5, 2022, 10:44 irv furrypants.com wrote: > Hi, > > I have been developing a large Python-based game using the pygame > package. The development of the game is going well - it's almost ready to > show. > > I am at the point where I am trying to turn this into a single file > application. I've worked through all the documentation using PyInstaller > to do this. The good news is that I can now build a Windows application. > > But I've found that building a Mac application is quite a bit more > complicated. I can build the Mac application and it runs fine ... on my > computer. But it won't run on any other Mac. This is because of a > relatively new safety feature of the Mac called GateKeeper. In order to > run on other Macs now, applications need to be "signed" by the developer. > > So I've paid my $99 to become an official Apple developer. But I am lost > trying to read through all the documentation from both Apple and > PyInstaller (using ".spec" files) about how to use the Apple Developer ID > and "certificates". Apple's documentation is all about how to use Xcode - > which I'm not using. It's completely unclear to me what steps I have to do > to sign my application. > > I'm asking if anyone here has gone through the process of turning a Python > program into a Mac executable and wouldn't mind spending some time with me > (via Zoom) to help me get this done. > > If you are interested in helping, please contact me off list at: > Irv at furrypants.com > > Thanks in advance, > > Irv > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deirdre at deirdre.net Fri Aug 5 14:03:17 2022 From: deirdre at deirdre.net (Deirdre Saoirse Moen) Date: Fri, 05 Aug 2022 11:03:17 -0700 Subject: [Baypiggies] Help with creating Python-based Mac Application In-Reply-To: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> References: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Message-ID: On Fri, Aug 5, 2022, at 10:43 AM, irv furrypants.com wrote: > But I've found that building a Mac application is quite a bit more > complicated. I can build the Mac application and it runs fine ... on > my computer. But it won't run on any other Mac. This is because of a > relatively new safety feature of the Mac called GateKeeper. In order > to run on other Macs now, applications need to be "signed" by the > developer. Right, everything's got to be signed if it's running on a "non-blessed" system. (You can add specific devices that'll load development or enterprise builds in the developer portal if you just want to add another device for testing.) Partly this is because each app is now run in a chrooted space in its own sandbox. You can share some parts of sandboxes between different apps you create, but it of course doesn't know what's "yours" until you sign it. > So I've paid my $99 to become an official Apple developer. But I am > lost trying to read through all the documentation from both Apple and > PyInstaller (using ".spec" files) about how to use the Apple Developer > ID and "certificates". Apple's documentation is all about how to use > Xcode - which I'm not using. It's completely unclear to me what steps > I have to do to sign my application. These days, I'm a Swift developer, so I only know how to do the signing via Xcode (Product -> Archive after setting the target to the "Any Mac" generic device). I'll look after work and see if there's some command-line utility that may help you. What tools are you using to creating your app (other than PyInstaller)? > I'm asking if anyone here has gone through the process of turning a > Python program into a Mac executable and wouldn't mind spending some > time with me (via Zoom) to help me get this done. I deal with Gatekeeper several times a day, so that part I know, but haven't tried it in a non-canonical language. Offhand, the only app I can think of that uses Python to create an app was the Zelda clone, but the repo's so big that each segment is zipped: https://github.com/clear-code-projects/Zelda - and I don't know if it was a signed app to begin with. Deirdre From mlfxbroker at gmail.com Fri Aug 5 14:14:06 2022 From: mlfxbroker at gmail.com (Mike Smith) Date: Fri, 5 Aug 2022 11:14:06 -0700 Subject: [Baypiggies] Help with creating Python-based Mac Application In-Reply-To: References: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Message-ID: Irv I am interested what type of algos is your game using? Game theory? Reinforcement learning, neural networks, etc? On Fri, Aug 5, 2022, 11:04 Deirdre Saoirse Moen wrote: > On Fri, Aug 5, 2022, at 10:43 AM, irv furrypants.com wrote: > > But I've found that building a Mac application is quite a bit more > > complicated. I can build the Mac application and it runs fine ... on > > my computer. But it won't run on any other Mac. This is because of a > > relatively new safety feature of the Mac called GateKeeper. In order > > to run on other Macs now, applications need to be "signed" by the > > developer. > > Right, everything's got to be signed if it's running on a "non-blessed" > system. (You can add specific devices that'll load development or > enterprise builds in the developer portal if you just want to add another > device for testing.) > > Partly this is because each app is now run in a chrooted space in its own > sandbox. You can share some parts of sandboxes between different apps you > create, but it of course doesn't know what's "yours" until you sign it. > > > So I've paid my $99 to become an official Apple developer. But I am > > lost trying to read through all the documentation from both Apple and > > PyInstaller (using ".spec" files) about how to use the Apple Developer > > ID and "certificates". Apple's documentation is all about how to use > > Xcode - which I'm not using. It's completely unclear to me what steps > > I have to do to sign my application. > > These days, I'm a Swift developer, so I only know how to do the signing > via Xcode (Product -> Archive after setting the target to the "Any Mac" > generic device). I'll look after work and see if there's some command-line > utility that may help you. > > What tools are you using to creating your app (other than PyInstaller)? > > > I'm asking if anyone here has gone through the process of turning a > > Python program into a Mac executable and wouldn't mind spending some > > time with me (via Zoom) to help me get this done. > > I deal with Gatekeeper several times a day, so that part I know, but > haven't tried it in a non-canonical language. > > Offhand, the only app I can think of that uses Python to create an app was > the Zelda clone, but the repo's so big that each segment is zipped: > https://github.com/clear-code-projects/Zelda - and I don't know if it was > a signed app to begin with. > > Deirdre > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > https://mail.python.org/mailman/listinfo/baypiggies > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasan.diwan at gmail.com Fri Aug 5 14:35:54 2022 From: hasan.diwan at gmail.com (Hasan Diwan) Date: Fri, 5 Aug 2022 11:35:54 -0700 Subject: [Baypiggies] Help with creating Python-based Mac Application In-Reply-To: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> References: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Message-ID: Irv, On Fri, 5 Aug 2022 at 10:44, irv furrypants.com wrote: > I am at the point where I am trying to turn this into a single file > application. I've worked through all the documentation using PyInstaller > to do this. The good news is that I can now build a Windows application. > https://gist.github.com/pudquick/1495f9a8b0c5f4c73bbe was helpful the last time I embedded python into an OS X python application. -- H -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest *. Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest *. Sent from my mobile device Envoye de mon portable -------------- next part -------------- An HTML attachment was scrubbed... URL: From deirdre at deirdre.net Fri Aug 5 15:01:54 2022 From: deirdre at deirdre.net (Deirdre Saoirse Moen) Date: Fri, 05 Aug 2022 12:01:54 -0700 Subject: [Baypiggies] Help with creating Python-based Mac Application In-Reply-To: References: <0E59F027-86AE-4EFB-8BD7-D5D5855806E1@furrypants.com> Message-ID: <82efd210-0548-4e82-8f6c-bd9d1fe25e50@www.fastmail.com> On Fri, Aug 5, 2022, at 11:35 AM, Hasan Diwan wrote: > https://gist.github.com/pudquick/1495f9a8b0c5f4c73bbe was helpful the > last time I embedded python into an OS X python application. -- H Sadly, it is incredibly out of date. For example: % ls -l /System/Library/Frameworks/Py* zsh: no matches found: /System/Library/Frameworks/Py* % which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python % which python3 /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 Note that they've moved from /System/Library to /Library and has been specifically stated that, at some point in the future, they will not ship with the OS. Things in /System are considered core parts of the OS, so basically Python (and Ruby) have been demoted to "useful stuff." This is both a blessing and a curse: it's one more thing a Python dev has to do to get an app shipped, but it also means your system won't break if/when you upgrade Python. Also, those examples are in ObjC, and I haven't seen anyone starting new ObjC projects in years. Deirdre From grace at pybay.com Mon Aug 22 18:46:13 2022 From: grace at pybay.com (Grace Law) Date: Mon, 22 Aug 2022 15:46:13 -0700 Subject: [Baypiggies] Want to test better but need some guidance? Ask these PyTest and Automation experts now Message-ID: Pythonistas, Have you experienced the frustration of poorly tested software? The pain from dissatisfied customers, delayed product launches, excessive expense? Want to test better but don?t know how or who to ask? Sweat no more! A Testing Panel is happening at PyBay2022 , and you get to ask these authorities, many of them are PyTest experts, your testing questions ? NOW! That?s right, your community organizers thought, talks are great, but what is even better is a Testing Panel where you, yes you? can potentially ask our testing panelists, about your testing problems! Some potential questions: - When is it okay to not test? - When to use test databases / api?s or mocked objects? Which do you prefer? - How do you justify the testing budget to your boss? - See questions and how people are voting live Please vote up and suggest questions for our panelists by August 27 What?s PyBay2022? How else can I participate? *Glad you asked *? PyBay2022 is the *7th annual regional Python conference* on Saturday, September 10. It is happening OUTDOORS in San Francisco?s premier food truck park and ONLINE. It is your day to learn the latest in Python, update your skills, and network with other Pythonistas. Enjoy 25 talks from Python luminaries such as Simon Willison, Siddha Ganju, Yury Selivanov, Glyph Lefkowitz, Robert Nishihara? Play with new software tools built for Python developers, meet hiring companies, win books? (yours truly Jeff Fischer is managing this and book signing ? ) This testing panel is possible because the sponsors below have helped us expand the conference to two-tracks Anthropic is a public benefit corporation dedicated to building and studying reliable, interpretable, and steerable AI systems. State-of-the-art large language models are remarkably capable in a wide range of domains, but can also be unpredictable, unreliable, and opaque; so their research areas include natural language , human feedback , scaling laws , reinforcement learning, code generation, and interpretability . For now, they?re primarily focused on research and bottlenecked on engineering capacity. Anthropic is a fantastic company to work for, in-person or remote, if you?re a Python engineer that?s interested in doing lots of research, or a researcher who does lots of engineering. They also value testing: one of our panelists, Zac Hatfield Dodds, maintainer of pyTest has recently relocated from Australia to the Bay Area to work for Anthropic. If that sounds interesting ? join our Bronze Sponsor Anthropic! ------------------------------ Confluent is another company doing amazing things with data that made the testing panel possible via their Silver sponsorship. Interested in learning about event streaming? Come and visit Confluent Developer at developer.confluent.io and find out all about Apache Kafka? and Confluent. You?ll find more than a dozen free training courses in easy-to-consume modules, along with tutorials, code samples, articles and more. Whether you?re just getting started or looking to take your Kafka skills to the next level, Confluent Developer has what you?re looking for! Confluent also has a conference where data professionals come to learn about data streaming on Oct 4?5 in Austin Texas. Learn more and register now Can?t wait to sharpen your Python and testing skills? * Grace and your dedicated **team of volunteers* * at PyBay2022* PyBay2022 is possible because of these sponsors Many are hiring and building amazing tools for Python developers. Some are exhibiting at PyBay too. Please thank them by learning more about them and letting your friends know! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.fischer at gmail.com Tue Aug 23 10:34:05 2022 From: jeffrey.fischer at gmail.com (Jeff Fischer) Date: Tue, 23 Aug 2022 07:34:05 -0700 Subject: [Baypiggies] BayPiggies this Thursday: Observability, Accessibility Message-ID: Thursday August 25th 2022 7:00 pm to 8:30 pm We hope you had a relaxing summer! This month, we'll have a talk by Roni Dover on open source software for observability (system monitoring for DevOps). We also have a lightning talk about Accessibility by Joel Dodson. Lightning talk: *Accessibility and Python* by Joel Dodson I've been in the telecom/communications industry over 25 years as a developer, technical lead, architect and manager. I lost my sight in 2017 and was thrust into the world of accessibility. My career was focused on building backend systems. For accessibility now, I'm focused on learning the frontend. Python was never my primary language, it was always more a way to "Automate the Boring Stuff." I have fully embraced it now as a blind developer partly because the screen reader I use (NVDA, https://www.nvaccess.org/) is written mainly in Python. I also find Python to be a great way to optimize my workflow. Main Talk: *Python Observability and OpenTelemetry* by Roni Dover Main Talk Abstract Continuous Feedback is a new dev practice, that addresses a gap in the dev to prod cycle. While a considerable amount of data is collected about the application and its behavior it prod, very little of that is effectively put to use when we write code By using OpenTelemetry, as well as other open-source tools and platforms, developers can leverage metrics and traces to challenge code assumptions and develop for real-world requirements in an evidence-based manner, extending code ownership all the way to production and beyond. Observability, after all, can be about more than pretty dashboards. This talk is relevant to any Python Developer or DevOps practitioner seeking to understand how to use current observability technologies effectively in a way that can make an impact on the dev process and improve code quality. We'll explore practical techniques, tools, and practices that can be combined to create a Continuous Feedback pipeline. Speaker Bio: Roni Dover Holistic developer and software builder with a passion for development processes and methodologies. Over the past two decades, Roni Dover was focused on incepting, building, and scaling great products including Torque, an IAC Control Plane, and CloudShell, a platform for 'as-a-service' provisioning of environments. Currently building something exciting and new at digma.ai *RSVP* Please RSVP at https://www.meetup.com/baypiggies/events/287858237/. We will conduct the meeting via Zoom meeting. When you RSVP "Yes" to this event, the link to the Zoom meeting will become visible in MeetUp. *Code of Conduct* https://baypiggies.net/pages/code_of_conduct.html Interactions online have less nuance than in-person interactions. Please be Open, Considerate and Respectful. Also, please refrain from discussing topics unrelated to the Python community or the technical content of the meeting. -------------- next part -------------- An HTML attachment was scrubbed... URL: