forked from SchrodingersGat/KiBoM
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version for the Debian package, small adjusts in setup.py
- Loading branch information
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
|