Skip to content

Commit

Permalink
Prevent installation on Py 3, where Archetypes does not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Oct 5, 2021
1 parent 15d5859 commit 433ca08
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/3330.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Prevent installation on Python 3, as we know Archetypes does not work there.
[maurits]
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[bdist_wheel]
universal = 1
# Py2 only
universal = 0
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
from setuptools import find_packages
from setuptools import setup

import sys


if sys.version_info[0] != 2:
# Prevent creating or installing a distribution with Python 3.
raise ValueError("archetypes.multilingual is based on Archetypes, which is Python 2 only.")

version = '3.0.9.dev0'

setup(
Expand Down Expand Up @@ -34,6 +41,7 @@
namespace_packages=['archetypes'],
include_package_data=True,
zip_safe=False,
python_requires='==2.7.*',
install_requires=[
'setuptools',
'Products.ATContentTypes',
Expand Down

0 comments on commit 433ca08

Please sign in to comment.