[Notes] [Git][BuildStream/buildstream][jjardon/pyproject] setup.py: Use "python_requires" instead manual check



Title: GitLab

Javier Jardón pushed to branch jjardon/pyproject at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • setup.py
    ... ... @@ -25,10 +25,6 @@ import subprocess
    25 25
     import sys
    
    26 26
     import versioneer
    
    27 27
     
    
    28
    -if sys.version_info[0] != 3 or sys.version_info[1] < 5:
    
    29
    -    print("BuildStream requires Python >= 3.5")
    
    30
    -    sys.exit(1)
    
    31
    -
    
    32 28
     try:
    
    33 29
         from setuptools import setup, find_packages, Command
    
    34 30
         from setuptools.command.easy_install import ScriptWriter
    
    ... ... @@ -248,6 +244,7 @@ setup(name='BuildStream',
    248 244
                   os.path.join('buildstream', 'data', 'bst')
    
    249 245
               ])
    
    250 246
           ],
    
    247
    +      python_requires='>=3.5',
    
    251 248
           install_requires=[
    
    252 249
               'setuptools',
    
    253 250
               'psutil',
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]