Skip to content

Commit

Permalink
Added Debian packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Mar 12, 2020
1 parent 05588b5 commit 26ddbca
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include MANIFEST.in
include LICENSE.md
include README.md
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make

deb:
fakeroot dpkg-buildpackage -uc -b

deb_clean:
fakeroot debian/rules clean

.PHONY: deb deb_clean
5 changes: 5 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kibom.inti-cmnb for Debian

This KiBoM has various patches and isn't the official one.

-- Salvador Eduardo Tropea <[email protected]> Thu, 12 Mar 2020 08:26:42 -0300
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kibom.inti-cmnb (1.52-1) testing; urgency=low

* Initial release.

-- Salvador Eduardo Tropea <[email protected]> Thu, 12 Mar 2020 08:26:42 -0300
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Source: kibom.inti-cmnb
Section: electronics
Priority: optional
Maintainer: Salvador Eduardo Tropea <[email protected]>
Build-Depends: debhelper (>=11~), dh-python, python-all, python3-all
Standards-Version: 4.1.4
Homepage: https://github.com/INTI-CMNB/KiBoM
X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2

Package: kibom.inti-cmnb
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python:Depends}
Description: Configurable BoM generation tool for KiCad
Can generate CSV, HTML, XML and XLSX Bill of Materials for KiCad projects.
The script can be used from the command line or as a KiCad BoM generator.
35 changes: 35 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: kibom.inti-cmnb
Source: https://github.com/INTI-CMNB/KiBoM
#
# Please double check copyright with the licensecheck(1) command.

Files: KiBOM_CLI.py
MANIFEST.in
README.md
bomlib/__init__.py
bomlib/bom_writer.py
bomlib/columns.py
bomlib/component.py
bomlib/csv_writer.py
bomlib/html_writer.py
bomlib/netlist_reader.py
bomlib/preferences.py
bomlib/sort.py
bomlib/units.py
bomlib/version.py
bomlib/xlsx_writer.py
bomlib/xml_writer.py
example/bom.png
example/html.png
example/html_ex.png
example/ini.png
example/schem.png
example/usage.png
setup.cfg
setup.py
tests/common.bash
tests/sanity.bash
Copyright: 2016 KiBOM
License: MIT

1 change: 1 addition & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# You must remove unused comment lines for the released package.
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1

%:
dh $@ --with python2,python3 --buildsystem=pybuild
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/source/local-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#abort-on-upstream-changes
#unapply-patches
3 changes: 3 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# You must remove unused comment lines for the released package.
version=3
https://github.com/INTI-CMNB/KiBoM/tags .*/(\d[\d\.]*)\.(?:tar.gz|tar.bz2|tar.xz)
46 changes: 46 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/python3
import io
import os
from distutils.core import setup

# Package meta-data.
NAME = 'kibom'
NAME_PKG = 'bomlib'
DESCRIPTION = 'Configurable BoM generation tool for KiCad'
URL = 'https://github.com/INTI-CMNB/KiBoM/'
EMAIL = 'unknown'
AUTHOR = 'Oliver'

here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
about = {}
with open(os.path.join(here, NAME_PKG, 'version.py')) as f:
exec(f.read(), about)

setup(name=NAME,
version=about['KIBOM_VERSION'],
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
url=URL,
packages=[NAME_PKG],
package_dir={NAME_PKG: NAME_PKG},
scripts=['KiBOM_CLI.py'],
install_requires=['xlswriter'],
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
platforms = 'POSIX',
license = 'MIT'
)

0 comments on commit 26ddbca

Please sign in to comment.