pkgsrc/net/py-twine/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2022/01/05 15:41:18 wiz Exp $
DISTNAME= twine-1.13.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/twine/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://twine.readthedocs.io/
COMMENT= Collection of utilities for publishing packages on PyPI
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-pkginfo>=1.4.2:../../devel/py-pkginfo
DEPENDS+= ${PYPKGPREFIX}-readme_renderer>=21.0:../../textproc/py-readme_renderer
DEPENDS+= ${PYPKGPREFIX}-requests>=2.17:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-requests-toolbelt>=0.9.1:../../devel/py-requests-toolbelt
DEPENDS+= ${PYPKGPREFIX}-tqdm>=4.14:../../misc/py-tqdm
PYTHON_VERSIONED_DEPENDENCIES+= test:test
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-tqdm
USE_PKG_RESOURCES= yes
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} twine twine-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"