Skip to content

Commit

Permalink
Prevent installation on Python 3, where we know Archetypes does not w…
Browse files Browse the repository at this point in the history
…ork.
  • Loading branch information
mauritsvanrees committed Oct 5, 2021
1 parent 7934457 commit 4117763
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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]
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

import sys


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

version = '0.7.9.dev0'

setup(
Expand Down Expand Up @@ -34,6 +41,7 @@
namespace_packages=['plone', 'plone.app'],
include_package_data=True,
zip_safe=False,
python_requires='==2.7.*',
install_requires=[
'setuptools',
'plone.app.locales >= 4.3.9',
Expand Down

0 comments on commit 4117763

Please sign in to comment.