Drop Python2 and Django1 support

This commit is contained in:
2020-09-25 12:43:40 +02:00
parent 45d8b7cf21
commit 0d7cd64218
12 changed files with 29 additions and 60 deletions

View File

@@ -30,12 +30,7 @@ class CreatePythonEnvironment(MyCommand):
def run():
python_bin = sys.executable if sys.executable else 'python'
python_ver = sys.version_info.major
if python_ver == 2:
path = os.path.join('env', 'python2')
symlink_path = os.path.join('env', 'python')
venv_module = 'virtualenv'
prompt = '(py2) '
elif python_ver == 3:
if python_ver == 3:
path = os.path.join('env', 'python3')
symlink_path = os.path.join('env', 'python')
venv_module = 'venv'
@@ -67,7 +62,7 @@ class CreatePythonEnvironment(MyCommand):
setup(
name='django-deploy',
version='0.2.dev0',
version='0.3.dev0',
description='A helper to deploy reusable django apps into a django project.',
long_description=long_description(),
long_description_content_type='text/x-rst',
@@ -95,7 +90,7 @@ setup(
'django-deploy.py = django_deploy:main',
],
},
python_requires='>=2.7',
python_requires='>=3',
install_requires=[
'django',
],