Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion buildrpm/oci-utils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ BuildRequires: systemd

BuildRequires: python3-devel
BuildRequires: python3-setuptools
#BuildRequires: python3-flake8
Requires: python3
Requires: python3-daemon
Requires: python3-sdnotify
Expand Down
6 changes: 2 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ tag_build =
tag_date = 0
tag_svn_revision = 0

[flake8]
max-line-length = 120
[pep8]
max-line-length = 120

[sdist]
dist-dir = /var/tmp/rpmbuild/SOURCES/
dist-dir = rpmbuild/SOURCES/

[create_rpm]
rpm-top-dir = /var/tmp/rpmbuild
rpm-top-dir = rpmbuild
spec-file-path = buildrpm/oci-utils.spec

[sync_rpm]
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ def run(self):
raise DistutilsExecError("rpmbuild execution failed")


if sys.version_info.major < 3:
print('Only python verison 3 or above is supported')
sys.exit(1)

setup(
name="oci-utils",
version="0.11.0",
Expand All @@ -347,7 +351,7 @@ def run(self):
url="http://github.com/oracle/oci-utils/",
package_dir={'': 'lib'},
packages=find_packages('lib'),
setup_requires=["flake8"],
setup_requires=[],
long_description=read('README'),
test_suite="tests",
data_files=[(os.path.join(sys.prefix, 'libexec'),
Expand Down