1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

www/py-flask-mongoengine: Update to 1.0.0

PR:		252442
Submitted by:	Goran Mekić (maintainer)
This commit is contained in:
Matthias Andree 2021-02-13 12:25:04 +00:00
parent 1b84e6d4f5
commit 0cb3f5db2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=565129
3 changed files with 34 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= flask-mongoengine
PORTVERSION= 0.9.5
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
CATEGORIES= www devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -17,8 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mongoengine>=0:databases/py-mongoengine@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rednose>=0:devel/py-rednose@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest-cov@${PY_FLAVOR}
USES= python:3.5+
USE_GITHUB= yes # tests not packaged with PyPI sdist
@ -30,7 +29,34 @@ TEST_ENV= PYTHONPATH=${WRKSRC}/src
NO_ARCH= yes
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} setup.py nosetests \
-e test_connection_default
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
-k 'not test_with_id \
and not test_basic_insert \
and not test_multiple_connections \
and not test_binaryfield \
and not test_choices_coerce \
and not test_list_choices_coerce \
and not test_emailfield \
and not test_model_form \
and not test_model_form_only \
and not test_model_form_with_custom_query_set \
and not test_modelselectfield \
and not test_modelselectfield_multiple \
and not test_modelselectfield_multiple_initalvalue_None \
and not test_modelradiofield \
and not test_passwordfield \
and not test_unique_with \
and not test_sub_field_args \
and not test_modelselectfield_multiple_selected_elements_must_be_retained \
and not test_model_form_help_text \
and not test_shared_field_args \
and not test_embedded_model_form \
and not test_form_label_modifier \
and not test_inheritance \
and not test_with_id \
and not test_basic_insert \
and not test_queryset_paginator \
and not test_list_field_pagination \
and not test_setting_session'
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1577167260
SHA256 (MongoEngine-flask-mongoengine-v0.9.5_GH0.tar.gz) = af9122fbb1c516fe12e7afcae1f87d18ba0f3c846e927a2270b2e78d420d309d
SIZE (MongoEngine-flask-mongoengine-v0.9.5_GH0.tar.gz) = 120281
TIMESTAMP = 1607727149
SHA256 (MongoEngine-flask-mongoengine-v1.0.0_GH0.tar.gz) = 5d9768264f4503afe78b8ee31544b4e178186881393b4104a7ef47020cc2e965
SIZE (MongoEngine-flask-mongoengine-v1.0.0_GH0.tar.gz) = 123516

View File

@ -1,11 +0,0 @@
--- setup.py.orig 2019-12-24 07:50:35 UTC
+++ setup.py
@@ -53,7 +53,7 @@ setup(
'flask_mongoengine.wtf'],
include_package_data=True,
tests_require=test_requirements,
- setup_requires=test_requirements, # Allow proper nose usage with setuptools and tox
+ # setup_requires=test_requirements, # Allow proper nose usage with setuptools and tox
description=description,
long_description=long_description,
classifiers=[