Merge pull request #1 from gnuoy/add-setup-tools

Add setuptools config
This commit is contained in:
Alex Kavanagh 2020-07-31 15:47:26 +01:00 committed by GitHub
commit cc10f29d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 1 deletions

View File

18
setup.cfg Normal file
View File

@ -0,0 +1,18 @@
[metadata]
name = interface_ceph_client
summary = Charm interface for Ceph Client using Operator Framework
version = 0.0.1.dev1
description-file =
README.rst
author = OpenStack Charmers
author-email = openstack-charmers@lists.ubuntu.com
url = https://github.com/openstack-charmers/ops-interface-ceph-client
classifier =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
Topic :: System
Topic :: System :: Installation/Setup
opic :: System :: Software Distribution
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
License :: OSI Approved :: Apache Software License

38
setup.py Normal file
View File

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Canonical 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.
"""Module used to setup the interface_ceph_client framework."""
from __future__ import print_function
from setuptools import setup, find_packages
version = "0.0.1.dev1"
install_require = [
'charmhelpers',
'ops',
]
tests_require = [
'tox >= 2.3.1',
]
setup(
license='Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
packages=find_packages(exclude=["unit_tests"]),
zip_safe=False,
install_requires=install_require,
)

View File

@ -26,7 +26,9 @@ from ops.testing import Harness
from charmhelpers.contrib.storage.linux.ceph import CephBrokerRq
from interface_ceph_client import CephClientRequires, BrokerAvailableEvent
from interface_ceph_client.ceph_client import (
CephClientRequires,
BrokerAvailableEvent)
class TestCephClientRequires(unittest.TestCase):