Skip to content

Commit fb4f457

Browse files
authored
Flake8 deps (#57)
* remove flake8 dependency * enforce use of python3 * revert build paths
1 parent e1453d7 commit fb4f457

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

buildrpm/oci-utils.spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ BuildRequires: systemd
1717

1818
BuildRequires: python3-devel
1919
BuildRequires: python3-setuptools
20-
#BuildRequires: python3-flake8
2120
Requires: python3
2221
Requires: python3-daemon
2322
Requires: python3-sdnotify

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ tag_build =
33
tag_date = 0
44
tag_svn_revision = 0
55

6-
[flake8]
7-
max-line-length = 120
86
[pep8]
97
max-line-length = 120
108

119
[sdist]
12-
dist-dir = /var/tmp/rpmbuild/SOURCES/
10+
dist-dir = rpmbuild/SOURCES/
1311

1412
[create_rpm]
15-
rpm-top-dir = /var/tmp/rpmbuild
13+
rpm-top-dir = rpmbuild
1614
spec-file-path = buildrpm/oci-utils.spec
1715

1816
[sync_rpm]

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ def run(self):
335335
raise DistutilsExecError("rpmbuild execution failed")
336336

337337

338+
if sys.version_info.major < 3:
339+
print('Only python verison 3 or above is supported')
340+
sys.exit(1)
341+
338342
setup(
339343
name="oci-utils",
340344
version="0.11.0",
@@ -347,7 +351,7 @@ def run(self):
347351
url="http://github.com/oracle/oci-utils/",
348352
package_dir={'': 'lib'},
349353
packages=find_packages('lib'),
350-
setup_requires=["flake8"],
354+
setup_requires=[],
351355
long_description=read('README'),
352356
test_suite="tests",
353357
data_files=[(os.path.join(sys.prefix, 'libexec'),

0 commit comments

Comments
 (0)