git: 27174cd6e8e4 - main - devel/py-userpath: Update to 1.8.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 18:18:11 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=27174cd6e8e4f979577c4d311a1c3bbefa91d6bf
commit 27174cd6e8e4f979577c4d311a1c3bbefa91d6bf
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-07 17:53:51 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-07 18:11:19 +0000
devel/py-userpath: Update to 1.8.0
- Update LICENSE
Changes: https://github.com/ofek/userpath/releases
---
devel/py-userpath/Makefile | 13 +++++++------
devel/py-userpath/distinfo | 6 +++---
devel/py-userpath/files/setup.py | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 9 deletions(-)
diff --git a/devel/py-userpath/Makefile b/devel/py-userpath/Makefile
index f6daf52a8d0c..b97839bac385 100644
--- a/devel/py-userpath/Makefile
+++ b/devel/py-userpath/Makefile
@@ -1,7 +1,7 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= userpath
-PORTVERSION= 1.7.0
+PORTVERSION= 1.8.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -9,16 +9,17 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Add locations to the user PATH without elevated privileges
-LICENSE= APACHE20 MIT
-LICENSE_COMB= dual
-LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
-LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR}
-USES= python:3.6+
+USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+post-patch:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
.include <bsd.port.mk>
diff --git a/devel/py-userpath/distinfo b/devel/py-userpath/distinfo
index 69e7006606fe..d9b4418a1d1f 100644
--- a/devel/py-userpath/distinfo
+++ b/devel/py-userpath/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1628103130
-SHA256 (userpath-1.7.0.tar.gz) = dcd66c5fa9b1a3c12362f309bbb5bc7992bac8af86d17b4e6b1a4b166a11c43f
-SIZE (userpath-1.7.0.tar.gz) = 20360
+TIMESTAMP = 1646058052
+SHA256 (userpath-1.8.0.tar.gz) = 04233d2fcfe5cff911c1e4fb7189755640e1524ff87a4b82ab9d6b875fee5787
+SIZE (userpath-1.8.0.tar.gz) = 11708
diff --git a/devel/py-userpath/files/setup.py b/devel/py-userpath/files/setup.py
new file mode 100644
index 000000000000..d0513408f9ba
--- /dev/null
+++ b/devel/py-userpath/files/setup.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+setup(
+ name='userpath',
+ version='1.8.0',
+ description='Cross-platform tool for adding locations to the user PATH',
+ long_description="# userpath\n\n| | |\n| --- | --- |\n| CI/CD | [](https://github.com/ofek/userpath/actions/workflows/test.yml) [](https://github.com/ofek/userpath/actions/workflows/build.yml) |\n| Package | [](https://pypi.org/project/userpath/) [](https://pypi.org/project/userpath/) |\n| Meta | [](https://spdx.org/licenses/) [](https://github.com/sponsors/ofek) |\n\n-----\n\nThis is a tool for modifying a user's `PATH`.\n\n**Table of Con
tents**\n\n- [Installation](#installation)\n- [CLI](#cli)\n- [API](#api)\n- [License](#license)\n\n## Installation\n\n```console\npip install userpath\n```\n\n## CLI\n\n```console\n$ userpath -h\nUsage: userpath [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n --version Show the version and exit.\n -h, --help Show this message and exit.\n\nCommands:\n append Appends to the user PATH\n prepend Prepends to the user PATH\n verify Checks if locations are in the user PATH\n```\n\n## API\n\n```pycon\n>>> import userpath\n>>> location = r'C:\\Users\\Ofek\\Desktop\\test'\n>>>\n>>> userpath.in_current_path(location)\nFalse\n>>> userpath.in_new_path(location)\nFalse\n>>> userpath.append(location)\nTrue\n>>> userpath.in_new_path(location)\nTrue\n>>> userpath.need_shell_restart(location)\nTrue\n```\n\n## License\n\n`userpath` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n",
+ author_email='Ofek Lev <oss@ofek.dev>',
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Programming Language :: Python :: Implementation :: PyPy',
+ ],
+ install_requires=[
+ 'click',
+ ],
+ entry_points={
+ 'console_scripts': [
+ 'userpath = userpath.cli:userpath',
+ ],
+ },
+ packages=[
+ 'tests',
+ 'userpath',
+ ],
+)