Skip to content

Future of this package #216

Open
5 of 5 issues completed
Open

Description

@lassoan

This package is very useful, thanks a lot for providing it! I would like to use it in a large open-source project (3D Slicer) but I'm not sure if I can rely on it in the long term, due to the followings:

  1. It seems that there have been no new tags (and releases on PyPI) for almost two years
  2. It is still not a native Python3, but patched using 2to3
  3. Large backlog of open issues and 10+ open pull requests

Could somebody provide information about current status and future plans for this package?

I see that there have been some recent commits, so I still have some hope. Thanks in advance!

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. cfarrow commented on Jul 23, 2020

    @cfarrow

    Hi Andras. I know of no long term plans for this package, except perhaps for users keeping it running for their use cases. The package can live on for a while in this self-service mode, but nice-to-haves like native python 3 support are not likely be prioritized.

    I do virtually no work on this package, as my job and personal life no longer involve coding. @vasily-v-ryabov does the bulk of reviewing and committing. I'd welcome a discussion about building a critical mass of contributors and admins for this project.

  2. lassoan commented on Jul 25, 2020

    @lassoan
    ContributorAuthor

    @cfarrow thanks a lot for the quick answer. @vasily-v-ryabov do you have any comments?

  3. vasily-v-ryabov commented on Jul 27, 2020

    @vasily-v-ryabov
    Collaborator

    Hi guys, I have some plans on diving deeper into the comtypes source code with potential improvements. My interest is mostly comtypes' usage in pywinauto as a dependency (we're already using it for few years). I'll try to explain my immediate interests and nice-to-have things which I can support as a reviewer.

    • I'm not pursuing better Python 2.x/3.x support, but can review/discuss it.
    • Running all unit tests on AppVeyor would be more helpful for potential contributors. It is also nice to have.
    • The most critical for now is new wheel versions support which is reported in both projects already. Hope to take this task in nearest two months if nobody takes care of it. It could be a reason for 1.1.8 version update.
    • I do want to debug some issues with 32-bit/64-bit Python / COM libraries that we have in pywinauto's backlog. This is medium priority for me, but there are a lot of high priority tasks in pywinauto which is also a hobby project in its turn. :)
    • Also I'm interested in more convenient packaging into a single executable (low priority for now, may be raised in the future) so I may think about on-the-fly code generation into a memory without saving to cache file or something like that.

    No more global things for now.

  4. lassoan commented on Jul 27, 2020

    @lassoan
    ContributorAuthor

    A new release would be important, because if there are no new releases then fixes and improvements will not get to users. It would be also important to merge pull request and review issues. Setting up AppVeyor would be nice because then pull requests could be more confidently merged.

    If there is a consensus that Python2 support can be dropped then updating the syntax for Python3 should not be hard, especially if there are automated tests. I can help with this, as we try to avoid depending libraries that are not updated to Python3.

  5. vasily-v-ryabov commented on Jul 27, 2020

    @vasily-v-ryabov
    Collaborator

    pywinauto is not planning to drop Py2.7 support. So I vote against it in comtypes as well. Also I'd prefer to keep comtypes a pure Python library (without any dependencies). We may think about six usage only, but I'm not sure it's so necessary.

  6. lassoan commented on Jul 27, 2020

    @lassoan
    ContributorAuthor

    pywinauto is not planning to drop Py2.7 support

    My understanding is that projects are actively encouraged to drop Python2 support before the end of 2020 to reduce frictions in the Python ecosystem (https://python3statement.org/). Anyway, if you are ready to pull the plug on Python2, then I'm ready to help with the update.

  7. vasily-v-ryabov commented on Jul 29, 2020

    @vasily-v-ryabov
    Collaborator

    I think it would be easy to make better Py2/Py3 support with already working AppVeyor tests. So making better CI is a fundamental task for further progress. Currently it is implemented as python setup.py test command which looks a bit old fashioned. And this command is not running on AppVeyor due to some failures in the full test set. I added some installation tests to AppVeyor a while ago. I'd appreciate if this work was continued.

  8. wkschwartz commented on Jul 30, 2020

    @wkschwartz
    Contributor

    I just wanted to contribute one user's voice to this discussion.

    1. I vote for the quote below. My use case is packaging apps using PyOxidizer. The apps depend on comtypes. I haven't gotten far enough down the rabbit hole of getting it to work to know whether comtypes needs to change for me to use PyOxidizer. I just wanted to let you know that's a use case I care about.

    Also I'm interested in more convenient packaging into a single executable (low priority for now, may be raised in the future) so I may think about on-the-fly code generation into a memory without saving to cache file or something like that.

    1. I care about CI/automated testing because it would give me confidence in comtypes' reliability, which matters a lot for my apps.
    2. On Python 2/3 in response to the quote below: Since Python 2 has died, perhaps it would be better to use future than six. Putting future; python_version <= "2.7" in setup.py's install_requires would burden the few remaining Python 2 users rather than the mass of Python 3 users.

    We may think about six usage only, but I'm not sure it's so necessary.

  9. nanonyme commented on Sep 9, 2020

    @nanonyme

    Even if there's no larger changes to the project done, it would be really great if #172 (or something equivalent) could be integrated and a new release could be done. Currently this project is randomly failing on Windows with new Python 3 versions which is causing issues with pywinauto. (which depends on this project for UIAutomation support) Afaik many other UI automation tools also use Windows UIAutomation through comtypes so they have the same problem.

  10. snoopyjc commented on Sep 9, 2020

    @snoopyjc

    Please let Python 2 die!

  11. nanonyme commented on Sep 9, 2020

    @nanonyme

    IMHO debating killing Python 2 is futile if the person who is more or less maintaining this project intents on keeping the support for now. This should not and must not mean halting improving the quality of this project on Python 3 though.

  12. vasily-v-ryabov commented on Dec 25, 2020

    @vasily-v-ryabov
    Collaborator

    comtypes==1.1.8 is out.

  13. junkmd commented on Jul 20, 2022

    @junkmd
    Collaborator

    A long time has passed since this issue was posted.

    And now,

    • comtypes==1.1.11 has been released and is coded Python3 native.
      • while still being backward compatible to 2.7
    • AppVeyor CI in each Python version now runs on PRs to the main branch.
      • it is only environment-independent, so Excel, Word, and other env-dependent testings are excluded.

    As I planned in #327, I am trying to tie the comtypes type definition system into Python's type hinting system.

    I think it is important to once again discuss plans in the future, and this issue is a good place to discuss it.

    What are participants thoughts on this now?

  14. vasily-v-ryabov commented on Aug 6, 2022

    @vasily-v-ryabov
    Collaborator

    Removing Py3.4 is OK to me. Even if someone has legacy Python 3.4 environment, there is a very low risk something is broken in comparison with 3.5 or even 3.6. But keeping Py2.7 covers more legacy users in my opinion. I would remove Py2.7 after 1 more year of support which shouldn't bother all us so much. For example, we can release comtypes 1.1.13 and 1.1.14 with Py2.7 support and then release comtypes 1.2.0 with Py3.6+ support only. So type hints are natively supported from some moment without any additional efforts.

  15. junkmd commented on Aug 21, 2022

    @junkmd
    Collaborator

    @vasily-v-ryabov

    I agree with your suggestion to support only Py 3.6+ when dropping Py 2.7.

    With Py3.6+, we can use the built-in typing.
    And enum module is also supported, which may be able to provide new features related to enumerations.

    I understood that it will be about a year later we release the version of Py2.7 dropped.

    I will develop this package according to that plan.

  16. 41 remaining items

  17. junkmd commented on Jul 20, 2024

    @junkmd
    Collaborator

    I believe that yanking should be done for more critical situations, such as when a vulnerability is discovered or when the package becomes unusable at all.

    If we yank versions solely because python_requires was not specified and might allow installation on unsupported Python versions, it could unnecessarily confuse users who are currently using those versions.

  18. junkmd commented on Sep 21, 2024

    @junkmd
    Collaborator

    An idea that might effectively clarify which versions of Python this package supports:

    As previously discussed, "classifiers are essentially useless", adding or removing the 'Programming Language :: Python :: 3.x' classifier every time this package drops support for older versions or starts supporting newer ones isn't ideal from a maintainability perspective.

    I came across this comment.
    In that discussion, it was pointed out that, although it's not as simple as setting up other badges, we can use a query to obtain the Requires-Python metadata and display it as a badge.

    A badge like this might be useful: PyPI Python Requires

    Any opinions would be appreciated.

  19. jaraco commented on Sep 21, 2024

    @jaraco
    Collaborator

    +1 to using Requires-Python and reflecting that in a badge.

  20. nanonyme commented on Sep 21, 2024

    @nanonyme

    That is correct. The classifiers are essentially useless and I recommend against using them except maybe to declare the major Python version, which today is just "3" and there's no likelihood of "4", so I just omit it.

    There is one point of classifiers which is basically "project is has CI testing against these Python versions". Then again, people typically add versions even if there's coverage gaps for interpreter versions... But the main point is that it may work on newer, it's just not been tested. Requires-Python is semantically different and just means you must not install on older than given version.

  21. junkmd commented on Sep 22, 2024

    @junkmd
    Collaborator

    A Requires-Python badge would also be effective, but what we might additionally need is a badge that shows the Python versions for which tests have passed in the CI pipeline.

    While researching a way to generate such a badge, I came across https://github.com/40ants/github-actions.
    However, it’s not as simple as the badge based on 'classifiers', like PyPI - Python Version.

    rendered badge image

  22. junkmd commented on Sep 23, 2024

    @junkmd
    Collaborator

    We have identified cases where comtypes may not work in Python 3.13, potentially due to changes in the implementation of ctypes, without modifying codebases or fixing bugs in CPython.
    Let's discuss this in #618.

  23. junkmd commented on Oct 26, 2024

    @junkmd
    Collaborator

    To support Python 3.13, version 1.4.8 includes changes to metaclass initialization.

    To prevent comtypes from breaking due to future ctypes changes, tests to ensure the functionality of the metaclasses used by this project were submitted as a PR (python/cpython#125881) on the cpython side and have been merged.

  24. junkmd commented on Dec 27, 2024

    @junkmd
    Collaborator

    I plan to release version 1.4.9 around January 7 or the following day, January 8, after the New Year holidays.

    Look forward to the new version, featuring some restored server functionalities and a modernized documentation.

    To the community: Have a wonderful holiday season!

  25. lessless commented on Mar 7, 2025

    @lessless

    Thanks for the amazing work @junkmd !

  26. junkmd commented on Dec 31, 2025

    @junkmd
    Collaborator

    Hi, comtypesers!

    Thanks for a great year!

    It’s been a pleasure working with you all. I hope you have a relaxing winter break.
    When we’re all back in action, please check out this issue and lend us a hand if you can: #894

    Best wishes for the New Year!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    shared_info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions