From 7f0bb35e5c02fd9abeb2311cc20295e2385f0f4a Mon Sep 17 00:00:00 2001 From: Kai Huuhko Date: Tue, 15 Jul 2014 06:46:50 +0300 Subject: [PATCH] Update .gitignore and setup.py, move version string to __init__.py --- .gitignore | 2 ++ MANIFEST | 37 ------------------------------------- epour/Globals.py | 1 - epour/__init__.py | 1 + setup.py | 15 +++++++++++---- 5 files changed, 14 insertions(+), 42 deletions(-) delete mode 100644 MANIFEST delete mode 100644 epour/Globals.py diff --git a/.gitignore b/.gitignore index 0baa65f..9aeb9c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.py[co] build/ +dist/ +MANIFEST diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index 842e783..0000000 --- a/MANIFEST +++ /dev/null @@ -1,37 +0,0 @@ -# file GENERATED by distutils, do NOT edit -AUTHORS -COPYING -MANIFEST -README -TODO -epour.png -setup.py -bin/epour -data/epour.desktop.in -data/icons/128x128/apps/epour.png -data/icons/16x16/apps/epour.png -data/icons/192x192/apps/epour.png -data/icons/22x22/apps/epour.png -data/icons/24x24/apps/epour.png -data/icons/256x256/apps/epour.png -data/icons/32x32/apps/epour.png -data/icons/36x36/apps/epour.png -data/icons/48x48/apps/epour.png -data/icons/64x64/apps/epour.png -data/icons/72x72/apps/epour.png -data/icons/96x96/apps/epour.png -debian/changelog -debian/compat -debian/control -debian/rules -debian/source/format -epour/Epour.py -epour/Globals.py -epour/__init__.py -epour/session.py -epour/gui/Main.py -epour/gui/Notify.py -epour/gui/Preferences.py -epour/gui/TorrentInfo.py -epour/gui/__init__.py -epour/gui/intrepr.py diff --git a/epour/Globals.py b/epour/Globals.py deleted file mode 100644 index aaf05b3..0000000 --- a/epour/Globals.py +++ /dev/null @@ -1 +0,0 @@ -version = "0.6.0" diff --git a/epour/__init__.py b/epour/__init__.py index e69de29..906d362 100644 --- a/epour/__init__.py +++ b/epour/__init__.py @@ -0,0 +1 @@ +__version__ = "0.6.0" diff --git a/setup.py b/setup.py index c98de06..51a1096 100755 --- a/setup.py +++ b/setup.py @@ -1,10 +1,14 @@ #!/usr/bin/env python -from DistUtilsExtra.auto import setup +from DistUtilsExtra import auto from epour.Globals import version -setup( + +class sdist_auto(auto.sdist_auto): + filter_suffix = ['.pyc', '.mo', '~', '.swp', '-workspace', '-project'] + +auto.setup( name='epour', version=version, author='Kai Huuhko', @@ -15,8 +19,8 @@ setup( long_description=( 'Epour is a BitTorrent client based on EFL and rb-libtorrent.' ), - #url='', - #download_url='', + url='https://phab.enlightenment.org/w/projects/epour/', + download_url='http://enlightenment.org/p.php?p=download', license='GNU GPL', platforms='linux', requires=[ @@ -28,4 +32,7 @@ setup( provides=[ 'epour', ], + cmdclass={ + 'sdist': sdist_auto + } )