git: 97a6d0658931 - main - devel/py-pep440: Add py-pep440 0.1.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Nov 2022 08:16:41 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=97a6d0658931454ebaa96079e9c240185dda2d93 commit 97a6d0658931454ebaa96079e9c240185dda2d93 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-11-19 08:09:54 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-11-19 08:09:54 +0000 devel/py-pep440: Add py-pep440 0.1.2 A simple package with utils to check whether versions number match PEP 440. --- devel/Makefile | 1 + devel/py-pep440/Makefile | 22 ++++++++++++++++++++++ devel/py-pep440/distinfo | 3 +++ devel/py-pep440/files/setup.py | 30 ++++++++++++++++++++++++++++++ devel/py-pep440/pkg-descr | 1 + 5 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1fa49e79d380..c9d84159dec2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4958,6 +4958,7 @@ SUBDIR += py-pebble SUBDIR += py-pefile SUBDIR += py-pendulum + SUBDIR += py-pep440 SUBDIR += py-pep517 SUBDIR += py-pep562 SUBDIR += py-pep621 diff --git a/devel/py-pep440/Makefile b/devel/py-pep440/Makefile new file mode 100644 index 000000000000..a9d4eb6d4fdd --- /dev/null +++ b/devel/py-pep440/Makefile @@ -0,0 +1,22 @@ +PORTNAME= pep440 +PORTVERSION= 0.1.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simple package with utils to check whether versions number match PEP 440 +WWW= https://github.com/Carreau/pep440 + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +post-patch: + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py + +.include <bsd.port.mk> diff --git a/devel/py-pep440/distinfo b/devel/py-pep440/distinfo new file mode 100644 index 000000000000..2a7db3916f21 --- /dev/null +++ b/devel/py-pep440/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665649769 +SHA256 (pep440-0.1.2.tar.gz) = 58b37246cc2b13fee1ca2a3c092cb3704d21ecf621a5bdbb168e44e697f6d04d +SIZE (pep440-0.1.2.tar.gz) = 4378 diff --git a/devel/py-pep440/files/setup.py b/devel/py-pep440/files/setup.py new file mode 100644 index 000000000000..0747f93219ba --- /dev/null +++ b/devel/py-pep440/files/setup.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['pep440'] + +package_data = \ +{'': ['*']} + +extras_require = \ +{'lint': ['check-manifest', 'mypy'], + 'test': ['pytest-console-scripts', 'pytest-cov', 'pytest']} + +entry_points = \ +{'console_scripts': ['pep440 = pep440.__main__:main']} + +setup(name='pep440', + version='%%PORTVERSION%%', + description='A simple package with utils to check whether versions number match PEP 440.', + author=None, + author_email='Matthias Bussonnier <bussonniermatthias@gmail.com>', + url=None, + packages=packages, + package_data=package_data, + extras_require=extras_require, + entry_points=entry_points, + python_requires='>=3.7', + ) diff --git a/devel/py-pep440/pkg-descr b/devel/py-pep440/pkg-descr new file mode 100644 index 000000000000..ee39e44cc6c5 --- /dev/null +++ b/devel/py-pep440/pkg-descr @@ -0,0 +1 @@ +A simple package with utils to check whether versions number match PEP 440.