/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import copy
13
13
import glob
14
14
 
15
 
if sys.version_info < (2, 7):
16
 
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.7+\n")
 
15
if sys.version_info < (3, 5):
 
16
    sys.stderr.write("[ERROR] Not a supported Python version. Need 3.5+\n")
17
17
    sys.exit(1)
18
18
 
19
19
 
20
20
try:
21
21
    import setuptools
22
 
except ImportError:
23
 
    sys.stderr.write("[ERROR] Please install setuptools\n")
 
22
except ImportError as e:
 
23
    sys.stderr.write("[ERROR] Please install setuptools (%s)\n" % e)
24
24
    sys.exit(1)
25
25
 
26
26
 
64
64
        ],
65
65
    'install_requires': [
66
66
        'configobj',
67
 
        'six>=1.9.0',
68
67
        'patiencediff',
69
68
        # Technically, Breezy works without these two dependencies too. But there's
70
69
        # no way to enable them by default and let users opt out.
71
 
        'fastimport>=0.9.8',
72
 
        'dulwich>=0.19.12',
 
70
        'dulwich>=0.19.12;python_version>="3.5"',
 
71
        'dulwich<0.20,>=0.19.12;python_version<"3.0"',
73
72
        ],
74
73
    'extras_require': {
75
74
        'fastimport': [],
76
75
        'git': [],
77
76
        'launchpad': ['launchpadlib>=1.6.3'],
 
77
        'workspace': ['pyinotify'],
78
78
        },
79
79
    'tests_require': [
80
80
        'testtools',
 
81
        'testtools<=2.4.0;python_version<"3.0"',
 
82
        'python-subunit',
81
83
    ],
82
84
}
83
85
 
595
597
        includes.append(module)
596
598
 
597
599
    additional_packages = set()
598
 
    if sys.version.startswith('2.7'):
599
 
        additional_packages.add('xml.etree')
600
 
    else:
601
 
        import warnings
602
 
        warnings.warn('Unknown Python version.\n'
603
 
                      'Please check setup.py script for compatibility.')
604
600
 
605
601
    # Although we currently can't enforce it, we consider it an error for
606
602
    # py2exe to report any files are "missing".  Such modules we know aren't