Commit graph

124 commits

Author SHA1 Message Date
adam
74b47a89d4 python37: added version 3.7.0
Python 3.7.0 is the newest major release of the Python language, and it contains many new features and optimizations.

Among the major new features in Python 3.7 are:

PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part of the Python language spec.
Notable performance improvements in many areas.
2018-07-03 03:55:40 +00:00
adam
a03b1eff53 What’s New In Python 3.6
Summary – Release highlights
New syntax features:

PEP 498, formatted string literals.
PEP 515, underscores in numeric literals.
PEP 526, syntax for variable annotations.
PEP 525, asynchronous generators.
PEP 530: asynchronous comprehensions.
New library modules:

secrets: PEP 506 – Adding A Secrets Module To The Standard Library.
CPython implementation improvements:

The dict type has been reimplemented to use a more compact representation based on a proposal by Raymond Hettinger and similar to the PyPy dict implementation. This resulted in dictionaries using 20% to 25% less memory when compared to Python 3.5.
Customization of class creation has been simplified with the new protocol.
The class attribute definition order is now preserved.
The order of elements in **kwargs now corresponds to the order in which keyword arguments were passed to the function.
DTrace and SystemTap probing support has been added.
The new PYTHONMALLOC environment variable can now be used to debug the interpreter memory allocation and access errors.
Significant improvements in the standard library:

The asyncio module has received new features, significant usability and performance improvements, and a fair amount of bug fixes. Starting with Python 3.6 the asyncio module is no longer provisional and its API is considered stable.
A new file system path protocol has been implemented to support path-like objects. All standard library functions operating on paths have been updated to work with the new protocol.
The datetime module has gained support for Local Time Disambiguation.
The typing module received a number of improvements and is no longer provisional.
The tracemalloc module has been significantly reworked and is now used to provide better output for ResourceWarning as well as provide better diagnostics for memory allocation errors. See the PYTHONMALLOC section for more information.
Security improvements:

The new secrets module has been added to simplify the generation of cryptographically strong pseudo-random numbers suitable for managing secrets such as account authentication, tokens, and similar.
On Linux, os.urandom() now blocks until the system urandom entropy pool is initialized to increase the security. See the PEP 524 for the rationale.
The hashlib and ssl modules now support OpenSSL 1.1.0.
The default settings and feature set of the ssl module have been improved.
The hashlib module received support for the BLAKE2, SHA-3 and SHAKE hash algorithms and the scrypt() key derivation function.
2017-01-01 14:34:26 +00:00
wiz
ad0031c15e Remove python33: adapt all packages that refer to it. 2016-07-09 13:03:30 +00:00
rillig
e094bd195c Let pkglint fix indentation of preprocessing directives. 2016-07-09 10:00:26 +00:00
jperkin
96a51a20b9 Set the PYTHON_INCLUDE_PATH form too, as used by e.g. weechat. 2016-05-19 11:45:36 +00:00
jperkin
db1332a441 Use OPSYSVARS. 2016-02-25 14:42:55 +00:00
adam
a9607b9588 What’s New In Python 3.5
New syntax features:
* PEP 492, coroutines with async and await syntax.
* PEP 465, a new matrix multiplication operator: a @ b.
* PEP 448, additional unpacking generalizations.

New library modules:
* typing: PEP 484 – Type Hints.
* zipapp: PEP 441 Improving Python ZIP Application Support.

New built-in features:
* bytes % args, bytearray % args: PEP 461 – Adding % formatting to bytes and bytearray.
* New bytes.hex(), bytearray.hex() and memoryview.hex() methods. (Contributed by Arnon Yaari in issue 9951.)
* memoryview now supports tuple indexing (including multi-dimensional). (Contributed by Antoine Pitrou in issue 23632.)
* Generators have a new gi_yieldfrom attribute, which returns the object being iterated by yield from expressions. (Contributed by Benno Leslie and Yury Selivanov in issue 24450.)
* A new RecursionError exception is now raised when maximum recursion depth is reached. (Contributed by Georg Brandl in issue 19235.)

CPython implementation improvements:
* When the LC_TYPE locale is the POSIX locale (C locale), sys.stdin and sys.stdout now use the surrogateescape error handler, instead of the strict error handler. (Contributed by Victor Stinner in issue 19977.)
* .pyo files are no longer used and have been replaced by a more flexible scheme that includes the optimization level explicitly in .pyc name. (See PEP 488 overview.)
* Builtin and extension modules are now initialized in a multi-phase process, which is similar to how Python modules are loaded. (See PEP 489 overview.)

