View | Details | Raw Unified | Return to bug 257868
Collapse All | Expand All

(-)b/www/py-freenit/Makefile (-33 / +13 lines)
Lines 1-5 Link Here
1
PORTNAME=	freenit
1
PORTNAME=	freenit
2
PORTVERSION=	0.1.25
2
PORTVERSION=	0.2.5
3
CATEGORIES=	www devel python
3
CATEGORIES=	www devel python
4
MASTER_SITES=	CHEESESHOP
4
MASTER_SITES=	CHEESESHOP
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 10-55 COMMENT= REST API framework based on Flask-Smorest Link Here
10
LICENSE=	BSD2CLAUSE
10
LICENSE=	BSD2CLAUSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
12
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiosqlite>=0:databases/py-aiosqlite@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}Flask-Collect>=1.3.2:www/py-flask-collect@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}alembic>=0:databases/py-alembic@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}Flask-Cors>=2.1.2:www/py-flask-cors@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}databases>=0:databases/py-databases@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}flask-jwt-extended>=3.24.1:www/py-flask-jwt-extended@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}email-validator>=0:mail/py-email-validator@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}flask-security>=3.0.0:www/py-flask-security@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}fastapi-users>=0:www/py-fastapi-users@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}flask-smorest>=0.18.2:www/py-flask-smorest@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}ormar>=0:databases/py-ormar@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}email-validator>=0:mail/py-email-validator@${PY_FLAVOR}
19
		${PYTHON_PKGNAMEPREFIX}asgiref>=0:www/py-asgiref@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}uvicorn>=0:www/py-uvicorn@${PY_FLAVOR}
20
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
21
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}factory-boy>=0:devel/py-factory-boy@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pytest-factoryboy>=0:devel/py-pytest-factoryboy@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pytest-factoryboy>=0:devel/py-pytest-factoryboy@${PY_FLAVOR}
23
		${PYTHON_PKGNAMEPREFIX}pytest-flask>=0:devel/py-pytest-flask@${PY_FLAVOR}
24
24
25
USES=		python:3.6+
25
USES=		python:3.8+
26
USE_PYTHON=	autoplist concurrent distutils
26
USE_PYTHON=	autoplist concurrent distutils
27
27
28
TEST_ENV=	PYTHONPATH=${WRKSRC}/src
28
TEST_ENV=	PYTHONPATH=${WRKSRC}/src
29
29
30
NO_ARCH=	yes
30
NO_ARCH=	yes
31
31
32
OPTIONS_DEFINE=	SQLITE MYSQL PGSQL MONGO
33
OPTIONS_DEFAULT=SQLITE
34
35
SQLITE_DESC=	Support for SQLite database using PeeWee
36
MYSQL_DESC=	Support for MySQL database using PeeWee
37
PGSQL_DESC=	Support for PostgreSQL database using PeeWee
38
MONGO_DESC=	Support for MongoDB using Flask-MongoEngine
39
40
MIGRATE_DEP=		${PYTHON_PKGNAMEPREFIX}peewee_migrate>=1.1.6:databases/py-peewee_migrate@${PY_FLAVOR}
41
SQLITE_USES=		sqlite
42
SQLITE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}peewee>0:databases/py-peewee@${PY_FLAVOR} \
43
			${MIGRATE_DEP}
44
MYSQL_USES=		mysql
45
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}peewee>0:databases/py-peewee@${PY_FLAVOR} \
46
			${MIGRATE_DEP}
47
PGSQL_USES=		pgsql
48
PGSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}peewee>0:databases/py-peewee@${PY_FLAVOR} \
49
			${MIGRATE_DEP}
50
MONGO_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flask-mongoengine>0:www/py-flask-mongoengine@${PY_FLAVOR}
51
52
do-test:
32
do-test:
53
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest --ignore=freenit/project/ -v -rs -o addopts=
33
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} FREENIT_ENV=test ${PYTHON_CMD} -m pytest --ignore=freenit/project/ -v -rs -o addopts=
54
34
55
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)b/www/py-freenit/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1610644687
1
TIMESTAMP = 1628765773
2
SHA256 (freenit-0.1.25.tar.gz) = 962417c33811b2c7bced9cdbb3ff0df6d7c379646aeaf52782dfbb1d4a3a8f05
2
SHA256 (freenit-0.2.5.tar.gz) = 485cbc77fef5b1286be882c5d96e05bf3d056bbbca45ec93059a5372c9c57a2a
3
SIZE (freenit-0.1.25.tar.gz) = 2640348
3
SIZE (freenit-0.2.5.tar.gz) = 15580

Return to bug 257868