Permalink
Browse files

bumping up and use proper version number; made the trove classifiers …

…more accurate
  • Loading branch information...
1 parent f56ac39 commit bea2417de5e4681d0cbb17877fe590c2a751a13b @paltman paltman committed Jul 1, 2010
Showing with 22 additions and 6 deletions.
  1. +4 −2 docs/conf.py
  2. +11 −0 pdf/__init__.py
  3. +2 −1 pdf/models.py
  4. +0 −1 pdf/tasks.py
  5. +5 −2 setup.py
View
@@ -5,15 +5,17 @@
sys.path.append(os.path.abspath(os.pardir))
os.environ["DJANGO_SETTINGS_MODULE"] = "settings"
+VERSION = __import__('pdf').__version__
+
extensions = ['sphinx.ext.autodoc']
templates_path = ['_templates']
source_suffix = '.txt'
master_doc = 'index'
project = u'django-pdf'
copyright = u'2010, Patrick Altman'
-version = '1.0.0'
-release = '1.0.0'
+version = VERSION
+release = VERSION
exclude_patterns = ['_build']
pygments_style = 'sphinx'
View
@@ -0,0 +1,11 @@
+VERSION = (1, 0, 2) # following PEP 386
+
+
+def get_version():
+ version = "%s.%s" % (VERSION[0], VERSION[1])
+ if VERSION[2]:
+ version = "%s.%s" % (version, VERSION[2])
+ return version
+
+
+__version__ = get_version()
View
@@ -22,7 +22,8 @@
('E', _('Processing Error')))
-UPLOAD_PATH = getattr(settings, "PDF_UPLOAD_PATH", os.path.join(settings.MEDIA_ROOT, "uploads"))
+DEFAULT_PATH = os.path.join(settings.MEDIA_ROOT, "uploads")
+UPLOAD_PATH = getattr(settings, "PDF_UPLOAD_PATH", DEFAULT_PATH)
class Document(models.Model):
View
@@ -242,4 +242,3 @@ def run(self, **kwargs):
user_data=startup)
launched = len(r.instances)
return launched
-
View
@@ -2,15 +2,18 @@
from setuptools import setup, find_packages
+VERSION = __import__('pdf').__version__
+
+
setup(name='django-pdf',
- version='1.0.1',
+ version=VERSION,
description='A Django app for managing and processing PDF documents.',
author='Patrick Altman',
author_email='paltman@gmail.com',
url='http://github.com/paltman/django-pdf/',
packages=find_packages(),
classifiers = [
- "Development Status :: 3 - Alpha",
+ "Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",

0 comments on commit bea2417

Please sign in to comment.