Skip to content

Commit

Permalink
databases/py-mycli: Allow build with py-sqlparse 0.5.0+
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Apr 20, 2024
1 parent 02040a1 commit 2f918ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion databases/py-mycli/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mycli
PORTVERSION= 1.27.2
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -23,7 +24,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.2.1:devel/py-cli-helpers@${PY
${PYTHON_PKGNAMEPREFIX}pymysql>=0.9.2:databases/py-pymysql@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyperclip>=1.7.0:devel/py-pyperclip@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlglot>=5.1.3:databases/py-sqlglot@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.5.0:databases/py-sqlparse@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.6.0:databases/py-sqlparse@${PY_FLAVOR}

USES= mysql python
USE_PYTHON= autoplist concurrent cryptography pep517
Expand Down
7 changes: 6 additions & 1 deletion databases/py-mycli/files/patch-setup.py
@@ -1,6 +1,11 @@
--- setup.py.orig 2024-03-29 05:11:01 UTC
+++ setup.py
@@ -28,7 +28,7 @@ install_requirements = [
@@ -24,11 +24,11 @@ install_requirements = [
'Pygments>=1.6',
'prompt_toolkit>=3.0.6,<4.0.0',
'PyMySQL >= 0.9.2',
- 'sqlparse>=0.3.0,<0.5.0',
+ 'sqlparse>=0.3.0,<0.6.0',
'sqlglot>=5.1.3',
'configobj >= 5.0.5',
'cli_helpers[styles] >= 2.2.1',
Expand Down

0 comments on commit 2f918ed

Please sign in to comment.