Sync from SUSE:SLFO:Main python-hatch_nodejs_version revision c4743d046fc6ba48173210a84245b26e

This commit is contained in:
Adrian Schröter 2024-05-03 20:57:11 +02:00
commit af9f9308ff
4 changed files with 126 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
hatch_nodejs_version-0.3.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
-------------------------------------------------------------------
Sun Feb 5 17:58:18 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Fix build and runtime requirements
- Provide PyPI name
-------------------------------------------------------------------
Sat Dec 3 17:37:49 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.3.1
* Add a trailing newline to package.json when appropriate by @blink1073 in #17
- Update to version 0.3.0
* Update version to match distribution by @bollwyvl in #2
* Add official Hatch badge by @ofek in #3
* Refactor: don't store path in version_data by @agoose77 in #4
* feat: add support for metadata hook by @agoose77 in #5
* ci: test with pytest by @agoose77 in #6
* Add Python version classifiers by @ofek in #7
* Add urls for this package by @fcollonval in #8
* feat: add label configuration options to modify URLs table keys by @agoose77 in #9
* docs: explain fields fallback by @agoose77 in #10
* docs: replace NodeJS with Node.js by @agoose77 in #11
* Feat: support build metadata by @agoose77 in #13
-------------------------------------------------------------------
Fri Sep 23 09:34:04 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Fix metadata (description and files).
-------------------------------------------------------------------
Thu Sep 22 18:16:36 UTC 2022 - Arun Persaud <arun@gmx.de>
- initial version

View File

@ -0,0 +1,66 @@
#
# spec file for package python-hatch_nodejs_version
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-hatch_nodejs_version
Version: 0.3.1
Release: 0
Summary: This package provides two Hatch plugins for nodejs
License: MIT
Group: Development/Languages/Python
URL: https://github.com/agoose77/hatch-nodejs-version
Source: https://files.pythonhosted.org/packages/source/h/hatch_nodejs_version/hatch_nodejs_version-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-hatchling >= 0.21.0
Provides: python-hatch-nodejs-version = %{version}-%{release}
BuildArch: noarch
%python_subpackages
%description
Hatch plugin to read pyproject.toml metadata from package.json
This package provides two Hatch plugins:
* version source plugin that reads/writes the package version
from the version field of the Node.js package.json file.
* metadata hook plugin that reads PEP 621 metadata from the
Node.js package.json file.
%prep
%setup -q -n hatch_nodejs_version-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%{python_sitelib}/hatch_nodejs_version
%{python_sitelib}/hatch_nodejs_version-%{version}.dist-info
%changelog