Browse Source

Enable using PBR for package library

Updated promenade packaging scripts to use pbr.
This was done to make sure all required packages
for promenade package library are pulled, when another
moudle does git pull to use promenade package library.

Change-Id: I820ac6513c42456d52f92dab72dba2a34d8b437b
changes/51/612551/4
Ahmad Mahmoudi 3 years ago
parent
commit
a6e8fdbe22
4 changed files with 34 additions and 17 deletions
  1. +3
    -0
      Dockerfile
  2. +28
    -0
      setup.cfg
  3. +2
    -16
      setup.py
  4. +1
    -1
      test-requirements.txt

+ 3
- 0
Dockerfile View File

@ -31,6 +31,9 @@ WORKDIR /opt/promenade
ENV PORT 9000
EXPOSE $PORT
# Setting promenade version for BPR
ENV PBR_VERSION 0.8.0
ENTRYPOINT ["/opt/promenade/entrypoint.sh"]
RUN set -ex \


+ 28
- 0
setup.cfg View File

@ -0,0 +1,28 @@
[metadata]
name = promenade
summary = 'Promenade is a tool for bootstrapping a resilient '
'Kubernetes cluster and managing its life-cycle via '
'Helm charts.
description-file = README.md
author = The Airship Authors
home-page = https://github.com/openstack/airship-promenade
classifier =
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
[files]
packages =
promenade
data_files =
schemas = schemas/*
templates = templates/*
[entry_points]
console_scripts =
promenade=promenade.cli:promenade

+ 2
- 16
setup.py View File

@ -17,20 +17,6 @@
from setuptools import setup
setup(
setup_requires=['setuptools>=17.1'],
name='promenade',
version='0.8.0',
packages=['promenade'],
description=('Promenade is a tool for bootstrapping a resilient '
'Kubernetes cluster and managing its life-cycle via Helm charts.'),
url='https://github.com/openstack/airship-promenade',
author='The Airship Authors',
license='Apache 2.0',
package_data={
'schemas': 'schemas/*',
'templates': 'templates/*',
},
entry_points={
'console_scripts': 'promenade=promenade.cli:promenade',
},
setup_requires=['setuptools>=17.1', 'pbr>=2.0.0'],
pbr=True
)

+ 1
- 1
test-requirements.txt View File

@ -1,5 +1,5 @@
pytest
flake8>=3.3.0
flake8==2.6.2
bandit>=1.5
yapf==0.24.0
sphinx>=1.6.2


Loading…
Cancel
Save