Rename back to PBR.
Change-Id: I13ee7fab7858231b0fa17f9116176a09184e8b0e
This commit is contained in:
parent
5e2d84c555
commit
dc195881ba
@ -1,4 +1,4 @@
|
|||||||
[gerrit]
|
[gerrit]
|
||||||
host=review.openstack.org
|
host=review.openstack.org
|
||||||
port=29418
|
port=29418
|
||||||
project=openstack/oslo.packaging.git
|
project=openstack-dev/pbr.git
|
||||||
|
17
README.rst
17
README.rst
@ -1,7 +1,7 @@
|
|||||||
Introduction
|
Introduction
|
||||||
============
|
============
|
||||||
|
|
||||||
oslo.packaging provides a set of default python packaging configuration and
|
pbr provides a set of default python packaging configuration and
|
||||||
behaviors. It is implemented as a setup hook for d2to1 which allows us to
|
behaviors. It is implemented as a setup hook for d2to1 which allows us to
|
||||||
manipulate the setup.cfg information before it is passed to setup.py.
|
manipulate the setup.cfg information before it is passed to setup.py.
|
||||||
|
|
||||||
@ -23,14 +23,14 @@ into the sphinx config.
|
|||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
oslo.packaging requires a distribution to use distribute. Your distribution
|
pbr requires a distribution to use distribute. Your distribution
|
||||||
must include a distutils2-like setup.cfg file, and a minimal setup.py script.
|
must include a distutils2-like setup.cfg file, and a minimal setup.py script.
|
||||||
|
|
||||||
A simple sample can be found in oslo.packaging s own setup.cfg
|
A simple sample can be found in pbr s own setup.cfg
|
||||||
(it uses its own machinery to install itself)::
|
(it uses its own machinery to install itself)::
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
name = oslo.packaging
|
name = pbr
|
||||||
author = OpenStack Foundation
|
author = OpenStack Foundation
|
||||||
author-email = openstack-dev@lists.openstack.org
|
author-email = openstack-dev@lists.openstack.org
|
||||||
summary = OpenStack's setup automation in a reuable form
|
summary = OpenStack's setup automation in a reuable form
|
||||||
@ -51,10 +51,9 @@ A simple sample can be found in oslo.packaging s own setup.cfg
|
|||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
oslo
|
oslo
|
||||||
oslo.packaging
|
|
||||||
[hooks]
|
[hooks]
|
||||||
setup-hooks =
|
setup-hooks =
|
||||||
oslo.packaging.hooks.setup_hook
|
pbr.hooks.setup_hook
|
||||||
|
|
||||||
The minimal setup.py should look something like this::
|
The minimal setup.py should look something like this::
|
||||||
|
|
||||||
@ -63,12 +62,12 @@ The minimal setup.py should look something like this::
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
setup_requires=['d2to1', 'oslo.packaging'],
|
setup_requires=['d2to1', 'pbr'],
|
||||||
d2to1=True,
|
d2to1=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
Note that it's important to specify `d2to1=True` or else the
|
Note that it's important to specify `d2to1=True` or else the pbr functionality
|
||||||
oslo.packaging functionality will not be enabled.
|
will not be enabled.
|
||||||
|
|
||||||
It should also work fine if additional arguments are passed to `setup()`,
|
It should also work fine if additional arguments are passed to `setup()`,
|
||||||
but it should be noted that they will be clobbered by any options in the
|
but it should be noted that they will be clobbered by any options in the
|
||||||
|
@ -24,7 +24,7 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'oslo.packaging'
|
project = u'pbr'
|
||||||
copyright = u'2013, OpenStack Foundation'
|
copyright = u'2013, OpenStack Foundation'
|
||||||
|
|
||||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
oslo.packaging
|
pbr - Python Build Reasonableness
|
||||||
==============
|
=================================
|
||||||
|
|
||||||
An OpenStack library for managing setuptools packaging needs in a consistent
|
A library for managing setuptools packaging needs in a consistent manner.
|
||||||
manner.
|
|
||||||
|
PBR is not a library about beer.
|
||||||
|
|
||||||
Contents
|
Contents
|
||||||
--------
|
--------
|
||||||
|
14
pbr/tests/__init__.py
Normal file
14
pbr/tests/__init__.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
# implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
10
setup.cfg
10
setup.cfg
@ -1,11 +1,11 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = oslo.packaging
|
name = pbr
|
||||||
author = OpenStack
|
author = OpenStack
|
||||||
author-email = openstack-dev@lists.openstack.org
|
author-email = openstack-dev@lists.openstack.org
|
||||||
summary = OpenStack's setup automation in a reusable form
|
summary = OpenStack's setup automation in a reusable form
|
||||||
description-file =
|
description-file =
|
||||||
README.rst
|
README.rst
|
||||||
home-page = http://pypi.python.org/pypi/oslo.packaging
|
home-page = http://pypi.python.org/pypi/pbr
|
||||||
classifier =
|
classifier =
|
||||||
Development Status :: 4 - Beta
|
Development Status :: 4 - Beta
|
||||||
Environment :: Console
|
Environment :: Console
|
||||||
@ -18,10 +18,8 @@ classifier =
|
|||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
oslo
|
pbr
|
||||||
namespace_packages =
|
|
||||||
oslo
|
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
setup-hooks =
|
setup-hooks =
|
||||||
oslo.packaging.hooks.setup_hook
|
pbr.hooks.setup_hook
|
||||||
|
7
tox.ini
7
tox.ini
@ -16,8 +16,7 @@ sitepackages = True
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands = flake8
|
||||||
pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*.egg .
|
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[testenv:pyflakes]
|
||||||
deps = pyflakes
|
deps = pyflakes
|
||||||
@ -30,3 +29,7 @@ commands =
|
|||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
exclude = .venv,.tox,dist,doc,*.egg
|
||||||
|
show-source = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user