-
Notifications
You must be signed in to change notification settings - Fork 100
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
Allow for platform dependent builds #363
Conversation
@SaWey Sounds like a reasonable idea. However I couldn't find a documentation to |
Hi @stlehmann It doesn't have documentation as it is probably an internal function not really meant to be used like this. def has_ext_modules(self):
return self.ext_modules and len(self.ext_modules) > 0 The function looks to see if there are any external modules, as documented here: https://setuptools.pypa.io/en/latest/userguide/ext_modules.html
Since your library uses custom functions to build the ADS binary, setuptools fails to notice it is platform independent. |
Hi guys, @stlehmann can you work on a solution with the info @SaWey provided ? Another question, does the change in this pyads project has influence on the HA core builds? |
@BartDurnez once this change is published, HA needs to update its dependency to the latest version of this library before it will have an effect. |
Hi @stlehmann, @SaWey, @BartDurnez, |
Hi @SaWey ..
How can this custom wheel be installed be installed in my HA server? |
@stlehmann , thanks for merging this pull request! |
@stlehmann Thanks for the merge, any chance a new version can be released as well? |
It would be really great, if this would be released very soon. |
since implementing this change, pytest appears to fial on GitHub CI: @SaWey @drindal82 @martinius74 @BartDurnez you all seem quite motivated to have this released, any ideas how to fix this? |
The error starts with installing the dependencies:
When upgrading pluggy to version 1.3.0 my local test on python 3.10.12 is working:
|
ok, on it, will update...fool me for skipping pass the tick on the build report assuming it had installed dependencies OK |
any news on a release date? |
I'm getting issues building across all python versions, it appears that to support pluggy version 1.3, python 3.7 is not supported. Python 3.7 is EOL so I'm happy to drop direct support for it (or at least testing on CI etc), however this needs further work to do in the repo to cater for this before it can be released, and I'm struggling to find the time right now. |
I am however hoping things will free up in the next 4-6 weeks. |
ok thanks @chrisbeardy for the update. We are building our new house at the moment and I'm eager to start working with homeassistant and our twincat system. I will try to be more patient ;) |
I would also get on to home assistant, as this package always used to work with it and as you can see we haven't made a release in a while so they must have changed something their end. |
It probably is the pytest lib causing the failed builds. Would updating the github workflow this something like this work: - name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ ${{ matrix.python-version }} == '3.7' ]; then python -m pip install flake8 pytest coverage coveralls pytest-cov; fi
if [ ${{ matrix.python-version }} != '3.7' ]; then python -m pip install flake8 pytest==7.4.4 coverage coveralls pytest-cov; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
HA has changed the way they manage dependencies, which caused the problem on most systems. |
Version 3.4.0 has just been released to pypi so hopefully this fixes the home assistant issue |
Any News? Does it work with the new pypi version? |
Youll have to check in with home assistant for that to see when the new pyads pypi version will be integrated |
Ok thanks, but unfortunately I don't know how to do that. So I just have to wait. |
Maybe open an issue in the home assistant repo? |
i'll try my best, thanks for the hint |
Home Assistant has been having issues using this module in the last year(s).
The keep their own wheels repo and the automated system did not build platform dependent versions.
Since this module is building the adslib dependency in a special way, it goes unnoticed by setuptools.
The extra line added in this pull request mitigates the problem and creates a platform dependent filename for the wheel.