Significant improvements in the standard library:
* collections.OrderedDict is now implemented in C, which makes it 4 to 100 times faster.
* The ssl module gained support for Memory BIO, which decouples SSL protocol handling from network IO.
* The new os.scandir() function provides a better and significantly faster way of directory traversal.
* functools.lru_cache() has been mostly reimplemented in C, yielding much better performance.
* The new subprocess.run() function provides a streamlined way to run subprocesses.
* The traceback module has been significantly enhanced for improved performance and developer convenience.

Security improvements:
* SSLv3 is now disabled throughout the standard library. It can still be enabled by instantiating a ssl.SSLContext manually. (See issue 22638 for more details; this change was backported to CPython 3.4 and 2.7.)
* HTTP cookie parsing is now stricter, in order to protect against potential injection attacks. (Contributed by Antoine Pitrou in issue 22796.)

Windows improvements:
* A new installer for Windows has replaced the old MSI. See Using Python on Windows for more information.
* Windows builds now use Microsoft Visual C++ 14.0, and extension modules should use the same.
2015-12-05 17:12:13 +00:00
rodent
a7b568d574 Removing python26. EOL'd quite some ago and discussed a couple times on
tech-pkg@ and pkgsrc-users@.
2015-04-13 23:12:40 +00:00
dbj
367155e8a0 manually set CMAKE's PYTHON_INCLUDE_DIR and PYTHON_EXECUTABLE to avoid
it finding the native python versions
2015-01-27 06:33:46 +00:00
obache
c4f9650db1 Let to be failed if no suituable python version. 2014-05-10 04:25:40 +00:00
obache
1c23b0d6c4 Add python34 support and simplify. 2014-05-09 05:23:41 +00:00
wiz
100fa79faf Remove PYTHON_VERSIONS_INCLUDE_3X.
Allow python-3.x by default.
2014-01-25 10:31:01 +00:00
wiz
8756fe5815 Revert unintended commit; pkgsrc not ready yet. 2014-01-18 19:51:28 +00:00
wiz
ff08ab66a9 Support Pmw. 2014-01-18 19:50:27 +00:00
wiz
6dbc64f622 Remove python32 as proposed a week ago on pkgsrc-users.
Upstream doesn't talk about it any longer, and python-3.3 is a drop-in
replacement.
Ok bsiegert, prlw1, rodent
2014-01-12 09:01:50 +00:00
riastradh
95da2d260b Explicitly default PYTHON_FOR_BUILD_ONLY to `no'.
Avoids problems with make on NetBSD 5 where empty(XYZ:Mfoo) fails
rather than yielding false if XYZ is undefined.
2013-05-12 00:19:55 +00:00
riastradh
5dddf990fc Partially back out change to PYTHON_FOR_BUILD_ONLY.
This broke packages that needed a target Python at build-time.
Instead, change it from defined/undefined to yes/no/tool.  Most cases
of defined used `yes' anyway; fix the few stragglers do that instead.
New case `tool' is for TOOL_DEPENDS rather than buildlink3.
2013-05-10 20:07:33 +00:00
riastradh
5ccae56e81 Use a tool dependency, not buildlink3, if PYTHON_FOR_BUILD_ONLY.
ok agc
2013-05-10 00:35:51 +00:00
wiz
7cdd66f8cf Remove python31.
There are three python3 versions in pkgsrc, python31, python32 and
python33.

The last published update for python was only released for python27,
python32 and python33 -- not for python31.

No reason for keeping python31 was brought up in two weeks
on pkgsrc-users, so remove it.
2013-04-29 10:49:37 +00:00
tsarna
df40d624f2 Add Python 3.3.0 2012-12-10 03:15:48 +00:00
cheusov
98a0ec4f42 Move documentation for *_REQD variables to "Infrastructure variables"
as suggested by obache@
2012-10-03 23:48:00 +00:00
cheusov
80b4e85d4c Introduce variable PYTHON_SELF_CONFLICT
for registering conflicts between python modules.
2012-10-03 23:39:21 +00:00
wiz
7ea8e815be Remove python25, as promised in March. EOL'd last year. 2012-10-03 22:03:41 +00:00
cheusov
d9d49610f9 Update documentation for {PYTHON,RUBY,PHP}_VERSION_REQD variables, move them
to "user variables" section.  pkglint is now aware of them.  Bump pkglint
version.  Oked by wiz@
2012-09-16 20:03:50 +00:00
drochner
1cf8359eef oops - forgot to commit a framework change needed by py-dbus:
provide py2x and py3x PLIST_VARS to let pkgs deal easily with files
installed for one major version but not for the other
2012-08-01 19:07:20 +00:00
obache
fe5a350b48 Add python32 support. 2012-05-06 13:18:30 +00:00
wiz
2abc0ab85b All supported python version in pkgsrc set PYDISTUTILS_CREATES_EGGFILES
to "yes", so remove variable and code for "no".
2012-04-08 20:17:10 +00:00
wiz
aada88e659 Remove python24 and all traces of it from pkgsrc.
Remove devel/py-ctypes (only needed by and supporting python24).
Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE
lines that just mirror defaults now.
Miscellaneous cleanup while editing all these files.
2012-04-08 19:08:44 +00:00
wiz
b6dae9a43d Update python default version to 2.7, per announcement on pkgsrc-users
last week.
2012-03-08 11:44:06 +00:00
sbd
075dfbcd02 Revert the below change (by me).
---
   Module Name:	pkgsrc
   Committed By:	sbd
   Date:		Tue Feb 21 21:04:30 UTC 2012

   Modified Files:
   	pkgsrc/lang/python: pyversion.mk

   Log Message:
   Add _PYTHON_VERSION_DEFAULT with the "default" python version and set
   PYTHON_VERSION_DEFAULT from that.


   To generate a diff of this commit:
   cvs rdiff -u -r1.93 -r1.94 pkgsrc/lang/python/pyversion.mk
2012-02-26 09:17:41 +00:00
sbd
c3fae05323 Add _PYTHON_VERSION_DEFAULT with the "default" python version and set
PYTHON_VERSION_DEFAULT from that.
2012-02-21 21:04:29 +00:00
joerg
f26125ea3f Some packages play with PYPKGPREFIX, even if no valid Python version can
be found, so provide it.
2012-01-28 12:14:08 +00:00
joerg
9a0666357e Tag the 28 locations that result in a Python 3.1 package as supporting so.
Remove it from the default list for the rest.
2011-12-03 00:02:14 +00:00
joerg
125959dede Make sure that PYDISTUTILS_CREATES_EGGFILES is defined in all branches. 2011-07-07 18:46:32 +00:00
reed
6da084e457 Change the PYDEPENDENCY for python31 to python31.
What uses PYDEPENDENCY?
2011-06-21 14:11:24 +00:00
reed
3a675e1e5d Add support for python31.
(I have been using this for around 18 months on several platforms;
adjusted once after python27 was added.)
2011-06-17 01:01:04 +00:00
obache
cf3e73988a No need to add 27 for PYTHON_VERSIONS_ACCEPTED over again. 2011-03-26 07:53:30 +00:00
wiz
a2163548a9 Add MULTI variable, and add it to BUILD_DEFS, to more easily find
variable settings affecting binary packages.

From Aleksey Cheusov in PR 44695.
2011-03-12 14:07:13 +00:00
wiz
f09b8dbca6 Let's assume for now that everything that worked with python-2.6 also
works with python-2.7.
2011-02-25 09:47:18 +00:00
obache
ddaad9060f Use function-style `print', for python3. 2011-02-22 11:12:51 +00:00
obache
0aa7dc141b fix for python27. 2011-02-22 09:12:37 +00:00
obache
1238a8a5f4 Allow python27 and acceptable by default (default python is still 2.6). 2011-02-22 09:01:28 +00:00
obache
c3800b46ca remove "next;" in PRINT_PLIST_AWK, it may prevent additional substitute,
like ${EGG_INFODIR}.
2011-02-13 08:07:39 +00:00
gdt
5313c097fe Add support for packaging python "distributions" that use distutils.
Suppport conditional PLIST inclusion of the expected egg file, because
python2.4 distutils does not create them but later versions do.  (Note
that PRINT_PLIST_AWK production is not working, probably due to order
of substitution.)

Earlier patch reviewed by wiz@.
2010-07-24 12:32:22 +00:00
drochner
d202e4278e allow to override cmake's Python search order, to enforce the version
selected by pkgsrc
this automatically affects pkgs which use FIND_PACKAGE(PythonInterp)
or FIND_PACKAGE(PythonLibs)
2010-02-12 13:45:54 +00:00
joerg
969606e64d Make Python 2.6 the default version. 2010-02-10 19:16:48 +00:00
joerg
f75822b4ca Add PYTHONCONFIG similar to PYTHONBIN. 2010-02-09 22:55:16 +00:00
tron
2fb6019e05 Simplify pattern to detect Mac OS X Intel 64-Bit. 2009-09-25 13:42:26 +00:00
tron
bc35dabdce Re-do last change to avoid problems on Mac OS X older than Snow Leopard. 2009-09-25 13:36:19 +00:00
tron
8a7c79ead2 Use Python 2.6 by default under Mac OS X if we compile for the 64-Bit ABI.
Not even Apple were able to build a 64-Bit version of Python 2.5.
2009-09-22 13:46:09 +00:00