git: 4563905fd0a4 - main - devel/py-flit-scm: Add py-flit-scm 1.6.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Jun 2022 19:38:57 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=4563905fd0a449d16da1b8d175d816737a6996c9 commit 4563905fd0a449d16da1b8d175d816737a6996c9 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-06-16 19:30:53 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-16 19:30:53 +0000 devel/py-flit-scm: Add py-flit-scm 1.6.2 flit_scm is a PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit_core to build the package. WWW: https://gitlab.com/WillDaSilva/flit_scm --- devel/Makefile | 1 + devel/py-flit-scm/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-flit-scm/distinfo | 3 +++ devel/py-flit-scm/files/setup.py | 25 +++++++++++++++++++++++++ devel/py-flit-scm/pkg-descr | 5 +++++ 5 files changed, 62 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index bccd4c6c1003..50dc3e992e26 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4575,6 +4575,7 @@ SUBDIR += py-flexmock SUBDIR += py-flit SUBDIR += py-flit-core + SUBDIR += py-flit-scm SUBDIR += py-fluent SUBDIR += py-fluent-logger SUBDIR += py-flufl.i18n diff --git a/devel/py-flit-scm/Makefile b/devel/py-flit-scm/Makefile new file mode 100644 index 000000000000..b2a380e4684f --- /dev/null +++ b/devel/py-flit-scm/Makefile @@ -0,0 +1,28 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= flit-scm +PORTVERSION= 1.6.2 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= flit_scm-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= PEP 518 build backend that uses setuptools_scm to generate a version file + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.5<4:devel/py-flit-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.4<7:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR} + +USES= python:3.6+ +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-flit-scm/distinfo b/devel/py-flit-scm/distinfo new file mode 100644 index 000000000000..b6ad8b2a9663 --- /dev/null +++ b/devel/py-flit-scm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655398644 +SHA256 (flit_scm-1.6.2.tar.gz) = 6feb1334be1f31616ffb6d54485fdcd2d86796db304e126a137510139e90745c +SIZE (flit_scm-1.6.2.tar.gz) = 2364 diff --git a/devel/py-flit-scm/files/setup.py b/devel/py-flit-scm/files/setup.py new file mode 100644 index 000000000000..6c55fe80a3b4 --- /dev/null +++ b/devel/py-flit-scm/files/setup.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# setup.py generated by flit for tools that don't yet use PEP 517 + +from distutils.core import setup + +packages = \ +['flit_scm'] + +package_data = \ +{'': ['*']} + +install_requires = \ +['flit-core~=3.5', 'setuptools_scm~=6.4', 'tomli'] + +setup(name='flit_scm', + version='%%PORTVERSION%%', + description='A PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit to build the package.', + author=None, + author_email='Will Da Silva <will@willdasilva.xyz>', + url=None, + packages=packages, + package_data=package_data, + install_requires=install_requires, + python_requires='>=3.6', + ) diff --git a/devel/py-flit-scm/pkg-descr b/devel/py-flit-scm/pkg-descr new file mode 100644 index 000000000000..dfbe6fcbea64 --- /dev/null +++ b/devel/py-flit-scm/pkg-descr @@ -0,0 +1,5 @@ +flit_scm is a PEP 518 build backend that uses setuptools_scm to generate a +version file from your version control system, then flit_core to build the +package. + +WWW: https://gitlab.com/WillDaSilva/flit_scm