diff --git a/autocommand-2.2.2.tar.gz b/autocommand-2.2.2.tar.gz new file mode 100644 index 0000000..0933abb Binary files /dev/null and b/autocommand-2.2.2.tar.gz differ diff --git a/python-autocommand.spec b/python-autocommand.spec new file mode 100644 index 0000000..217229f --- /dev/null +++ b/python-autocommand.spec @@ -0,0 +1,47 @@ +%global pkg_description %{expand: +Autocommand turns a function into a command-line program. It converts the function's parameter +signature into command-line arguments, and automatically runs the function if the module was +called as __main__. In effect, it lets your create a smart main function.} + +Name: python-autocommand +Version: 2.2.2 +Release: 1 +Summary: A library to automatically generate and run simple argparse parsers from function signatures. +License: LGPL-3.0-only +URL: https://github.com/Lucretiel/autocommand +Source0: https://github.com/Lucretiel/autocommand/archive/%{version}/autocommand-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-setuptools + +BuildArch: noarch + +%description %{pkg_description} + +%package -n python3-autocommand +Summary: %{Summary} + +%description -n python3-autocommand %{pkg_description} + +%prep +%autosetup -p1 -n autocommand-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +export PYTHONPATH=%{buildroot}%{python3_sitelib} +pytest + +%files -n python3-autocommand +%license LICENSE +%doc README.md +%{python3_sitelib}/* + +%changelog +* Fri Apr 28 2023 yaoxin - 2.2.2-1 +- Package init diff --git a/python-autocommand.yaml b/python-autocommand.yaml new file mode 100644 index 0000000..cb70111 --- /dev/null +++ b/python-autocommand.yaml @@ -0,0 +1,4 @@ +version-ctrl: github +src_repo: Lucretiel/autocommand +tag_prefix: "^v" +seperator: "."