aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Cowie <brad@wand.net.nz>2019-08-13 13:31:14 +1200
committerBrad Cowie <brad@wand.net.nz>2019-08-13 13:31:14 +1200
commit11d8c41cc3c77ae154157978ec856ace09201942 (patch)
tree66600a6c7d7437636954ea04e5cadc8147348b88
parent15d17d0a9dd8a35e516b19b3874920cb9b06043b (diff)
downloadbeka-11d8c41cc3c77ae154157978ec856ace09201942.tar.gz
beka-11d8c41cc3c77ae154157978ec856ace09201942.tar.bz2
beka-11d8c41cc3c77ae154157978ec856ace09201942.zip
Package beka with PBR.
-rw-r--r--debian/control1
-rw-r--r--requirements.txt1
-rw-r--r--setup.cfg42
-rw-r--r--setup.py39
4 files changed, 54 insertions, 29 deletions
diff --git a/debian/control b/debian/control
index e3eef62..e7fac08 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Build-Depends: debhelper (>=9),
dh-python,
python3-all,
python3-setuptools,
+ python3-pbr (>=1.9),
python3-eventlet
Standards-Version: 3.9.6
Homepage: https://pypi.org/project/beka/
diff --git a/requirements.txt b/requirements.txt
index bfe34bc..bf68cef 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1 +1,2 @@
eventlet
+pbr>=1.9
diff --git a/setup.cfg b/setup.cfg
index 65988e4..f7d9162 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,47 @@
[metadata]
+name = beka
+summary = A bare-bones BGP speaker
+long_description =
+ Beka is a fairly basic BGP speaker. It can send
+ and receive unicast route updates in IPv4 and IPv6,
+ but not too much else. It is designed to be simple to use
+ and to extend, without too much overhead.
+
+ It uses eventlet for concurrency, but is easy enough to port to
+ gevent if that takes your fancy.
+
+ More information at https://github.com/faucetsdn/beka
+license = Apache-2
+author = Sam Russell
+author-email = sam.h.russell@gmail.com
+home-page = https://github.com/faucetsdn/beka
+classifiers =
+ Development Status :: 2 - Pre-Alpha
+ Intended Audience :: System Administrators
+ License :: OSI Approved :: Apache Software License
+ Programming Language :: Python :: 3
+keywords =
+ bgp
+ beka
+ routing
+ sdn
+ networking
+
+[files]
+packages =
+ beka
+
license_file = LICENSE
[bdist_wheel]
universal=0
+
+[pytype]
+python_version = 3.6
+pythonpath =
+ .:
+ beka:
+ test:
+disable =
+ pyi-error,
+ import-error
diff --git a/setup.py b/setup.py
index 03d7031..7e79a46 100644
--- a/setup.py
+++ b/setup.py
@@ -1,36 +1,17 @@
-from setuptools import setup
+import sys
-long_description = """
- Beka is a fairly basic BGP speaker. It can send
- and receive unicast route updates in IPv4 and IPv6,
- but not too much else. It is designed to be simple to use
- and to extend, without too much overhead.
+from setuptools import setup
- It uses eventlet for concurrency, but is easy enough to port to
- gevent if that takes your fancy.
+if sys.version_info < (3,):
+ print("""You are trying to install beka on python {py}
- More information at https://github.com/faucetsdn/beka
-"""
+beka is not compatible with python 2, please upgrade to python 3.5 or newer."""
+ .format(py='.'.join([str(v) for v in sys.version_info[:3]])), file=sys.stderr)
+ sys.exit(1)
setup(
name='beka',
- description='A bare-bones BGP speaker',
- long_description=long_description,
- version='0.3.3',
- url='https://github.com/faucetsdn/beka',
- author='Sam Russell',
- author_email='sam.h.russell@gmail.com',
- license='Apache2',
- classifiers=[
- 'Development Status :: 4 - Beta',
- 'Intended Audience :: System Administrators',
- 'License :: OSI Approved :: Apache Software License',
- 'Programming Language :: Python :: 3'
- ],
- keywords='bgp beka routing sdn networking',
- packages=['beka'],
- python_requires='>=3',
- install_requires=[
- 'eventlet'
- ]
+ setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
+ python_requires='>=3.5',
+ pbr=True
)