Commit ca1c9a96 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

fix setup.py regarding pathlib

parent b314315b
Pipeline #30783 passed with stage
in 0 seconds
#!/usr/bin/env python
import os
import sys
from setuptools import setup
......@@ -11,6 +12,9 @@ name = 'rubygemsrecipe'
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
test_requires=['mock']
if sys.version_info < (3,4):
test_requires.append('pathlib')
setup(name=name,
version=version,
......@@ -30,10 +34,7 @@ setup(name=name,
'slapos.recipe.build',
],
extras_require={
'test': [
'mock',
'pathlib; python_version<"3.4"',
],
'test': test_requires
},
entry_points={
'zc.buildout': ['default = rubygems:Recipe']
......
  • it's surprising that the previous syntax did not work, it looks the syntax was correct and it's usually supported, maybe not when installing extras. It's not so important, but we can try to revert this once we update buildout

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment