Skip to content

Allow enum datatypes to be set to their enum values #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olliesilvester
Copy link

Fixes #173

@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm[toml]>=8"]
requires = ["setuptools>=70.1", "setuptools_scm[toml]>=8"]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version was required for pytest to work in a devcontainer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep I have seen this issue recently. For reference, this is the error

$ pytest
ImportError while loading conftest '/workspaces/FastCS/tests/conftest.py'.
tests/conftest.py:17: in <module>
    from aioca import purge_channel_caches
/venv/lib/python3.11/site-packages/aioca/__init__.py:1: in <module>
    from epicscorelibs.ca.cadef import DBE_ALARM, DBE_LOG, DBE_PROPERTY, DBE_VALUE
/venv/lib/python3.11/site-packages/epicscorelibs/ca/cadef.py:22: in <module>
    from epicscorelibs import path
/venv/lib/python3.11/site-packages/epicscorelibs/path/__init__.py:4: in <module>
    from setuptools_dso.runtime import dylink_prepare_dso, find_dso
/venv/lib/python3.11/site-packages/setuptools_dso/__init__.py:10: in <module>
    from .dsocmd import DSO, Extension, install, build, build_dso, build_ext, bdist_egg
/venv/lib/python3.11/site-packages/setuptools_dso/dsocmd.py:26: in <module>
    _bdist_wheel = _import_bdist_wheel()
                   ^^^^^^^^^^^^^^^^^^^^^
/venv/lib/python3.11/site-packages/setuptools_dso/dsocmd.py:21: in _import_bdist_wheel
    from wheel.bdist_wheel import bdist_wheel
/venv/lib/python3.11/site-packages/wheel/bdist_wheel.py:4: in <module>
    warn(
E   DeprecationWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.

Could you split the pyproject change into a separate commit?

Copy link

codecov bot commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.30%. Comparing base (225dca8) to head (9d87481).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   92.28%   92.30%   +0.01%     
==========================================
  Files          40       40              
  Lines        2009     2014       +5     
==========================================
+ Hits         1854     1859       +5     
  Misses        155      155              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@olliesilvester
Copy link
Author

olliesilvester commented Aug 5, 2025

Discussed with @GDYendell : We think that solving #159 should fix #137 , so this PR may not be required. I will draft this PR for now, and then close it if we can fix it in that other way

@olliesilvester olliesilvester marked this pull request as draft August 5, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow enum attributes to be set to their values
3 participants