Skip to content

Commit

Permalink
Merge pull request #85 from mulkieran/more-packaging
Browse files Browse the repository at this point in the history
More packaging
  • Loading branch information
mulkieran authored Feb 23, 2023
2 parents 19254f6 + 58fe9f6 commit 6196b9c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 44 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
34 changes: 34 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[metadata]
name = dbus-python-client-gen
author = Anne Mulhern
author_email = [email protected]
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
45 changes: 1 addition & 44 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
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()

0 comments on commit 6196b9c

Please sign in to comment.