Remove requirement of pbr.
* Use setuptools instead in order to support RHEL 8 beta where pbr is not included. * The MANIFEST.in file is for including 'requirements.txt' in output of `python setup.py sdisk` command. Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
b30268994b
commit
c87bdecefc
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
||||
include requirements.txt
|
17
setup.cfg
17
setup.cfg
@ -1,17 +0,0 @@
|
||||
[metadata]
|
||||
name = nmstate
|
||||
author = Red Hat
|
||||
summary = nmstate
|
||||
license = GNU GPLv2
|
||||
description-file = README.md
|
||||
long-description-content-type = text/markdown
|
||||
url=https://nmstate.github.io/
|
||||
|
||||
[files]
|
||||
packages =
|
||||
libnmstate
|
||||
nmstatectl
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
nmstatectl = nmstatectl.nmstatectl:main
|
37
setup.py
37
setup.py
@ -1,3 +1,36 @@
|
||||
import setuptools
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setuptools.setup(setup_requires=['pbr'], pbr=True)
|
||||
|
||||
def readme():
|
||||
with open('README.md') as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
def requirements():
|
||||
req = []
|
||||
with open('requirements.txt') as f:
|
||||
for l in f:
|
||||
l.strip()
|
||||
if not l.startswith('#'):
|
||||
req.append(l)
|
||||
return req
|
||||
|
||||
|
||||
setup(
|
||||
name='nmstate',
|
||||
version='0.0.2',
|
||||
description='Declarative network manager API',
|
||||
author="Edward Haas",
|
||||
author_email="ehaas@redhat.com",
|
||||
long_description=readme(),
|
||||
url='https://nmstate.github.io/',
|
||||
license='GPLv2+',
|
||||
packages=find_packages(),
|
||||
install_requires=requirements(),
|
||||
entry_points={
|
||||
'console_scripts': ['nmstatectl = nmstatectl.nmstatectl:main'],
|
||||
},
|
||||
package_data={
|
||||
'libnmstate': ['schemas/operational-state.yaml']
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user