pkgsrc/devel/py-mako/Makefile
adam 8351f3c177 py-mako: updated to 1.1.0
1.1.0

changed

[changed] [setup]
Removed the “python setup.py test” feature in favor of a straight run of “tox”. Per Pypa / pytest developers, “setup.py” commands are in general headed towards deprecation in favor of tox. The tox.ini script has been updated such that running “tox” with no arguments will perform a single run of the test suite against the default installed Python interpreter.

[changed] [installer] [py3k]
Mako 1.1 now supports Python versions:
- 2.7
- 3.4 and higher

This includes that setup.py no longer includes any conditionals, allowing for a pure Python wheel build, however this is not necessarily part of the Pypi release process as of yet. The test suite also raises for Python deprecation warnings.

bug

[bug] [py3k] [windows]
Replaced usage of time.clock() on windows as well as time.time() elsewhere for microsecond timestamps with timeit.default_timer(), as time.clock() is being removed in Python 3.8. Pull request courtesy Christoph Reiter.

[bug] [py3k]
Replaced usage of inspect.getfullargspec() with the vendored version used by SQLAlchemy, Alembic to avoid future deprecation warnings. Also cleans up an additional version of the same function that’s apparently been floating around for some time.
2019-08-03 11:27:27 +00:00

25 lines
662 B
Makefile

# $NetBSD: Makefile,v 1.17 2019/08/03 11:27:27 adam Exp $
DISTNAME= Mako-1.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=M/Mako/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.makotemplates.org/
COMMENT= Hyperfast and lightweight templating for the Python platform
LICENSE= mit
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.1.0:../../devel/py-test
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} mako-render mako-render-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} test
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"