-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from mulkieran/more-packaging
More packaging
- Loading branch information
Showing
3 changed files
with
38 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() |