Skip to content
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

Update pyproject.toml and poetry.lock for python 3.6 #2564

Closed
phillxnet opened this issue Jun 1, 2023 · 1 comment
Closed

Update pyproject.toml and poetry.lock for python 3.6 #2564

phillxnet opened this issue Jun 1, 2023 · 1 comment

Comments

@phillxnet
Copy link
Member

phillxnet commented Jun 1, 2023

As part of our move to Python 3 we must first establish our new python 3 dependencies via Poetry. And resolve all issues re dependencies from there on. Along with resolving any Python 3 incompatibilities within our own code.

May involve spin-off issue/pull-request pairs.

phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 1, 2023
As part of our move to Python 3 we must first establish our
new python 3 dependencies via Poetry. And resolve all issues
re dependencies from there on.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 1, 2023
Python 3 no longer uses the "L" suffix:
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 1, 2023
Python 3 has more stringent import path requirements.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 2, 2023
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 2, 2023
Python 3 has more stringent import path requirements.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 2, 2023
md5.update(l)
TypeError: Unicode-objects must be encoded before hashing
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 2, 2023
There was a subtle file pointer behaviour change
between 2.7 and 3.6 which broke this mechanism.
Address TODO re custom opener re Python 3.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 3, 2023
"cmp" sorted parameter and buildin function dropped
in Python 3.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 3, 2023
"cmp" sorted parameter and builtin function dropped
in Python 3.
Partial fix as only Admin users showing - suspect unrelated
issue.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 3, 2023
Replace hard chardet dependency with soft
charset-normalizer also used by requests.
Removes redundant encoding on groupname already
encoded.
FroggyFlox added a commit to FroggyFlox/rockstor-core that referenced this issue Jun 3, 2023
FroggyFlox added a commit to FroggyFlox/rockstor-core that referenced this issue Jun 4, 2023
FroggyFlox added a commit to FroggyFlox/rockstor-core that referenced this issue Jun 4, 2023
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 5, 2023
…_runtime

Move UDEVADM and SHUTDOWN definitions to runtime constants rockstor#2564
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 5, 2023
…poetry.lock_for_python_3.6

Move passwd to str and use crypt.mksalt() to generate salt rockstor#2564
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 5, 2023
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 5, 2023
Move to more modern - time limited subprocess.run().
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 5, 2023
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
Includes prior TODO re ascii to utf-8 on SMART
custom options.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
Custom options autodev related byte assertion.
phillxnet added a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
As part of our move to Python 3 we must first establish our
initial python 3 dependencies via Poetry.

## Includes:
- Update pyproject.toml and poetry.lock for python 3.6.
- Remove int long designator from settings.py: Python 3
no longer uses the "L" suffix.
- Use full path in initial import conversions. Python 3
has more stringent import path requirements.
- Update imports for 3.6 email module. These differ in Python 3.
- Encode unicode line for system.osi.md5sum.
TypeError: Unicode-objects must be encoded before hashing
- Tidy/update init_sftp_config() re Python 3.
There was a subtle file pointer behaviour change
between 2.7 and 3.6 which broke this mechanism.
- Address TODO re custom opener re Python 3.
- Services page & Users page - Python 3 style sorted():
"cmp" sorted parameter and buildin function dropped
in Python 3.
- init fix of groups page by adaptation to str type.
- Replace chardet dependency with charset-normalizer:
also used by requests.
- Removes redundant encoding on already encoded groupname.
- Init dashboard fix via gevent/websocket update.
Thanks to @FroggyFlox for investigations here.
- Init fix of get_users() - non admin users did not show.
Move to more modern - time limited subprocess.run().
- fix samba, disk partition, rockon, re iteritems()
In Python 3 we use iter(d.items()) instead:
https://peps.python.org/pep-0469/
- Address TODO re ascii to utf-8 on SMART custom options.
- Untested bytecast in smart.py:
custom options autodev related byte assertion.
phillxnet pushed a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
phillxnet pushed a commit to phillxnet/rockstor-core that referenced this issue Jun 6, 2023
phillxnet added a commit that referenced this issue Jun 6, 2023
@phillxnet
Copy link
Member Author

Closing as:
Fixed by #2567

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

No branches or pull requests

1 participant