Files
ports/lang/tauthon/files/patch-setup_metadata.py
T
Matthias Andree 46ce70a6d4 [NEW] lang/tauthon: Backwards-compatible fork of Python 2.7 interpreter with Python 3.x features
------------------------------------------------------------------------------
Note this is not fully connected yet, and needs further changes to integrate
with flavors, addition to Mk/Uses/python.mk (or some equivalent USES=tauthon)
that may need discussion first, for instance, on the package name prefix.

This is committed to serve as a common test bed and for experimentation.
------------------------------------------------------------------------------

Maintainer:	olce.freebsd.ports@certner.fr (Olivier Certner)

Tauthon is a backward-compatible fork of Python's 2.7.18 interpreter with new
syntax, builtins, and libraries backported from Python 3.x.

Python code and C-extensions targeting Python 2.7 or below are expected to run
unmodified on Tauthon and produce the same output. But with Tauthon, that code
can now use some of the new features from Python 3.x.

This is not an official Python release. Because of its new features, while
preserving 2.7 compatibility, Tauthon reports 2.8 as its major/minor versions.

Non-exhaustive list of new features:
- Function Annotations
- Keyword-Only Arguments
- "async" and "await" Syntax
- Argument-less "super"
- New Metaclass Syntax
- "nonlocal"
- "yield from" Syntax
- "concurrent.futures" Module
- UTF-8 as the default source encoding

WWW: https://github.com/naftaliharris/tauthon

(Committed with minor changes over submission, particularly a few reorderings
in Makefile to appease portlint -CA.)

PR:		251019
Submitted by:	Olivier Certner (maintainer)
2020-12-11 08:44:45 +00:00

30 lines
1.2 KiB
Python

--- setup.py 2020-11-10 14:32:40.701965000 +0000
+++ setup.py 2020-11-10 14:53:04.048189000 +0000
@@ -2329,6 +2329,10 @@
listed here, it may still be supported, if there's a C compiler for
it. Ask around on comp.lang.python -- or just try compiling Python
yourself.
+
+This implementation, Tauthon, is a backward-compatible fork of
+Python's 2.7.18 interpreter with new syntax, builtins, and libraries
+backported from Python 3.x.
"""
CLASSIFIERS = """
@@ -2345,12 +2349,12 @@
import warnings
warnings.filterwarnings("ignore",category=DeprecationWarning)
setup(# PyPI Metadata (PEP 301)
name = "Python",
version = sys.version.split()[0],
- url = "http://www.python.org/%s" % sys.version[:3],
- maintainer = "Guido van Rossum and the Python community",
- maintainer_email = "python-dev@python.org",
+ url = "https://github.com/naftaliharris/tauthon",
+ maintainer = "Guido van Rossum, the Python community \
+and the Tauthon developers",
description = "A high-level object-oriented programming language",
long_description = SUMMARY.strip(),
license = "PSF license",
classifiers = filter(None, CLASSIFIERS.split("\n")),