Skip to content

Commit

Permalink
New version for the Debian package, small adjusts in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Mar 13, 2020
1 parent 7e668af commit 38ebe9f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
kibom.inti-cmnb (1.6.1-1) testing; urgency=medium

* New upstream version. Note that the style changed.

-- Salvador Eduardo Tropea <[email protected]> Fri, 13 Mar 2020 09:22:03 -0300

kibom.inti-cmnb (1.52-1) testing; urgency=low

* Initial release.
Expand Down
24 changes: 18 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
#!/usr/bin/python3
import io
import os
import re
import sys
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'
EMAIL = '[email protected]'
AUTHOR = 'Oliver Henry Walters'

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)

# Find the version
with open('KiBOM_CLI.py') as f:
for line in f:
z=re.match('KIBOM_VERSION\s+=\s+\"([\d\.]+)\"',line)
if z:
version=z.groups()[0]
break
try:
print('Version is '+version)
except:
print('Can\'t find version!')
sys.exit(1)

setup(name=NAME,
version=about['KIBOM_VERSION'],
version=version,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 38ebe9f

Please sign in to comment.