diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4d3f325 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include MANIFEST.in +include LICENSE.md +include README.md diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00661e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +#!/usr/bin/make + +deb: + fakeroot dpkg-buildpackage -uc -b + +deb_clean: + fakeroot debian/rules clean + +.PHONY: deb deb_clean diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..fffa2cb --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,5 @@ +kibom.inti-cmnb for Debian + +This KiBoM has various patches and isn't the official one. + + -- Salvador Eduardo Tropea Thu, 12 Mar 2020 08:26:42 -0300 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9c7d810 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +kibom.inti-cmnb (1.52-1) testing; urgency=low + + * Initial release. + + -- Salvador Eduardo Tropea Thu, 12 Mar 2020 08:26:42 -0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8f7d5d4 --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: kibom.inti-cmnb +Section: electronics +Priority: optional +Maintainer: Salvador Eduardo Tropea +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ea84366 --- /dev/null +++ b/debian/copyright @@ -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 + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..81cf197 --- /dev/null +++ b/debian/rules @@ -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 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..00131ee --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1,2 @@ +#abort-on-upstream-changes +#unapply-patches diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..be0e4c3 --- /dev/null +++ b/debian/watch @@ -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) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3803498 --- /dev/null +++ b/setup.py @@ -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' +)