Page MenuHomeFreeBSD

[NEW PORT] www/py3-requests: HTTP library written in Python for human beings
AbandonedPublic

Authored by cpm on Jun 23 2016, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 20, 7:34 AM
Unknown Object (File)
Sun, Jan 18, 2:20 PM
Unknown Object (File)
Dec 16 2025, 5:51 PM
Unknown Object (File)
Nov 19 2025, 6:10 PM
Unknown Object (File)
Nov 19 2025, 6:10 PM
Unknown Object (File)
Nov 19 2025, 4:05 PM
Unknown Object (File)
Nov 5 2025, 4:39 PM
Unknown Object (File)
Nov 4 2025, 6:17 AM
Subscribers
None

Details

Summary

Python3 specific version for www/py-requests

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

cpm retitled this revision from to [NEW PORT] www/py3-requests: HTTP library written in Python for human beings.
cpm updated this object.
cpm edited the test plan for this revision. (Show Details)
cpm added reviewers: AMDmi3, junovitch, feld.

why is this port called py3-requests? the prefix for python ports should just be py-. The package will automatically be named to py31, 32, 33, 34, etc. I understand that this only supports python 3.x, but we still name the ports py-* unless there has been a policy change I'm unaware of.

feld requested changes to this revision.Jun 23 2016, 4:10 PM
feld edited edge metadata.
This revision now requires changes to proceed.Jun 23 2016, 4:10 PM
In D6938#145519, @feld wrote:

why is this port called py3-requests? the prefix for python ports should just be py-. The package will automatically be named to py31, 32, 33, 34, etc. I understand that this only supports python 3.x, but we still name the ports py-* unless there has been a policy change I'm unaware of.

What do you suggest to do in this case?

Add www/py-request to RUN_DEPENDS and discard www/py3-requests
or
Commit www/py3-requests as a new port (we actually have some py3- ports into the ports tree, like py3-chardet port)

I need to consult with someone who has more knowledge of python ports. I'm going to consult the handbook and see if anything is in there... also Mk/Uses/python.mk ... then maybe a portmgr. Sorry, just want this to be correct.

In D6938#145576, @feld wrote:

I need to consult with someone who has more knowledge of python ports. I'm going to consult the handbook and see if anything is in there... also Mk/Uses/python.mk ... then maybe a portmgr. Sorry, just want this to be correct.

OK, I agree with you.

At least, they aren't duplicate and the packages builders will work:
% make -C www/py-requests -VPKGNAME
py27-requests-2.10.0
% make -C www/py3-requests -VPKGNAME
py34-requests-2.10.0

Python ports MUST be named py-<name> by default, unless there is a compelling case not to do so.

https://wiki.freebsd.org/Python/PortsPolicy

so let's keep it py-* not py3-*

Per Python Ports Policy: Discard www/py3-requests

This revision now requires changes to proceed.Jun 26 2016, 12:45 PM

We need this port to avoid failures from pkg-fallout.

We don't want to duplicate the existing py-requests port when we do this. Take a look at https://svnweb.FreeBSD.org/ports/head/graphics/py3-pillow/ and note that port just uses this along with a few additional statements to set the correct things that are different from the master port. Please adjust this submission to mirror this.

MASTERDIR=      ${.CURDIR}/../py-pillow

I suspect when VARIANTS happens the py3-* ports will go away but a python@ person would be useful to ask on that for the long term plans.

In D6938#145519, @feld wrote:

why is this port called py3-requests?

End users can do DEFAULT_VERSIONS and get all Python 3 ports but without VARIANTS the only way a pkg only user can get the Python 3 ports is with the py3-* versions.

We don't want to duplicate the existing py-requests port when we do this. Take a look at https://svnweb.FreeBSD.org/ports/head/graphics/py3-pillow/ and note that port just uses this along with a few additional statements to set the correct things that are different from the master port. Please adjust this submission to mirror this.

MASTERDIR=      ${.CURDIR}/../py-pillow

I suspect when VARIANTS happens the py3-* ports will go away but a python@ person would be useful to ask on that for the long term plans.

Ok, I'm working on it. Let me update the patch.

This py3-* port isn't necessary since py-socli has added python2 support.