diff --git a/python-traitlets.spec b/python-traitlets.spec new file mode 100644 index 0000000..a21d689 --- /dev/null +++ b/python-traitlets.spec @@ -0,0 +1,69 @@ +Name: python-traitlets +Version: 4.3.2 +Release: 8 +Summary: A lightweight Traits like module. + +License: BSD +URL: https://github.com/ipython/traitlets +Source0: https://github.com/ipython/traitlets/archive/%{version}.tar.gz#/traitlets-%{version}.tar.gz +BuildArch: noarch + +%description +A framework that lets Python classes have attributes with type checking, dynamically calculated default values, +and ‘on change’ callbacks. + + +%package -n python2-traitlets +Summary: A lightweight Traits like module. +BuildRequires: python2-devel python2-pytest python2-nose python2-decorator +BuildRequires: python2-enum34 python2-ipython_genutils python2-six +Requires: python2-decorator python2-enum34 python2-ipython_genutils python2-six +%python_provide python2-traitlets + +%description -n python2-traitlets +A framework that lets Python classes have attributes with type checking, dynamically calculated default values, +and ‘on change’ callbacks. + +%package -n python%{python3_pkgversion}-traitlets +Summary: A lightweight Traits like module. +BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-pytest python%{python3_pkgversion}-nose +BuildRequires: python%{python3_pkgversion}-decorator python%{python3_pkgversion}-six +BuildRequires: python%{python3_pkgversion}-ipython_genutils python%{python3_pkgversion}-six +Requires: python%{python3_pkgversion}-decorator python%{python3_pkgversion}-ipython_genutils python%{python3_pkgversion}-six +%python_provide python%{python3_pkgversion}-traitlets + +%description -n python%{python3_pkgversion}-traitlets +A framework that lets Python classes have attributes with type checking, dynamically calculated default values, +and ‘on change’ callbacks. + +%prep +%autosetup -n traitlets-%{version} -p1 + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%check +py.test-%{python2_version} -v traitlets/tests/ +py.test-%{python3_version} -v traitlets/tests/ + + +%files -n python2-traitlets +%doc README.md COPYING.md +%{python2_sitelib}/* + +%files -n python%{python3_pkgversion}-traitlets +%doc README.md COPYING.md +%{python3_sitelib}/* + + +%changelog +* Thu Mar 5 2020 chenli - 4.3.2-8 +- Init Package. diff --git a/traitlets-4.3.2.tar.gz b/traitlets-4.3.2.tar.gz new file mode 100644 index 0000000..3cfb44f Binary files /dev/null and b/traitlets-4.3.2.tar.gz differ