Skip to content
Snippets Groups Projects
Commit 6cce53d5 authored by Michael Fladischer's avatar Michael Fladischer
Browse files

Initial release (Closes: #1051637).

parent 2a2a531a
No related branches found
No related tags found
No related merge requests found
Showing
with 235 additions and 89 deletions
files
python-bitmath.debhelper.log
python-bitmath.postinst.debhelper
python-bitmath.prerm.debhelper
python-bitmath.substvars
python-bitmath/
usr/bin
File moved
bitmath (1.3.1.1-1~ppa1~trusty1) trusty; urgency=low
python-bitmath (1.3.3.1-1) unstable; urgency=low
* New release
* Initial release (Closes: #1051637).
-- Timothy Bielawa <timbielawa@gmail.com> Sun, 17 Jul 2016 11:59:48 +0000
bitmath (1.3.0.2-1~ppa1~trusty1) trusty; urgency=low
* First deb package release
-- Timothy Bielawa <timbielawa@gmail.com> Sat, 02 Jul 2016 15:52:37 +0000
-- Michael Fladischer <fladi@debian.org> Sun, 10 Sep 2023 18:51:13 +0000
7
Source: bitmath
Maintainer: Tim Bielawa <timbielawa@gmail.com>
Source: python-bitmath
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7.4.3)
Standards-Version: 3.9.5
Homepage: http://bitmath.readthedocs.io/en/latest/
Vcs-Browser: https://github.com/tbielawa/bitmath
Vcs-Git: https://github.com/tbielawa/bitmath.git
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders:
Michael Fladischer <fladi@debian.org>,
Build-Depends:
debhelper-compat (= 13),
dh-python,
libjs-mathjax,
pybuild-plugin-pyproject,
python3-all,
python3-mock,
python3-progressbar,
python3-pytest,
python3-setuptools,
python3-sphinx,
Standards-Version: 4.6.2
Homepage: https://github.com/tbielawa/bitmath
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-bitmath
Vcs-Git: https://salsa.debian.org/python-team/packages/python-bitmath.git
Rules-Requires-Root: no
Package: python-bitmath
Package: bitmath
Section: devel
Architecture: all
Homepage: http://bitmath.readthedocs.io/en/latest/
Depends: ${misc:Depends}, ${python:Depends}
Description: Pythonic module for representing and manipulating file sizes
bitmath simplifies many facets of interacting with file sizes in
various units. Examples include: converting between SI and NIST prefix
units (GiB to kB), converting between units of the same type (SI to
SI, or NIST to NIST), basic arithmetic operations (subtracting 42KiB
from 50GiB), and rich comparison operations (1024 Bytes == 1KiB),
bitwise operations, sorting, automatic best human-readable prefix
selection, and completely customizable formatting.
Depends:
python3-bitmath (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
Description: handle file sizes with different prefix notations
bitmath simplifies many facets of interacting with file sizes in various units.
Originally focusing on file size unit conversion, functionality now includes:
* Converting between SI and NIST prefix units (kB to GiB)
* Converting between units of the same type (SI to SI, or NIST to NIST)
* Automatic human-readable prefix selection (like in hurry.filesize)
* Basic arithmetic operations (subtracting 42KiB from 50GiB)
* Rich comparison operations (1024 Bytes == 1KiB)
* bitwise operations (<<, >>, &, |, ^)
* Reading a device's storage capacity (Linux/OS X support only)
* argparse integration as a custom type
* click integration as a custom parameter type
* progressbar integration as a better file transfer speed widget
* String parsing
* Sorting
.
In addition to the conversion and math operations, bitmath provides
human readable representations of values which are suitable for use in
interactive shells as well as larger scripts and applications. It can
also read the capacity of system storage devices. bitmath can parse
strings (like "1 KiB") into proper objects and has support for
integration with the argparse module as a custom argument type and the
progressbar module as a custom file transfer speed widget.
In addition to the conversion and math operations, bitmath provides human
readable representations of values which are suitable for use in interactive
shells as well as larger scripts and applications. The format produced for
these representations is customizable via the functionality included in stdlibs
string.format.
Package: python-bitmath-doc
Section: doc
Architecture: all
Depends:
libjs-mathjax,
${misc:Depends},
${sphinxdoc:Depends},
Description: handle file sizes with different prefix notations (Documentation)
bitmath simplifies many facets of interacting with file sizes in various units.
Originally focusing on file size unit conversion, functionality now includes:
* Converting between SI and NIST prefix units (kB to GiB)
* Converting between units of the same type (SI to SI, or NIST to NIST)
* Automatic human-readable prefix selection (like in hurry.filesize)
* Basic arithmetic operations (subtracting 42KiB from 50GiB)
* Rich comparison operations (1024 Bytes == 1KiB)
* bitwise operations (<<, >>, &, |, ^)
* Reading a device's storage capacity (Linux/OS X support only)
* argparse integration as a custom type
* click integration as a custom parameter type
* progressbar integration as a better file transfer speed widget
* String parsing
* Sorting
.
In addition to the conversion and math operations, bitmath provides human
readable representations of values which are suitable for use in interactive
shells as well as larger scripts and applications. The format produced for
these representations is customizable via the functionality included in stdlibs
string.format.
.
This package contains the documentation.
Package: python3-bitmath
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Suggests:
python-bitmath-doc,
Description: handle file sizes with different prefix notations (Python3 version)
bitmath simplifies many facets of interacting with file sizes in various units.
Originally focusing on file size unit conversion, functionality now includes:
* Converting between SI and NIST prefix units (kB to GiB)
* Converting between units of the same type (SI to SI, or NIST to NIST)
* Automatic human-readable prefix selection (like in hurry.filesize)
* Basic arithmetic operations (subtracting 42KiB from 50GiB)
* Rich comparison operations (1024 Bytes == 1KiB)
* bitwise operations (<<, >>, &, |, ^)
* Reading a device's storage capacity (Linux/OS X support only)
* argparse integration as a custom type
* click integration as a custom parameter type
* progressbar integration as a better file transfer speed widget
* String parsing
* Sorting
.
In addition to the conversion and math operations, bitmath provides human
readable representations of values which are suitable for use in interactive
shells as well as larger scripts and applications. The format produced for
these representations is customizable via the functionality included in stdlibs
string.format.
.
bitmath is thoroughly unittested, with almost 200 individual tests (a
number which is always increasing). bitmath's test-coverage is almost
always at 100%.
This package contains the Python 3 version of the library.
The MIT License (MIT)
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: python-bitmath
Upstream-Contact: Tim Bielawa <timbielawa@gmail.com>
Source: https://github.com/tbielawa/bitmath
Copyright © 2014 Tim Bielawa <timbielawa@gmail.com>
Files: *
Copyright: 2014, Tim Bielawa <timbielawa@gmail.com>
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:
Files: debian/*
Copyright: 2023, Michael Fladischer <fladi@debian.org>
License: Expat
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: 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.
README.rst
NEWS.rst
docsite/source/
README.rst
[DEFAULT]
debian-branch=debian/master
pristine-tar=true
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sun, 10 Sep 2023 20:18:30 +0000
Subject: Remove remote badges to prevent privacy issues.
---
docsite/source/index.rst | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/docsite/source/index.rst b/docsite/source/index.rst
index ed1582b..c57c663 100644
--- a/docsite/source/index.rst
+++ b/docsite/source/index.rst
@@ -1,16 +1,3 @@
-.. image:: https://api.travis-ci.org/tbielawa/bitmath.png
- :target: https://travis-ci.org/tbielawa/bitmath/
- :align: right
- :height: 19
- :width: 77
-
-.. image:: https://coveralls.io/repos/tbielawa/bitmath/badge.png?branch=master
- :target: https://coveralls.io/github/tbielawa/bitmath
- :align: right
- :height: 19
- :width: 77
-
-
bitmath
#######
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sun, 10 Sep 2023 20:21:32 +0000
Subject: Use packaged mathjax in documentation to prevent privacy breach.
---
docsite/source/conf.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docsite/source/conf.py b/docsite/source/conf.py
index a3b1725..d882004 100644
--- a/docsite/source/conf.py
+++ b/docsite/source/conf.py
@@ -256,3 +256,5 @@ texinfo_documents = [
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
+
+mathjax_path = "/usr/share/javascript/mathjax/MathJax.js"
0001-Remove-remote-badges-to-prevent-privacy-issues.patch
0002-Use-packaged-mathjax-in-documentation-to-prevent-pri.patch
setup.py
tests
Document: python-bitmath-doc
Title: bitmath Documentation
Author: Tim Bielawa <timbielawa@gmail.com>
Section: Programming/Python
Format: HTML
Index: /usr/share/doc/python-bitmath-doc/html/index.html
Files: /usr/share/doc/python-bitmath-doc/html/*.html
usr/lib/python3*/dist-packages/
#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.8.5 at
# Sat, 02 Jul 2016 15:52:37 +0000
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@ --with python2 --buildsystem=python_distutils
override_dh_auto_clean:
python setup.py clean -a
find . -name \*.pyc -exec rm {} \;
override_dh_auto_build:
python setup.py build --force
override_dh_auto_install:
python setup.py install --force --root=debian/python-bitmath --no-compile -O0 --install-layout=deb
override_dh_python2:
dh_python2 --no-guessing-versions
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
execute_before_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR) python3 -m sphinx -b html -d $(CURDIR)/docsite/.build/.doctrees -N $(CURDIR)/docsite/source $(CURDIR)/debian/python-bitmath-doc/usr/share/doc/python-bitmath-doc/html
endif
execute_after_dh_clean:
rm -rf $(CURDIR)/docsite/.build
Tests: upstream
Depends:
python3-all,
@,
@builddeps@,
Restrictions: allow-stderr
#!/bin/sh
set -e
cp -r tests ${AUTOPKGTEST_TMP}
cd ${AUTOPKGTEST_TMP}
for p in $(py3versions -s); do
$p -m pytest tests
done
Bug-Database: https://github.com/tbielawa/bitmath/issues
Bug-Submit: https://github.com/tbielawa/bitmath/issues/new
Repository: https://github.com/tbielawa/bitmath.git
Repository-Browse: https://github.com/tbielawa/bitmath
version=4
opts=filenamemangle=s/.*\/([\d\.]+.*)$/python-bithmath-$1/ \
https://github.com/tbielawa/bitmath/tags \
/tbielawa/bitmath/archive/refs/tags/([\d\.]+)\.tar\.gz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment