15
0

Accepting request 612017 from devel:languages:python:misc

High-level FTP client library

OBS-URL: https://build.opensuse.org/request/show/612017
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftputil?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-24 20:56:36 +00:00
committed by Git OBS Bridge
commit 5656ba79e7
5 changed files with 108 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
ftputil-3.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:374b01e174079e91babe2a462fbd6f6c00dbfbfa299dec04239ca4229fbf8762
size 141472

16
python-ftputil.changes Normal file
View File

@@ -0,0 +1,16 @@
-------------------------------------------------------------------
Wed May 16 16:08:53 UTC 2018 - toddrme2178@gmail.com
- Update to 3.4
* Added support for Python 3
* Dropped support for Python 2.4 and 2.5
* Newlines and encoding of remote file content
* Upload and download modes
* Custom parsers receive lines as unicode strings
- Implement single-spec version
-------------------------------------------------------------------
Fri Sep 23 13:03:57 UTC 2011 - saschpe@suse.de
- Initial version

65
python-ftputil.spec Normal file
View File

@@ -0,0 +1,65 @@
#
# spec file for package python-ftputil
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ftputil
Version: 3.4
Release: 0
License: BSD-3-Clause
Summary: High-level FTP client library (virtual file system and more)
Url: http://ftputil.sschwarzer.net/
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/f/ftputil/ftputil-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
FTPutil is a high-level FTP client library for the Python programming
language. ftputil implements a virtual file system for accessing FTP
servers, that is, it can generate file-like objects for remote files.
The library supports many functions similar to those in the os,
os.path and shutil modules. ftputil has convenience functions for
conditional uploads and downloads, and handles FTP clients and
servers in different timezones.
%prep
%setup -q -n ftputil-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mkdir -p %{buildroot}%{_docdir}
%python_expand cp -r %{buildroot}%{_prefix}/doc/ftputil %{buildroot}%{_docdir}/%{$python_prefix}-ftputil
rm -rf %{buildroot}%{_prefix}/doc/ftputil
%files %{python_files}
%{_docdir}/%{python_prefix}-ftputil
%license LICENSE
%{python_sitelib}/*
%changelog