diff --git a/python-parse_type.spec b/python-parse_type.spec index b41f413..239a8f7 100644 --- a/python-parse_type.spec +++ b/python-parse_type.spec @@ -1,8 +1,8 @@ Name: python-parse_type -Version: 0.6.0 +Version: 0.6.2 Release: 1 Summary: Make parse types building more easier by parse module -License: BSD +License: MIT URL: https://github.com/jenisys/parse_type Source0: https://github.com/jenisys/parse_type/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch @@ -22,6 +22,7 @@ Summary: Make parse types building more easier by parse module %{?python_provide:%python_provide python3-parse_type} BuildRequires: python3-devel python3-setuptools python3-six python3-parse BuildRequires: python3-pytest python3-pytest-runner python3-sphinx >= 1.1 +BuildRequires: python3-pip python3-wheel %description -n python3-parse_type Parse_type extends the "parse" module (opposite of string.format()") with the following @@ -32,25 +33,21 @@ that supports the CardinalityField naming schema and creates missing type varian (0..1, 0..*, 1..*) from the primary type converte. %prep -%setup -q -c -mv parse_type-%{version} python3 -rm -rf python3/*.egg-info +%autosetup -n parse_type-%{version} %build -cd python3 # remove deps on pytest-html -sed -i -e '/^\s*pytest-html >= /d' tox.ini sed -i -e '/^\s*"pytest-html >= /d' setup.py +sed -i -e '/^\s*"pytest-html >= /d' pyproject.toml +sed -i -e '/^pytest-html >= /d' py.requirements/testing.txt -%py3_build +%pyproject_build %install -cd python3 -%py3_install +%pyproject_install %check -cd python3 sed -i \ -e '/^addopts = --metadata PACKAGE_UNDER_TEST parse_type/d' \ -e '/^ --metadata PACKAGE_VERSION [0-9].[0-9].[0-9]/d' \ @@ -58,14 +55,19 @@ sed -i \ -e '\% --junit-xml=build/testing/report.xml%d' \ pytest.ini -%{__python3} setup.py test +pytest %files -n python3-parse_type -%doc python3/README.rst python3/LICENSE -%{python3_sitelib}/{parse_type-%{version}-*.egg-info/,parse_type/} +%license LICENSE +%doc README.rst +%{python3_sitelib}/{parse_type-%{version}.dist-info/,parse_type/} %changelog +* Mon Jul 10 2023 wangkai <13474090681@163.com> - 0.6.2-1 +- Update to 0.6.2 for fix test_parse.py fail +- Switch compilation method setup.py to pyproject + * Wed Apr 12 2023 liyanan - 0.6.0-1 - Update to 0.6.0 diff --git a/v0.6.0.tar.gz b/v0.6.0.tar.gz deleted file mode 100644 index 0ca7202..0000000 Binary files a/v0.6.0.tar.gz and /dev/null differ diff --git a/v0.6.2.tar.gz b/v0.6.2.tar.gz new file mode 100644 index 0000000..c2e2dc4 Binary files /dev/null and b/v0.6.2.tar.gz differ