Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
f57414af
Commit
f57414af
authored
Dec 05, 2019
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5: new software release targeting Python 3
parent
fe6659d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
1 deletion
+88
-1
software/erp5/software-py3.cfg
software/erp5/software-py3.cfg
+3
-0
software/erp5/test/test/__init__.py
software/erp5/test/test/__init__.py
+4
-1
stack/erp5/buildout-py3.cfg
stack/erp5/buildout-py3.cfg
+81
-0
No files found.
software/erp5/software-py3.cfg
0 → 100644
View file @
f57414af
[buildout]
extends =
../../stack/erp5/buildout-py3.cfg
software/erp5/test/test/__init__.py
View file @
f57414af
...
...
@@ -28,12 +28,15 @@
import
json
import
os
import
six
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
_setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'..'
,
'software.cfg'
)))
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'..'
,
'software%s.cfg'
%
(
"-py3"
if
six
.
PY3
else
""
))))
setup_module_executed
=
False
...
...
stack/erp5/buildout-py3.cfg
0 → 100644
View file @
f57414af
[buildout]
extends =
buildout.cfg
# Exact versions from Zope 4
versions.cfg
versions-prod.cfg
[python]
part = python3
parts -=
# XXX: The following parts have no support for Python 3. Ignore for now.
rdiff-backup
ocropy
hookbox
[rdiff-backup]
recipe =
[rdiff-backup-build]
recipe =
[ocropy]
recipe =
[hookbox]
recipe =
[numpy-egg-abspath]
# XXX: The only purpose of this section is to dynamically get the absolute path
# of the numpy egg. There's probably a better way.
recipe = slapos.recipe.build
init =
import glob, os
paths = glob.glob(os.path.join(self.buildout['buildout']['develop-eggs-directory'], 'numpy-*.egg'))
assert len(paths) == 1, paths
options['abspath'] = paths[0]
[scipy-env]
# See https://github.com/scipy/scipy/blob/b285d269decb8ed11079c9d4e450391eda26e9ad/scipy/special/setup.py#L158
# `sys.executable` is a "raw" python 3, and can't find numpy. We thus tell it
# where to find it, because it needs it.
PYTHONPATH=${numpy-egg-abspath:abspath}:$PYTHONPATH
[python-ldap-python]
# No patch needed anymore
patches =
include-dirs -=
${cyrus-sasl:location}/include/sasl
include-dirs +=
${cyrus-sasl:location}/include
[eggs]
eggs -=
# tracemalloc is now part of Python 3.4!
pytracemalloc
# XXX: The following eggs have no support for Python 3. Ignore for now.
ocropy
${ocropy:egg}
PyXML
threadframe
suds
xupdate_processor
SOAPpy
fpconst
[versions]
# zc.recipe.egg 2.0.7 (in versions.cfg) requires zc.buildout>=2.12.0, so let's
# revert to the version contained in stack/slapos.cfg
zc.recipe.egg = 2.0.3+slapos003
pyasn1-modules = 0.2.8
pyasn1 = 0.4.8
# Version up to support Python 3.7
numpy = 1.16.6
pandas = 0.24.2
# XXX: No version of scipy is both compatible with Python 2.7 and 3.7
scipy = 1.5.2
scikit-learn = 0.20.4
statsmodels = 0.10.2
pyzmq = 19.0.2
PyStemmer = 2.0.1
python-ldap = 3.1.0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment