diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2205f77 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["pbr>=6.0.0", "setuptools>=64.0.0"] +build-backend = "pbr.build" + +[project] +requires-python = ">=3.8" +name = "python-chi" +authors = [ + {name = "University of Chicago", email = "dev@lists.chameleoncloud.org"}, +] +description = "Helper library for Chameleon Infrastructure (CHI) testbed" +dynamic = ["version"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Environment :: OpenStack", + "Intended Audience :: Science/Research", + "Intended Audience :: System Administrators", + "Operating System :: OS Independent", + "Programming Language :: Python", +] +readme = "README.rst" +license = {file = "LICENSE"} + +dependencies = [ + "fabric", + "keystoneauth1", + "openstacksdk", + "paramiko", + "python-blazarclient @ git+https://github.com/ChameleonCloud/python-blazarclient", + "python-cinderclient", + "python-glanceclient", + "python-ironicclient", + "python-manilaclient", + "python-neutronclient", + "python-novaclient", + "python-swiftclient", + "python-zunclient", + "ipython", + "ipywidgets", + "networkx", + "matplotlib", +] + +[project.optional-dependencies] +dev = [ + "black", + "pytest", + "pytest-mock", + "pytest-watch", + "requests_mock" +] + +[project.urls] +Homepage = "https://www.chameleoncloud.org" +Documentation = "https://python-chi.readthedocs.io/en/latest/" +Repository = "https://github.com/chameleoncloud/python-chi" + +[tool.setuptools] +packages = ["chi"] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index bc5832c..0000000 --- a/requirements.txt +++ /dev/null @@ -1,17 +0,0 @@ -fabric -keystoneauth1 -openstacksdk -paramiko -git+https://github.com/ChameleonCloud/python-blazarclient -python-cinderclient -python-glanceclient -python-ironicclient -python-manilaclient -python-neutronclient -python-novaclient -python-swiftclient -python-zunclient -ipython -ipywidgets -networkx -matplotlib diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 247ac61..0000000 --- a/setup.cfg +++ /dev/null @@ -1,27 +0,0 @@ -[metadata] -name = python-chi -summary = Helper library for Chameleon Infrastructure (CHI) testbed -description-file = README.rst -author = University of Chicago -author-email = dev@lists.chameleoncloud.org -home-page = https://www.chameleoncloud.org -classifier = - Development Status :: 4 - Beta - Environment :: Console - Environment :: OpenStack - Intended Audience :: Science/Research - Intended Audience :: System Administrators - Operating System :: OS Independent - Programming Language :: Python - -[files] -packages = - chi - -[options] -install_requires = - fabric - keystoneauth1 - openstacksdk - paramiko - requests diff --git a/setup.py b/setup.py index b8d7aaa..6ca97f1 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,4 @@ from setuptools import setup -setup( - setup_requires=["pbr"], - pbr=True, - version='{{VERSION_PLACEHOLDER}}' -) +setup(setup_requires=["pbr"]) diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 68d3d04..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -black -pytest -pytest-mock -pytest-watch -requests_mock diff --git a/tox.ini b/tox.ini index a1b7eca..01bed2f 100644 --- a/tox.ini +++ b/tox.ini @@ -5,8 +5,7 @@ envlist = py38 [testenv] usedevelop = True passenv = OS_* -deps = . - -r{toxinidir}/test-requirements.txt +deps = .[dev] changedir = tests commands = {posargs:pytest}