Skip to content

Commit

Permalink
migrate to setup.cfg (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
  • Loading branch information
greut authored Jul 21, 2020
1 parent 84c8ad9 commit e661baa
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 59 deletions.
51 changes: 49 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,56 @@
[wheel]
universal = 1
[metadata]
name = cs
version = 3.0.0
url = https://github.com/exoscale/cs
author = Bruno Renié
description = A simple yet powerful CloudStack API client for Python and the command-line.
long_description = file: README.rst
license = BSD
license_file = LICENSE
classifiers =
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8

[options]
packages = find:
include_package_data = true
zip_safe = false
install_requires =
pytz
requests
setup_requires =
pytest-runner
tests_require =
aiohttp
pytest-cache
pytest-cov
pytest

[options.packages.find]
exclude = tests

[options.entry_points]
console_scripts =
cs = cs:main

[options.extras_require]
async =
aiohttp
highlight =
pygments

[aliases]
test = pytest

[wheel]
universal = 1

[tool:pytest]
addopts = --cov=cs --cov-report=term-missing cs tests.py

Expand Down
59 changes: 2 additions & 57 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,6 @@
A simple yet powerful CloudStack API client for Python and the command-line.
"""

from __future__ import unicode_literals
from setuptools import setup

import sys
from codecs import open
from setuptools import find_packages, setup

with open('README.rst', 'r', encoding='utf-8') as f:
long_description = f.read()

install_requires = ['pytz', 'requests']
extras_require = {
'highlight': ['pygments'],
}
tests_require = [
'pytest',
'pytest-cache',
'pytest-cov',
]

if sys.version_info < (3, 0):
tests_require.append("mock")
elif sys.version_info >= (3, 5):
extras_require["async"] = ["aiohttp"]
tests_require.append("aiohttp")

setup(
name='cs',
version='3.0.0',
url='https://github.com/exoscale/cs',
license='BSD',
author='Bruno Renié',
description=__doc__.strip(),
long_description=long_description,
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
classifiers=(
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
),
setup_requires=['pytest-runner'],
install_requires=install_requires,
extras_require=extras_require,
tests_require=tests_require,
entry_points={
'console_scripts': [
'cs = cs:main',
],
},
)
setup()

0 comments on commit e661baa

Please sign in to comment.