1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

textproc/py-atoml: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for dependency and package change
This commit is contained in:
Po-Chuan Hsieh 2023-03-22 02:48:04 +08:00
parent cfe9365d6e
commit 9f2159a8bf
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 4 additions and 50 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= atoml
PORTVERSION= 1.1.1
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,12 +12,11 @@ WWW= https://github.com/frostming/atoml
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-pep517>=0:devel/py-pdm-pep517@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
post-patch:
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
.include <bsd.port.mk>

View File

@ -1,46 +0,0 @@
# -*- coding: utf-8 -*-
from setuptools import setup
import codecs
with codecs.open('README.md', encoding="utf-8") as fp:
long_description = fp.read()
setup_kwargs = {
'name': 'atoml',
'version': '%%PORTVERSION%%',
'description': 'Yet another style preserving TOML library',
'long_description': long_description,
'license': 'MIT',
'author': '',
'author_email': 'Frost Ming <mianghong@gmail.com>,Sébastien Eustace <sebastien@eustace.io>',
'maintainer': None,
'maintainer_email': None,
'url': '',
'packages': [
'atoml',
],
'package_data': {'': ['*']},
'long_description_content_type': 'text/markdown',
'classifiers': [
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
'python_requires': '>=3.6',
}
setup(**setup_kwargs)