- Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=1
This commit is contained in:
commit
479c60dba9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
5
python-twine.changes
Normal file
5
python-twine.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 4 10:07:31 UTC 2014 - speilicke@suse.com
|
||||
|
||||
- Initial version
|
||||
|
88
python-twine.spec
Normal file
88
python-twine.spec
Normal file
@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package python-twine
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products 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/
|
||||
#
|
||||
|
||||
|
||||
Name: python-twine
|
||||
Version: 1.2.2
|
||||
Release: 0
|
||||
Summary: Collection of utilities for interacting with PyPI
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/dstufft/twine
|
||||
Source: https://pypi.python.org/packages/source/t/twine/twine-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
Requires: python-pkginfo
|
||||
Requires: python-requests
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
Requires: python-argparse
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
Twine is a utility for interacting with PyPI.
|
||||
|
||||
Currently it only supports uploading distributions.
|
||||
|
||||
|
||||
Why Should I Use This?
|
||||
----------------------
|
||||
|
||||
The biggest reason to use twine is that python setup.py upload uploads
|
||||
files over plaintext. This means anytime you use it you expose your username
|
||||
and password to a MITM attack. Twine uses only verified TLS to upload to PyPI
|
||||
protecting your credentials from theft.
|
||||
|
||||
Secondly it allows you to precreate your distribution files.
|
||||
python setup.py upload only allows you to upload something that you've
|
||||
created in the same command invocation. This means that you cannot test the
|
||||
exact file you're going to upload to PyPI to ensure that it works before
|
||||
uploading it.
|
||||
|
||||
Finally it allows you to pre-sign your files and pass the .asc files into
|
||||
the command line invocation
|
||||
(twine upload twine-1.0.1.tar.gz twine-1.0.1.tar.gz.asc). This enables you
|
||||
to be assured that you're typing your gpg passphrase into gpg itself and not
|
||||
anything else since *you* will be the one directly executing
|
||||
gpg --detach-sign -a <filename>.
|
||||
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
* Verified HTTPS Connections
|
||||
* Uploading doesn't require executing setup.py
|
||||
* Uploading files that have already been created, allowing testing of
|
||||
distributions before release
|
||||
|
||||
%prep
|
||||
%setup -q -n twine-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
3
twine-1.2.2.tar.gz
Normal file
3
twine-1.2.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af147c95f18b74e5fe83fce3a040d4b6510cd691126d36161d90891a8746cd55
|
||||
size 18019
|
Loading…
Reference in New Issue
Block a user