Skip to content

Commit 6196b9c

Browse files
authored
Merge pull request #85 from mulkieran/more-packaging
More packaging
2 parents 19254f6 + 58fe9f6 commit 6196b9c

File tree

3 files changed

+38
-44
lines changed

3 files changed

+38
-44
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[metadata]
2+
name = dbus-python-client-gen
3+
author = Anne Mulhern
4+
author_email = [email protected]
5+
url = https://github.com/stratis-storage/dbus-python-client-gen
6+
description = transforms values into properly wrapped dbus-python objects
7+
license = MPL-2.0
8+
long_description = file: README.rst
9+
long_description_content_type = text/rst
10+
version = attr: dbus_python_client_gen._version.__version__
11+
platforms =
12+
Linux
13+
classifiers=
14+
Development Status :: 4 - Beta
15+
Intended Audience :: Developers
16+
License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
17+
Operating System :: POSIX :: Linux
18+
Programming Language :: Python
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: Implementation :: CPython
21+
Programming Language :: Python :: Implementation :: PyPy
22+
Topic :: Software Development :: Libraries
23+
Topic :: Software Development :: Libraries :: Python Modules
24+
25+
[options]
26+
install_requires =
27+
dbus-python
28+
into-dbus-python>=0.8
29+
30+
package_dir =
31+
=src
32+
33+
[options.packages.find]
34+
where=src

setup.py

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,7 @@
22
Python packaging file for setup tools.
33
"""
44

5-
# isort: STDLIB
6-
import os
7-
85
# isort: THIRDPARTY
96
import setuptools
107

11-
12-
def local_file(name):
13-
"""
14-
Function to obtain the relative path of a filename.
15-
"""
16-
return os.path.relpath(os.path.join(os.path.dirname(__file__), name))
17-
18-
19-
with open(local_file("src/dbus_python_client_gen/_version.py"), encoding="utf-8") as o:
20-
exec(o.read()) # pylint: disable=exec-used
21-
22-
with open(local_file("README.rst"), encoding="utf-8") as o:
23-
long_description = o.read()
24-
25-
setuptools.setup(
26-
name="dbus-python-client-gen",
27-
version=__version__, # pylint: disable=undefined-variable
28-
author="Anne Mulhern",
29-
author_email="[email protected]",
30-
description="transforms values into properly wrapped dbus-python objects",
31-
long_description=long_description,
32-
long_description_content_type="text/x-rst",
33-
platforms=["Linux"],
34-
license="MPL-2.0",
35-
classifiers=[
36-
"Development Status :: 4 - Beta",
37-
"Intended Audience :: Developers",
38-
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)"
39-
"Operating System :: POSIX :: Linux",
40-
"Programming Language :: Python",
41-
"Programming Language :: Python :: 3",
42-
"Programming Language :: Python :: Implementation :: CPython",
43-
"Programming Language :: Python :: Implementation :: PyPy",
44-
"Topic :: Software Development :: Libraries",
45-
"Topic :: Software Development :: Libraries :: Python Modules",
46-
],
47-
install_requires=["dbus-python", "into-dbus-python>=0.08"],
48-
package_dir={"": "src"},
49-
packages=setuptools.find_packages("src"),
50-
url="https://github.com/mulkieran/dbus-python-client-gen",
51-
)
8+
setuptools.setup()

0 commit comments

Comments
 (0)