Date: Sat, 28 Apr 2018 19:02:57 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468563 - in head/math: . py-random2 Message-ID: <201804281902.w3SJ2vlX016171@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sat Apr 28 19:02:57 2018 New Revision: 468563 URL: https://svnweb.freebsd.org/changeset/ports/468563 Log: New port: math/py-random2: Python 3 compatible Python 2 random module PR: 227829 Submitted by: Kai <freebsd_ports@k-worx.org> Added: head/math/py-random2/ head/math/py-random2/Makefile (contents, props changed) head/math/py-random2/distinfo (contents, props changed) head/math/py-random2/pkg-descr (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Sat Apr 28 18:57:06 2018 (r468562) +++ head/math/Makefile Sat Apr 28 19:02:57 2018 (r468563) @@ -701,6 +701,7 @@ SUBDIR += py-pysparse SUBDIR += py-pysym SUBDIR += py-pyvtk + SUBDIR += py-random2 SUBDIR += py-roman SUBDIR += py-scientific SUBDIR += py-seaborn Added: head/math/py-random2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-random2/Makefile Sat Apr 28 19:02:57 2018 (r468563) @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PORTNAME= random2 +DISTVERSION= 1.0.1 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= Python 3 compatible Python 2 random module + +LICENSE= PSFL + +USES= python zip +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include <bsd.port.mk> Added: head/math/py-random2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-random2/distinfo Sat Apr 28 19:02:57 2018 (r468563) @@ -0,0 +1,3 @@ +TIMESTAMP = 1524397443 +SHA256 (random2-1.0.1.zip) = 34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007 +SIZE (random2-1.0.1.zip) = 21088 Added: head/math/py-random2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-random2/pkg-descr Sat Apr 28 19:02:57 2018 (r468563) @@ -0,0 +1,8 @@ +Provides a Python 3 ported version of Python 2.7's 'random' module. It has also +been back-ported to work in Python 2.6. + +In Python 3, the implementation of randrange() was changed, so that even with +the same seed you get different sequences in Python 2 and 3. Note that several +high-level functions such as randint() and choice() use randrange(). + +WWW: https://pypi.org/project/random2/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804281902.w3SJ2vlX016171>