Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Python 3 #5

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Python 3 #5

wants to merge 9 commits into from

Conversation

wkitka
Copy link
Member

@wkitka wkitka commented Aug 20, 2020

Update lib-maxiv-maxwidgets to be compatible with Python 3.6, Taurus 4.7 and PyQt 5.

Copy link
Contributor

@beenje beenje left a comment

Choose a reason for hiding this comment

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

I think this repo should be updated to follow https://www.taurus-scada.org/devel/plugins.html

I also propose that we move it to gitlab.com. I can do that and we can continue the discussion on the MR there?
That would allow to add a .gitlab-ci.yml file.

@@ -1,4 +1,4 @@
[bdist_rpm]
Copy link
Contributor

Choose a reason for hiding this comment

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

We use fpm to generate the RPM and I don't think bdist_rpm is used anymore.
I'd remove that setup.cfg file.

from distutils.command.build_py import build_py as _build_py
from distutils.command.install_data import install_data as _install_data
from distutils.core import setup
Copy link
Contributor

Choose a reason for hiding this comment

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

distutils is deprecated and will be removed in Python 3.12: https://docs.python.org/3/library/distutils.html
setup should be imported from setuptools.

I also find all the extra things done in this setup.py quite hacky...

description='A collection of reusable Taurus widgets',
packages=packages,
package_dir={'maxwidgets': 'src'},
data_files=[('/etc/profile.d', [env_script])],
Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't think a python package should try to install something under /etc/profile.d.
This isn't gonna work if you install the package in a virtualenv.

It only works when using a RPM. That should be done in the RPM, not python package.

Plus I don't think setting TAURUSQTDESIGNERPATH is the proper way to add widgets to taurus today.
See https://www.taurus-scada.org/devel/plugins.html and https://gitlab.com/taurus-org/taurus_pyqtgraph as an example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants