Skip to content

Commit

Permalink
devel/py-pep440: Add py-pep440 0.1.2
Browse files Browse the repository at this point in the history
A simple package with utils to check whether versions number match PEP 440.
  • Loading branch information
sunpoet committed Nov 19, 2022
1 parent 783f543 commit 97a6d06
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
30 changes: 30 additions & 0 deletions 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',
)
1 change: 1 addition & 0 deletions devel/py-pep440/pkg-descr
@@ -0,0 +1 @@
A simple package with utils to check whether versions number match PEP 440.

0 comments on commit 97a6d06

Please sign in to comment.