diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fed528d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index e69de29..0a7034a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -0,0 +1,34 @@ +[metadata] +name = dbus-python-client-gen +author = Anne Mulhern +author_email = amulhern@redhat.com +url = https://github.com/stratis-storage/dbus-python-client-gen +description = transforms values into properly wrapped dbus-python objects +license = MPL-2.0 +long_description = file: README.rst +long_description_content_type = text/rst +version = attr: dbus_python_client_gen._version.__version__ +platforms = + Linux +classifiers= + Development Status :: 4 - Beta + Intended Audience :: Developers + License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0) + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + Topic :: Software Development :: Libraries + Topic :: Software Development :: Libraries :: Python Modules + +[options] +install_requires = + dbus-python + into-dbus-python>=0.8 + +package_dir = + =src + +[options.packages.find] +where=src diff --git a/setup.py b/setup.py index b446b7c..8183dfe 100644 --- a/setup.py +++ b/setup.py @@ -2,50 +2,7 @@ Python packaging file for setup tools. """ -# isort: STDLIB -import os - # isort: THIRDPARTY import setuptools - -def local_file(name): - """ - Function to obtain the relative path of a filename. - """ - return os.path.relpath(os.path.join(os.path.dirname(__file__), name)) - - -with open(local_file("src/dbus_python_client_gen/_version.py"), encoding="utf-8") as o: - exec(o.read()) # pylint: disable=exec-used - -with open(local_file("README.rst"), encoding="utf-8") as o: - long_description = o.read() - -setuptools.setup( - name="dbus-python-client-gen", - version=__version__, # pylint: disable=undefined-variable - author="Anne Mulhern", - author_email="amulhern@redhat.com", - description="transforms values into properly wrapped dbus-python objects", - long_description=long_description, - long_description_content_type="text/x-rst", - platforms=["Linux"], - license="MPL-2.0", - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)" - "Operating System :: POSIX :: Linux", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", - "Topic :: Software Development :: Libraries", - "Topic :: Software Development :: Libraries :: Python Modules", - ], - install_requires=["dbus-python", "into-dbus-python>=0.08"], - package_dir={"": "src"}, - packages=setuptools.find_packages("src"), - url="https://github.com/mulkieran/dbus-python-client-gen", -) +setuptools.setup()