You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.1 KiB
63 lines
2.1 KiB
# -*- coding: utf-8 -*- |
|
from glob import glob |
|
from setuptools import find_packages |
|
from setuptools import setup |
|
import sponson |
|
from sponson.constants import ETC_DNSMASQ_CONF_DIR |
|
|
|
|
|
def get_version(fname="sponson/__init__.py"): |
|
with open(fname) as f: |
|
for line in f: |
|
if line.startswith('__version__'): |
|
return eval(line.split('=')[-1]) |
|
|
|
|
|
setup( |
|
name="sponson", |
|
version=get_version(), |
|
packages=find_packages(), |
|
url="https://code.lapwing.org/devops/sponson", |
|
license="GPLv3", |
|
author="Sam Black", |
|
author_email="samwwwblack@lapwing.org", |
|
description="'systemd-nspawn' wrapper", |
|
long_description=sponson.__doc__, |
|
include_package_data=True, |
|
data_files=[ |
|
("/usr/libexec/sponson", glob("services/libexec/*")), |
|
("/usr/lib/systemd/network", glob("services/systemd/network/*")), |
|
("/usr/lib/systemd/system", glob("services/systemd/system/*")), |
|
("/usr/share/dbus-1/system-services", |
|
glob("services/dbus/services/*")), |
|
("/usr/share/dbus-1/system.d", glob("services/dbus/systemd.d/*")), |
|
("/etc/bash_completion.d", ["services/sponson-bash-completion.sh"]), |
|
(ETC_DNSMASQ_CONF_DIR, ["services/resolv.conf"]) |
|
], |
|
install_requires=[ |
|
"click >= 6.2", |
|
"pyyaml >= 3.11", |
|
"pydbus >= 0.6" |
|
], |
|
dependency_links=[ |
|
("git+https://code.lapwing.org/git/libraries/" |
|
"pydbus.git@develop#egg=pydbus-0.6.0.1") |
|
], |
|
entry_points={ |
|
"console_scripts": ["sponson = sponson.cli:main"], |
|
}, |
|
classifiers=[ |
|
"Environment :: Console", |
|
"Development Status :: 3 - Alpha", |
|
"Intended Audience :: Developers", |
|
"Intended Audience :: System Administrators", |
|
("License :: OSI Approved :: " |
|
"GNU General Public License v3 or later (GPLv3+)"), |
|
"Operating System :: POSIX :: Linux", |
|
"Programming Language :: Python :: 3", |
|
"Programming Language :: Python :: 3.5", |
|
"Programming Language :: Python :: 3.6", |
|
"Programming Language :: Python :: 3 :: Only", |
|
"Topic :: System :: Systems Administration" |
|
] |
|
)
|
|
|