Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use versiontools in pip-friendly way

This is based on a new feature added to versiontools 1.3
(or more accurately on 1.3.1). For more details see:
http://packages.python.org/versiontools/changes.html#version-1-3
  • Loading branch information...
commit 1b63719269090062909c5b6d3f5b0c14c0c4b9ae 1 parent 33e1b05
Zygmunt Krynicki authored
Showing with 3 additions and 13 deletions.
  1. +3 −13 setup.py
View
16 setup.py
@@ -32,20 +32,10 @@
from setuptools import setup, find_packages
-try:
- import versiontools
-except ImportError:
- print "This package requires python-versiontools to be configured"
- print "See: http://packages.python.org/versiontools/installation.html"
- raise
-
-
-import linaro_django_pagination
-
-
setup(
name='linaro-django-pagination',
- version=versiontools.format_version(linaro_django_pagination.__version__),
+ # Magic version handling with versiontools
+ version=":versiontools:linaro_django_pagination:__version__",
author='Zygmunt Krynicki',
author_email='zygmunt.krynicki@linaro.org',
description="linaro-django-pagination",
@@ -72,7 +62,7 @@
'django-testproject >= 0.1',
],
setup_requires=[
- 'versiontools >= 1.2'
+ 'versiontools >= 1.3.1'
],
include_package_data=True,
)
Please sign in to comment.
Something went wrong with that request. Please try again.