Update .gitignore and setup.py, move version string to __init__.py

This commit is contained in:
Kai Huuhko 2014-07-15 06:46:50 +03:00
parent 7fcfa35a1e
commit 7f0bb35e5c
5 changed files with 14 additions and 42 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
*.py[co]
build/
dist/
MANIFEST

View File

@ -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

View File

@ -1 +0,0 @@
version = "0.6.0"

View File

@ -0,0 +1 @@
__version__ = "0.6.0"

View File

@ -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
}
)