14
0

- Update to 1.8:

* Fixed all pep8 issues (prettier syntax)
  * Fixed an issue with using __import__ on Python 2.4.
  * Fixed an issue with using :versiontools:path.to.symbol with nested modules
  * Fixed an issue with using exceptions on Python 3.x
  * Added test that demostrated that exception handling works on all Python versions.
  * Unified error handling across version control plugins.
  * General documentation improvements, installation, usage, code refrerence,
    and writing additional plug-ins.
  * Added a *backwards incompatible* constraint on serial to be greater than
    zero on alpha, beta and release candidates as required by :pep:`386`.
- Fixed non-executable scripts rpmlint warning

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-versiontools?expand=0&rev=4
This commit is contained in:
Sascha Peilicke
2011-09-21 08:28:28 +00:00
committed by Git OBS Bridge
parent 374d2ebb16
commit b74ccaffc4
4 changed files with 30 additions and 22 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Sep 21 18:24:32 UTC 2011 - saschpe@suse.de
- Update to 1.8:
* Fixed all pep8 issues (prettier syntax)
* Fixed an issue with using __import__ on Python 2.4.
* Fixed an issue with using :versiontools:path.to.symbol with nested modules
* Fixed an issue with using exceptions on Python 3.x
* Added test that demostrated that exception handling works on all Python versions.
* Unified error handling across version control plugins.
* General documentation improvements, installation, usage, code refrerence,
and writing additional plug-ins.
* Added a *backwards incompatible* constraint on serial to be greater than
zero on alpha, beta and release candidates as required by :pep:`386`.
- Fixed non-executable scripts rpmlint warning
-------------------------------------------------------------------
Thu Sep 8 01:49:15 UTC 2011 - alexandre@exatati.com.br

View File

@@ -15,29 +15,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_name versiontools
Name: python-%{mod_name}
Version: 1.7
Name: python-versiontools
Version: 1.8
Release: 0
Url: https://launchpad.net/versiontools
Summary: Smart Replacement for Plain Tuple Used in __version__
License: LGPLv3
Summary: Smart replacement for plain tuple used in __version__
License: LGPL-3.0+
Group: Development/Languages/Python
Source: %{mod_name}-%{version}.tar.bz2
Source: http://pypi.python.org/packages/source/v/versiontools/versiontools-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-distribute
BuildRequires: python-devel
BuildRequires: python-distribute
Requires: python-distribute
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
Smart replacement for plain tuple used in __version__.
@@ -50,23 +46,19 @@ Smart replacement for plain tuple used in __version__.
with PEP 386
* Remain comparable as tuple of integers
%prep
%setup -q -n %{mod_name}-%{version}
%setup -q -n versiontools-%{version}
sed -i "1d" versiontools/{git_support,hg_support,bzr_support}.py # Fix non-executable scripts
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc doc
%{python_sitelib}/%{mod_name}*
%doc doc/*
%{python_sitelib}/*
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56a4b14a70161bdf6121547e7349fecf5da6c1970179a6ab2a19d327fc0705d6
size 12823

3
versiontools-1.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:585c5a8fa2cd7cffa5555d44075e4672a242a666b59eec3e25ba1cff05d97520
size 16626