mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-09 19:15:44 +00:00
eb38e0ffff
- Preparation work for using six or future module for Py2/3 compat. The code will be written in Python 3 with Python 2 fallbacks. - Added some Py3 imports with Py2 fallbacks to make it easier to remove Py2 code in future. - Replace xrange with range (sort out import as top of files in future). - Workaround Py2to3 basestring issue with inline if in instances. This means every usage of basestring is more considered. - Replace iteritems and itervalues for items and values. There might be a performance penalty on Py2 so might need to revisit this change.
29 lines
812 B
INI
29 lines
812 B
INI
[build_docs]
|
|
source-dir = docs/source
|
|
build-dir = docs/build
|
|
all_files = 1
|
|
|
|
[py2app]
|
|
app = ['deluge/main.py']
|
|
# arch = x86_64
|
|
arch = i386
|
|
iconfile = osx/deluge.icns
|
|
site-packages = false
|
|
includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms,
|
|
twisted.internet, twisted.internet.utils, twisted.protocols,
|
|
zope.interface, mako.cache, email.mime, libtorrent, gtkosx_application
|
|
frameworks = CoreFoundation, Foundation, AppKit
|
|
|
|
[isort]
|
|
known_standard_library = future_builtins
|
|
known_third_party =
|
|
# Ignore Windows specific modules.
|
|
bbfreeze, win32verstamp,
|
|
# Ignore gtk modules, primarily for tox testing.
|
|
pygtk, gtk, gobject, gtk.gdk, pango, cairo, pangocairo,
|
|
six
|
|
known_first_party = msgfmt, deluge
|
|
order_by_type = true
|
|
line_length = 120
|
|
not_skip = __init__.py
|