Verified Commit 0a06b63d authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Convert to setuptools, add README.md and CONTRIBUTORS



Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 596b4433
Andrej Shadura <andrew.shadura@collabora.co.uk>
Andrew Lee (李健秋) <andrew.lee@collabora.co.uk>
Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>
Simon McVittie <simon.mcvittie@collabora.co.uk>
osc dput
========
The dput plugin for Open Build Service commander is designed to help
quickly upload Debian source packages to OBS without needing to manually
check out the source, add new files, remove old files and commit it again.
`osc dput` automates the submission process, automagically extracting
the list of files and the commit message from the `.changes` file.
Installation
============
To install osc-plugin-clone, type:
./setup.py install
At the moment, installing to a user's home directory isn't supported.
License
=======
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License version 2
text for more details.
You should have received a copy of the GNU General Public
License along with this package; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA
Authors
=======
For the list of contributors, see CONTRIBUTORS.
......@@ -4,9 +4,7 @@ import sys
import osc.cmdln as cmdln
sys.path.insert(0, '/usr/share/osc-plugins-dput')
import osc_plugins_dput
sys.path.remove('/usr/share/osc-plugins-dput')
import osc_plugin_dput
@cmdln.option('--maintained-in-git', action='store_true',
help='add MAINTAINED_IN_GIT.txt')
......@@ -24,7 +22,7 @@ def do_dput(self, subcmd, opts, proj_name, dsc_file):
"""
# in older versions of osc, this ends up in the class namespace (!)
if hasattr(self, "osc_plugins_dput"):
osc_plugins_dput = self.osc_plugins_dput
if hasattr(self, "osc_plugin_dput"):
osc_plugin_dput = self.osc_plugin_dput
osc_plugins_dput.do_dput(self, subcmd, opts, proj_name, dsc_file)
osc_plugin_dput.do_dput(self, subcmd, opts, proj_name, dsc_file)
from .main import do_dput
[metadata]
name = osc-plugin-dput
version = 20180227.0
description = dput plugin for Open Build Service commander
long_description = file:README.md
url = https://gitlab.collabora.com/obs/osc-plugin-dput
license = GPL-2+
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Software Development :: Build Tools
[options]
packages = find:
install_requires =
osc >= 0.167.1
#!/usr/bin/env python
import os
from setuptools import setup
setup(
data_files = [
(os.path.join('lib', 'osc-plugins'), ['dput.py']),
]
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment