freebsd-ports/devel/py-futures/Makefile
Kubilay Kocak 98c4fa17b0 devel/py-futures: Update to 3.0.5
- Update PORTVERSION and distinfo checksum (3.0.5)
- Correctly limit to Python versions < 3. :2 means depend on
  lang/python2 (for the python2 symlink), which is an incorrect
  specification.
- Enable NO_ARCH (architecture independent)
- Add a comment above the test target to inform our future
  selves to increase the number of POSIX semaphores using sysctl.
  FreeBSD currently defaults to 30, and I don't believe there's a
  "blessed" way to have tests run as root to do this programatically.

  Without increasing the value, many tests are skipped:

    skipped 'system provides too few semaphores (30 available, 256 necessary)'

Changes:

  https://github.com/agronholm/pythonfutures/blob/3.0.5/CHANGES
2016-03-03 09:13:32 +00:00

27 lines
611 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= futures
PORTVERSION= 3.0.5
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Backport of the concurrent.futures package from Python 3.2
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:-2.7
USE_PYTHON= autoplist distutils
NO_ARCH= yes
# Some tests require 256 semaphores. Set the following sysctl(8)
# before running tests: sysctl p1003_1b.sem_nsems_max=512
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} test_futures.py
.include <bsd.port.mk>