|
2 | 2 | Python packaging file for setup tools. |
3 | 3 | """ |
4 | 4 |
|
5 | | -# isort: STDLIB |
6 | | -import os |
7 | | - |
8 | 5 | # isort: THIRDPARTY |
9 | 6 | import setuptools |
10 | 7 |
|
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="amulhern@redhat.com", |
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