First cut at a dist-package build

git-svn-id: http://comictagger.googlecode.com/svn/trunk@454 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-02-07 02:39:36 +00:00
parent 2024555780
commit 10e6a1019e
5 changed files with 49 additions and 4 deletions

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
recursive-include comictagger *

View File

@ -7,6 +7,8 @@ all: clean
clean:
rm -f *~ *.pyc *.pyo
cd comictagger; rm -f *~ *.pyc *.pyo
sudo rm -rf MANIFEST dist scripts
rm -f logdict*.log
make -C mac clean
make -C windows clean
@ -20,7 +22,10 @@ zip:
@echo When satisfied with release, do this:
@echo make svn_tag
pkg:
python setup.py sdist
svn_tag:
svn copy https://comictagger.googlecode.com/svn/trunk \
https://comictagger.googlecode.com/svn/tags/$(VERSION_STR) -m "Release $(VERSION_STR)"

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
import comictagger.main
from comictagger.main import ctmain
comictagger.main.main()
ctmain()

View File

@ -39,7 +39,7 @@ except ImportError as e:
qt_available = False
#---------------------------------------
def main():
def ctmain():
# try to make stdout encodings happy for unicode
if platform.system() == "Darwin":
preferred_encoding = "utf-8"

39
setup.py Normal file
View File

@ -0,0 +1,39 @@
#!/usr/bin/env python
from distutils.core import setup
import distutils.command.install_scripts
import os
import shutil
# Things are weird if the script has a py. Will this break things for windows???
if not os.path.exists('scripts/comictagger'):
if not os.path.exists('scripts'):
os.makedirs('scripts')
shutil.copyfile('comictagger.py', 'scripts/comictagger')
setup(name = "comictagger",
version = "1.1.1",
description = "A cross-platorm GUI/CLI app for writing metadata to comic archives",
author = "Anthony Beville",
author_email = "comictagger@gmail.com",
url = "http://code.google.com/p/comictagger/",
packages = [ "comictagger", "comictagger/UnRAR2" ] ,
package_data = {
'comictagger': ['ui/*.ui', 'graphics/*'] ,
},
scripts = ["scripts/comictagger"],
long_description = """
ComicTagger is a multi-platform app for writing metadata to comic archives, written in Python and PyQt.
Features:
* Runs on Mac OSX, Microsoft Windows, and Linux systems
* Communicates with an online database (Comic Vine) for acquiring metadata
* Uses image processing to automatically match a given archive with the correct issue data
* Batch processing in the GUI for tagging hundreds or more comics at a time
* Reads and writes multiple tagging schemes ( ComicBookLover? and ComicRack?, with more planned).
* Reads and writes RAR, Zip, and folder archives (external tools needed for writing RAR)
* Command line interface (CLI) on all platforms (including Windows), which supports batch operations, and which can be used in native scripts for complex operations.
"""
)