Merge "Convert setup to use pbr"

This commit is contained in:
Zuul 2019-05-21 03:38:09 +00:00 committed by Gerrit Code Review
commit dc4984b97b
5 changed files with 77 additions and 55 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@ build/
.tox/*
env/*
cover/*
.vscode/
venv/

View File

@ -1,9 +0,0 @@
include requirements.txt
include test-requirements.txt
include README.md
include package_readme.rst
graft conf
graft adjutant/api/v*/templates
graft adjutant/notifications/templates
graft adjutant/notifications/*/templates

18
adjutant/version.py Normal file
View File

@ -0,0 +1,18 @@
# Copyright (C) 2019 Catalyst IT Ltd
#
# 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.
import pbr.version
version_info = pbr.version.VersionInfo("python-adjutant")
version_string = version_info.version_string()

41
setup.cfg Normal file
View File

@ -0,0 +1,41 @@
[metadata]
name = python-adjutant
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
summary = An admin task workflow service for openstack.
description-file = package_readme.rst
description-content-type = text/x-rst; charset=UTF-8
home-page = https://opendev.org/openstack/adjutant
project_urls =
Bug Tracker = https://storyboard.openstack.org/#!/project/openstack/adjutant
Documentation = https://adjutant.readthedocs.io/en/latest/
Source Code = https://opendev.org/openstack/adjutant
license = Apache-2
classifier =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Framework :: Django :: 1.11
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.6
Environment :: OpenStack
keywords =
openstack
keystone
users
tasks
registration
workflow
[build_sphinx]
builders = html, man
source-dir = doc/source
build-dir = doc/build
all-files = 1
warning-is-error = 1
[entry_points]
console_scripts =
adjutant-api = adjutant:management_command

View File

@ -1,50 +1,20 @@
from setuptools import setup, find_packages
# Copyright (C) 2019 Catalyst IT Ltd
#
# 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.
with open('requirements.txt') as f:
required = f.readlines()
with open('package_readme.rst') as file:
long_description = file.read()
from setuptools import setup
setup(
name='python-adjutant',
version='0.2.2',
description='An admin task workflow service for openstack.',
long_description=long_description,
url='https://github.com/catalyst/adjutant',
author='Adrian Turjak',
author_email='adriant@catalyst.net.nz',
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Framework :: Django :: 1.11',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Environment :: OpenStack',
],
command_options={
'build_sphinx': {
'build_dir': ('setup.py', 'doc/build'),
'source_dir': ('setup.py', 'doc/source'),
}
},
keywords='openstack keystone users tasks registration workflow',
packages=find_packages(),
package_data={
'adjutant': [
'api/v*/templates/*.txt',
'notifications/templates/*.txt',
'notifications/*/templates/*.txt']},
install_requires=required,
entry_points={
'console_scripts': [
'adjutant-api = adjutant:management_command',
],
}
setup_requires=['pbr'],
pbr=True,
)