代码拉取完成,页面将自动刷新
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages, command
# Mark deb package as binary
try:
import stdeb.util
class DebianInfo(stdeb.util.DebianInfo):
def __init__(self, *args, **kwargs):
kwargs['has_ext_modules'] = True
super().__init__(*args, **kwargs)
stdeb.util.DebianInfo = DebianInfo
except ImportError:
pass
version = os.environ.get('VERSION') or 'trunk'
commit = os.environ.get('COMMIT')
if version and commit:
with open('wfb_ng/conf/site.cfg', 'w') as fd:
fd.write("# Don't make any changes here, use local.cfg instead!\n\n[common]\nversion = %r\ncommit = %r\n" % (version, commit))
def _long_description():
with open('README.md', encoding='utf-8') as fd:
start = False
for line in fd:
if line.startswith('Main features:'):
start = True
elif line.startswith('#'):
break
if start:
yield line
setup(
url="http://wfb-ng.org",
name="wfb-ng",
version=version,
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
zip_safe=False,
entry_points={'console_scripts': ['wfb-cli=wfb_ng.cli:main',
'wfb-test-latency=wfb_ng.latency_test:main',
'wfb-server=wfb_ng.server:main']},
package_data={'wfb_ng.conf': ['master.cfg', 'site.cfg']},
data_files = [('/usr/bin', ['wfb_tx', 'wfb_rx', 'wfb_keygen']),
('/lib/systemd/system', ['scripts/wifibroadcast.service',
'scripts/[email protected]']),
('/etc/default', ['scripts/default/wifibroadcast']),
('/etc/sysctl.d', ['scripts/98-wifibroadcast.conf']),
('/etc/logrotate.d', ['scripts/wifibroadcast'])],
keywords="wfb-ng, wifibroadcast",
author="Vasily Evseenko",
description="Long-range packet radio link based on raw WiFi radio",
long_description=''.join(_long_description()),
long_description_content_type='text/markdown',
license="GPLv3",
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。