[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

Sean Champ  changed:

   What|Removed |Added

 Attachment #238385|0   |1
is obsolete||

--- Comment #7 from Sean Champ  ---
Created attachment 238397
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238397&action=edit
py-sphinx 5.3.0 patch (updated)

It seems that it's possible to install directly from the sdist or wheel created
by pyproject-build

The wheel archive would include all dependencies. The sdist archive should
include only the module code itself.

This patch obsoletes the previous, now using pyproject-build to build an sdist
archive during do-build, then installing from the sdist during do-install,
there using pip. With the PEP 517 support now available in pip - using Python
3.11 at least -  this has the effect of installing the module and its bin
scripts.

The plist is generated dynamically, from all files installed by pip under the
cmd signature used in do-install

So, this now installs the module code, the themes, and the bin scripts for this
updated sphinx version

Updated the run dependencies too

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

Sean Champ  changed:

   What|Removed |Added

 Attachment #238397|0   |1
is obsolete||

--- Comment #8 from Sean Champ  ---
Created attachment 238398
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238398&action=edit
py-sphinx 5.3.0 patch (updated 2)

This patch obsoletes the previous, here setting FLIT_NO_NETWORK in MAKE_ENV
instead of CONFIGURE_ENV.

This corresponds to the approach of using flit during do-build, instead of as
in the first patch, where flit was called during do-configure

Albeit, even with the variable absent from MAKE_ENV it seems that flit had not
accessed the network when building under poudriere. The usage of
FLIT_NO_NETWORK was referenced onto the flit documentation[1]

[1] https://flit.pypa.io/en/stable/cmdline.html#envvar-FLIT_NO_NETWORK

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

--- Comment #9 from Sean Champ  ---
(In reply to Sean Champ from comment #7)

In a correction on my earlier comment, the wheel archive might not include all
dependencies.

Some calls to 'pip install' would install all dependencies, whether or not
present in the wheel file itself.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

--- Comment #10 from Charlie Li  ---
Calling pip or including it as a build dependency is not acceptable for our
packaging purposes. pip itself is a circular dependency nightmare, and we have
to track exactly, in pkg(8), what is getting installed.

With regards to PEP-517, please use/test the framework being worked on in the
referenced bug, wiki page, Differential review, etc. You're needlessly
duplicating what all the literature describes.

-- 
You are receiving this mail because:
You are the assignee for the bug.


FreeBSD ports you maintain which are out of date

2022-11-28 Thread portscout
Dear port maintainer,

The portscout new distfile checker has detected that one or more of your
ports appears to be out of date. Please take the opportunity to check
each of the ports listed below, and if possible and appropriate,
submit/commit an update. If any ports have already been updated, you can
safely ignore the entry.

You will not be e-mailed again for any of the port/version combinations
below.

Full details can be found at the following URL:
http://portscout.freebsd.org/pyt...@freebsd.org.html


Port| Current version | New version
+-+
devel/py-jupyter-core   | 4.11.1  | 4.12.0
+-+


If any of the above results are invalid, please check the following page
for details on how to improve portscout's detection and selection of
distfiles on a per-port basis:

http://portscout.freebsd.org/info/portscout-portconfig.txt

Reported by:portscout!



maintainer-feedback requested: [Bug 268043] devel/py-twisted regression with openssl port

2022-11-28 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-python (Nobody)
 for maintainer-feedback:
Bug 268043: devel/py-twisted regression with openssl port
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268043



--- Description ---
Enviroment:

make.conf:
DEFAULT_VERSIONS+=  ssl=openssl

after upgrading matrix-synapse and its dependencies, server fails to start.

Logfile:
matrix pkg[26938]: py39-twisted upgraded: 22.4.0 -> 22.10.0
matrix root[37561]: /usr/local/etc/rc.d/synapse: WARNING: failed to start
synapse

Backtrace ... ends with
AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'


Crude workaround, I changed 2 files to make synapse starting again.
This maybe not well tested.

vim /usr/local/lib/python3.9/site-packages/twisted/internet/_sslverify.py

line 1492
-self.method = SSL.TLS_METHOD
+self.method = SSL.TLSv1_2_METHOD

line 1807
- SSL.TLS_METHOD,
+ SSL.TLSv1_2_METHOD,

vim /usr/local/lib/python3.9/site-packages/twisted/internet/ssl.py"

line 95
-sslmethod=SSL.TLS_METHOD,
+sslmethod=SSL.TLSv1_2_METHOD,

line 145
-method = SSL.TLS_METHOD
+method = SSL.TLSv1_2_METHOD

Aa alternate solution may be adding:

${REINPLACE_CMD} -e 's|TLS_METHOD|TLSv1_2_METHOD|' 

If you pick one of the ways, I will generate a build tested patch.



[Bug 268043] devel/py-twisted regression with openssl port

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268043

Bug ID: 268043
   Summary: devel/py-twisted regression with openssl port
   Product: Ports & Packages
   Version: Latest
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: Individual Port(s)
  Assignee: python@FreeBSD.org
  Reporter: din...@freebsd.org
 Flags: maintainer-feedback?(python@FreeBSD.org)
  Assignee: python@FreeBSD.org

Enviroment:

make.conf:
DEFAULT_VERSIONS+=  ssl=openssl

after upgrading matrix-synapse and its dependencies, server fails to start.

Logfile:
matrix pkg[26938]: py39-twisted upgraded: 22.4.0 -> 22.10.0
matrix root[37561]: /usr/local/etc/rc.d/synapse: WARNING: failed to start
synapse

Backtrace ... ends with
AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'


Crude workaround, I changed 2 files to make synapse starting again.
This maybe not well tested.

vim /usr/local/lib/python3.9/site-packages/twisted/internet/_sslverify.py

line 1492
-self.method = SSL.TLS_METHOD
+self.method = SSL.TLSv1_2_METHOD

line 1807
- SSL.TLS_METHOD,
+ SSL.TLSv1_2_METHOD,

vim /usr/local/lib/python3.9/site-packages/twisted/internet/ssl.py"

line 95
-sslmethod=SSL.TLS_METHOD,
+sslmethod=SSL.TLSv1_2_METHOD,

line 145
-method = SSL.TLS_METHOD
+method = SSL.TLSv1_2_METHOD

Aa alternate solution may be adding:

${REINPLACE_CMD} -e 's|TLS_METHOD|TLSv1_2_METHOD|' 

If you pick one of the ways, I will generate a build tested patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 259087] [NEW PORT] net-mgmt/py-zabbix-api: Python zabbix API

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259087

Juraj Lutter  changed:

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |Not Accepted

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

--- Comment #11 from Sean Champ  ---
(In reply to Charlie Li from comment #10)

Noticing the dependencies introduced in pip, theoretically those deps could be
isolated in separate ports - e.g. a py-pip-docs port for providing
documentation presently produced with the py-pip docs option. A py-pip-testing
port could be created for testing pip, external to the main pip build. The
dependencies of the port that would be used for building the main pip code
would then be isolated to what's introduced from USES_PYTHON.

If there may a branch on the ports tree or some other location where the pep517
option for USE_PYTHON is being tested, I'll take a look. Presently, I'm not
certain how the last part of the installation could be approached without pip,
after the source-handling under PEP 517

[1] https://wiki.freebsd.org/Python/PEP-517

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 268018] textproc/py-sphinx: Updating to 5.3.0, ensuring themes are installed, using flit and pyproject-build

2022-11-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268018

--- Comment #12 from Charlie Li  ---
pip isn't divisible in the way our ports framework needs, particularly with
self-hosting. Community momentum from other operating system packagers and
others resulted in alternative implementations, blessed by PyPA, more
appropriate to situations like ours.

Apply review D36290 to your tree locally to try the framework out.

-- 
You are receiving this mail because:
You are the assignee for the bug.