Skip to content
Snippets Groups Projects
Commit c244c523 authored by Jonas Smedegaard's avatar Jonas Smedegaard
Browse files

initial debian packaging

parent a48e3eb5
No related branches found
No related tags found
No related merge requests found
python-userpath (1.3.0-1) experimental; urgency=low
* initial packaging release
closes: bug#951485
-- Jonas Smedegaard <dr@jones.dk> Mon, 17 Feb 2020 12:11:55 +0100
debian/_silkaj
debian/bash-completion
debian/silkaj.1
Source: python-userpath
Section: utils
Priority: optional
Maintainer: Jonas Smedegaard <dr@jones.dk>
Build-Depends:
debhelper-compat (= 12),
dh-sequence-python3,
fish <!nocheck>,
help2man,
python3,
python3-click <!nocheck>,
python3-coverage <!nocheck>,
python3-distro <!nocheck>,
python3-pytest <!nocheck>,
python3-setuptools,
xonsh <!nocheck>,
zsh <!nocheck>,
Standards-Version: 4.5.0
Vcs-Git: https://salsa.debian.org/debian/python-userpath.git
Vcs-Browser: https://salsa.debian.org/debian/python-userpath
Homepage: https://github.com/ofek/userpath
Rules-Requires-Root: no
Package: userpath
Architecture: all
Depends:
python3-userpath (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
Description: tool for adding locations to the user PATH - CLI tool
userpath is a command-line tool and Python library
to add custom locations to user PATH.
Only user-specific PATH is changed,
avoiding the need for elevated privileges.
.
This package provides the command-line tool userpath.
Package: python3-userpath
Architecture: all
Depends:
python3-click,
${misc:Depends},
${python3:Depends},
Recommends:
python3-distro,
python3-psutil,
Description: tool for adding locations to the user PATH - Python3 library
userpath is a command-line tool and Python library
to add custom locations to user PATH.
Only user-specific PATH is changed,
avoiding the need for elevated privileges.
.
This package provides the userpath library for Python 3.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: userpath
Upstream-Contact: https://github.com/ofek/userpath/issues
Source: https://github.com/ofek/userpath
Files: *
Copyright: 2017, Ofek Lev <ofekmeister@gmail.com>
License: Apache-2 or Expat
Files: debian/*
Copyright: 2016-2020, Jonas Smedegaard <dr@jones.dk>
License-Grant:
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 3 of the License, or (at your option) any later version.
License: GPL-3+
License: Apache-2
License-Reference: /usr/share/common-licenses/Apache-2.0
License: Expat
Permission is hereby granted, free of charge,
to any person obtaining a copy of this software
and associated documentation files (the "Software"),
to deal in the Software without restriction,
including without limitation the rights
to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS",
WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License: GPL-3+
License-Reference: /usr/share/common-licenses/GPL-3
#!/bin/sh
# Copyright © 2016-2019 Jonas Smedegaard <dr@jones.dk>
# Description: helper script to update copyright_hints
#
# 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 3, 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 for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -eu
# * extract metadata from graphics files before copyright check
# * skip data files unlikely to contain copyright/licensing info
export DEB_COPYRIGHT_EXTRACT_EXTS="jpg png"
export DEB_COPYRIGHT_CHECK_IGNORE_EXTS="wav"
make -f /usr/share/cdbs/1/rules/utils.mk pre-build || true
make -f /usr/share/cdbs/1/rules/utils.mk clean DEB_COPYRIGHT_CHECK_STRICT=1
# unconditionally merge changes - safe to do with git-tracked package
[ ! -f debian/copyright_newhints ] || mv -f debian/copyright_newhints debian/copyright_hints
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: FIXME
Upstream-Contact: FIXME
Source: FIXME
Disclaimer: Autogenerated by CDBS
Files: HISTORY.rst
MANIFEST.in
README.rst
debian/control
debian/gbp.conf
debian/python3-userpath.install
debian/rules
debian/source/format
debian/userpath.install
debian/watch
requirements-dev.txt
setup.py
tests/conftest.py
tests/docker/debian
tests/docker/docker-compose.yaml
tests/docker/requirements.txt
tests/test_bash.py
tests/test_fish.py
tests/test_sh.py
tests/test_windows.py
tests/test_xonsh.py
tests/test_zsh.py
tests/utils.py
tox.ini
userpath/__init__.py
userpath/__main__.py
userpath/cli.py
userpath/core.py
userpath/interface.py
userpath/shells.py
userpath/utils.py
Copyright: NONE
License: UNKNOWN
FIXME
Files: LICENSE-MIT
Copyright: 2017, Ofek Lev
License: Expat
FIXME
Files: debian/copyright-check
Copyright: 2016-2019, Jonas Smedegaard <dr@jones.dk>
check
License: GPL-3+
FIXME
Files: LICENSE-APACHE
Copyright: 2017, Ofek Lev
License. Subject to the terms and conditions of
You must retain, in the Source form of any Derivative Works
license to reproduce, prepare Derivative Works of,
patent, trademark, and
License: UNKNOWN
FIXME
Files: debian/source/lintian-overrides
Copyright: GPL-3
GPL-3+
gpl-3
gpl-3+
License: UNKNOWN
FIXME
# Configuration file for git-buildpackage and friends
[DEFAULT]
pristine-tar = True
sign-tags = True
filter = [ '*/.git*', '.dockerignore' ]
debian-branch = debian/master
usr/lib/python3*
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
# detect if build targets experimental suite (or is a draft)
DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
DH_OPTIONS = -O--buildsystem=pybuild
cmd = userpath
_ENV = $(strip \
PATH="$(CURDIR)/debian/tmp/usr/bin:$(PATH)" \
PYTHONPATH="$(CURDIR)/debian/tmp/usr/lib/$(shell py3versions -d)/dist-packages")
# generate manpage with help2man from --help option of python script
_mkman = $(_ENV) \
help2man $(if $3,--name "$(strip $3)") --no-info --version-string $(DEB_VERSION_UPSTREAM) --output $2 $1 \
|| { $(_ENV) $1 --help; false; }
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dh_auto_test $(if $(DEB_SUITE_EXP),|| true)
endif
# * generate manpage based on --help option of script itself
override_dh_auto_install:
dh_auto_install
$(call _mkman, $(cmd), debian/$(cmd).1, \
tool for adding locations to the user PATH)
find debian/tmp/usr/lib -name '*.pyc' -delete
find debian/tmp/usr/lib -type d -empty -delete
%:
dh $@ $(DH_OPTIONS:-O%=%)
3.0 (quilt)
# License is in License-Reference field (see bug#786450)
missing-license-paragraph-in-dep5-copyright apache-2 *
missing-license-paragraph-in-dep5-copyright gpl-3\+ *
missing-license-text-in-dep5-copyright Apache-2 *
missing-license-text-in-dep5-copyright GPL-3\+ *
usr/bin
debian/userpath.1
version=4
# check: uscan --report
# update: gbp import-orig --upstream-vcs-tag=vX.Y.Z --uscan
opts=\
filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/,\
dversionmangle=s/[~+](dfsg|ds)\d*$//,repacksuffix=~dfsg \
https://github.com/ofek/userpath/tags \
.*?@ANY_VERSION@@ARCHIVE_EXT@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment