forked from codebom/codebom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (25 loc) · 913 Bytes
/
setup.py
File metadata and controls
30 lines (25 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from setuptools import setup, find_packages
import subprocess
import os
import re
version_py = os.path.join(os.path.dirname(__file__), 'codebom', '_version.py')
if not os.path.exists(version_py):
with open(version_py, 'w') as hdl:
version = str(subprocess.check_output(['git', 'describe', '--tags'])).strip()
hdl.write('__version__ = ' + repr(version))
exec(open(version_py).read())
setup(
name="codebom",
description='Command-line tool to create, validate and analyze a Bill of Materials',
author='Greg Fitzgerald',
author_email='garious@gmail.com',
url='https://github.com/codebom/codebom',
version=re.sub(r'-(\d+)-', r'+\1.', __version__), # Make PEP 440 compliant
packages=find_packages(),
package_data={'codebom': ['licenses/*.txt']},
scripts=['bin/codebom'],
install_requires=[
'ruamel.yaml~=0.13.13',
'graphviz~=0.5.2',
]
)