Bug 264079 - devel/py-oci: update to 2.68.0
Summary: devel/py-oci: update to 2.68.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dave Cottlehuber
URL: https://github.com/oracle/oci-python-...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-19 09:41 UTC by Alessandro Sagratini
Modified: 2022-05-23 12:19 UTC (History)
2 users (show)

See Also:


Attachments
trivial update of Makefile and distinfo (4.28 KB, application/mbox)
2022-05-19 09:41 UTC, Alessandro Sagratini
ale_sagra: maintainer-approval+
Details
trivial update of Makefile and distinfo (3.70 KB, patch)
2022-05-19 10:23 UTC, Alessandro Sagratini
ale_sagra: maintainer-approval+
Details | Diff
trivial update of Makefile and distinfo (4.22 KB, application/mbox)
2022-05-19 11:31 UTC, Alessandro Sagratini
no flags Details
trivial update of Makefile and distinfo (3.89 KB, application/mbox)
2022-05-20 04:49 UTC, Alessandro Sagratini
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Sagratini 2022-05-19 09:41:32 UTC
Created attachment 234031 [details]
trivial update of Makefile and distinfo
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-19 09:50:03 UTC
Patch didn't apply.

Applying: Updating oci tools
error: patch failed: devel/oci-cli/files/patch-setup.py:1
error: devel/oci-cli/files/patch-setup.py: patch does not apply
Patch failed at 0001 Updating oci tools
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Comment 2 Alessandro Sagratini 2022-05-19 09:54:59 UTC
interesting, what command did you run Koichiro? Patch was generated by running "git format-patch main", as explained here:

https://docs.freebsd.org/en/books/porters-handbook/upgrading/#git-diff
Comment 3 Alessandro Sagratini 2022-05-19 10:13:42 UTC
ok, I managed to reproduce the issue by running "git apply --check ..." command and attached patch file.

I am wondering if using git format-patch is still recommended to generate patch files? Or should I generate an unified diff with "git diff --staged > ../`make -VPKGNAME`.diff"?

Thank you,
Alessandro
Comment 4 Alessandro Sagratini 2022-05-19 10:23:32 UTC
Created attachment 234033 [details]
trivial update of Makefile and distinfo

Updating a unified diff
Comment 5 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-19 10:37:42 UTC
Gotcha! The patch you submitted in Bug 263098 was not committed as-is. Some minor modifications are made by dch@. When you create a new patch, please be sure to make it based clean git repo. Not your local state.
Comment 6 Alessandro Sagratini 2022-05-19 11:31:47 UTC
Created attachment 234034 [details]
trivial update of Makefile and distinfo
Comment 7 Alessandro Sagratini 2022-05-19 11:32:55 UTC
Hello Koichiro, 
thanks so much for your follow-up on this! I created a new patch: this time, running "git apply --check 0001-Updating-oci-tools.patch" shows no errors, could you please confirm everything looks good for you, too?

Thank you
Comment 8 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-19 14:38:52 UTC
(In reply to Alessandro Sagratini from comment #7)
Patch itself LGTM but it reverts deletions in devel/oci-cli/files/patch-setup.py. Some lines are deleted by dch@ (minor modifications). You and dch@ need to have a talk about that changes.

https://cgit.freebsd.org/ports/commit/?id=3ba9f4569c14a3fa44e1e46a53efe3164a1f92c4
Comment 9 Dave Cottlehuber freebsd_committer freebsd_triage 2022-05-19 20:29:55 UTC
thanks Koichiro! I'll clean up as needed and commit it shortly, if thats ok for you.
Comment 10 Dave Cottlehuber freebsd_committer freebsd_triage 2022-05-19 21:19:47 UTC
Alessandro - generally its not worth forcing the python dependencies so tightly
unless the port really really requires those specific versions. It will make
it very difficult for the py-cryptography maintainers, for example.

Given you're always updating oci-cli & py-oci in lockstep, we could simply
have:

...
-               ${PYTHON_PKGNAMEPREFIX}cryptography>=3.2.1<=3.4.7:security/py-cryptography@${PY_FLAVOR} \
+               ${PYTHON_PKGNAMEPREFIX}cryptography>=3.2.1:security/py-cryptography@${PY_FLAVOR} \
                ${PYTHON_PKGNAMEPREFIX}dateutil>=2.5.3:devel/py-dateutil@${PY_FLAVOR} \
                ${PYTHON_PKGNAMEPREFIX}jmespath>=0.10.0:devel/py-jmespath@${PY_FLAVOR} \
-               ${PYTHON_PKGNAMEPREFIX}oci=2.62.1:devel/py-oci@${PY_FLAVOR} \
+               ${PYTHON_PKGNAMEPREFIX}oci>=2.68.0:devel/py-oci@${PY_FLAVOR} \
                ${PYTHON_PKGNAMEPREFIX}openssl>=19.1.0:security/py-openssl@${PY_FLAVOR} \
+               ${PYTHON_PKGNAMEPREFIX}prompt-toolkit>=3.0.16:devel/py-prompt-toolkit@${PY_FLAVOR} \

and assume that python stuff with "Just Work" with point updates. I'm not a
python expert, but this feels reasonably ok to me. I bow to yourself or meta@
if this is not a good move.

wrt setup.py patch, AFAICT ports doesn't care about this so I think we could
remove it entirely.

either way, LGTM, I'm ok to commit this as is, or with above changes as you like.
Comment 11 Koichiro Iwao freebsd_committer freebsd_triage 2022-05-20 01:00:47 UTC
(In reply to Dave Cottlehuber from comment #9)
Yeah, I'll leave it to you.
Comment 12 Alessandro Sagratini 2022-05-20 04:49:10 UTC
Created attachment 234044 [details]
trivial update of Makefile and distinfo
Comment 13 Alessandro Sagratini 2022-05-20 04:50:25 UTC
(In reply to Dave Cottlehuber from comment #10)

That makes sense, most Python libraries, including these, do not really enforce dependencies, so I updated the patch to reflect your suggestions, thank you!
Comment 14 Dave Cottlehuber freebsd_committer freebsd_triage 2022-05-23 12:19:34 UTC
thanks, applied with minor tweaks to appease git & patch in
14de85b34cf790769e2b45f179eadc988dabbcbb & 7c46913e630a52c486ff95b2774b66f4a513fe22.