git: e1207fd16712 - main - devel/py-twiggy: Update version 0.4.7=>0.5.1

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 12 Mar 2022 10:38:47 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e1207fd167126977a8aeca7bcf5c08ec92bc70ec

commit e1207fd167126977a8aeca7bcf5c08ec92bc70ec
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-03-12 06:56:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-03-12 10:38:43 +0000

    devel/py-twiggy: Update version 0.4.7=>0.5.1
    
    Relnotes: https://github.com/wearpants/twiggy/releases/tag/0.5.1
---
 devel/py-twiggy/Makefile             |  2 +-
 devel/py-twiggy/distinfo             |  5 +++--
 devel/py-twiggy/files/patch-setup.py | 18 +++++++++---------
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/devel/py-twiggy/Makefile b/devel/py-twiggy/Makefile
index 058cd3bf654e..bcb5d42dee43 100644
--- a/devel/py-twiggy/Makefile
+++ b/devel/py-twiggy/Makefile
@@ -1,7 +1,7 @@
 # Created by: Kubilay Kocak <koobs@FreeBSD.org>
 
 PORTNAME=	twiggy
-PORTVERSION=	0.4.7
+PORTVERSION=	0.5.1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-twiggy/distinfo b/devel/py-twiggy/distinfo
index d83ed682ec49..6b43d9c71631 100644
--- a/devel/py-twiggy/distinfo
+++ b/devel/py-twiggy/distinfo
@@ -1,2 +1,3 @@
-SHA256 (Twiggy-0.4.7.tar.gz) = 44d8aa51110efaab0712b5ec2b015149ad4f28e28f729004aac45d0ad8e19be0
-SIZE (Twiggy-0.4.7.tar.gz) = 66978
+TIMESTAMP = 1646763122
+SHA256 (Twiggy-0.5.1.tar.gz) = 7938840275972f6ce89994a5bdfb0b84f0386301a043a960af6364952e78ffe4
+SIZE (Twiggy-0.5.1.tar.gz) = 75282
diff --git a/devel/py-twiggy/files/patch-setup.py b/devel/py-twiggy/files/patch-setup.py
index 1793ad79ca28..f0cbcb4a914a 100644
--- a/devel/py-twiggy/files/patch-setup.py
+++ b/devel/py-twiggy/files/patch-setup.py
@@ -1,10 +1,10 @@
---- setup.py.orig	2015-06-25 09:44:36 UTC
+--- setup.py.orig	2021-05-12 21:19:48 UTC
 +++ setup.py
-@@ -1,9 +1,28 @@
- #!/usr/bin/env python
- 
+@@ -5,9 +5,28 @@ except ImporError:
+     from setuptools import setup
+ except ImporError:
+     from distutils.core import setup
 +from setuptools.command.test import test as TestCommand
- from distutils.core import setup
  import os.path
  import sys
  
@@ -27,10 +27,10 @@
 +        sys.exit(errno)
 +
  # stop with the bug reports
- if sys.version_info < (2, 6):
-     raise RuntimeError("Twiggy requires Python 2.6 or greater")
-@@ -34,4 +53,6 @@ setup(name='Twiggy',
-       "Programming Language :: Python :: 3.4",
+ if sys.version_info < (2, 7):
+     raise RuntimeError("Twiggy requires Python 2.7 or greater")
+@@ -41,4 +60,6 @@ setup(name='Twiggy',
+       "Programming Language :: Python :: 3.9",
        "License :: OSI Approved :: BSD License",],
        long_description=open('README.rst').read(),
 +      tests_require=['pytest'],