-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
51 lines (44 loc) · 1.76 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
"""
Installation script:
To release a new version to PyPi:
- Ensure the version is correctly set in django-portfolio.__init__.py
- Run: python setup.py sdist upload
"""
from setuptools import setup, find_packages
VERSION = (0, 0, 4, 'alpha', 0)
def get_short_version():
return '%s.%s' % (VERSION[0], VERSION[1])
def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1])
if VERSION[2]:
# Append 3rd digit if > 0
version = '%s.%s' % (version, VERSION[2])
if VERSION[3:] == ('alpha', 0):
version = '%s pre-alpha' % version
elif VERSION[3] != 'final':
version = '%s %s %s' % (version, VERSION[3], VERSION[4])
return version
setup(name='django-portfolio',
version=get_version().replace(' ', '-'),
url='https://[email protected]/igniteflow/django-portfolio.git',
author="Phil Tysoe",
author_email="[email protected]",
description="A simple set of abstract models and functionality to speed up the development of a portfolio type site in Django 1.3+",
long_description="A simple set of abstract models and functionality to speed up the development of a portfolio type site in Django 1.3+",
keywords="Django, portfolio, blog, artist",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["*.tests"]),
install_requires=[
'django-tagging==0.3.1',
'docutils==0.8.1',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python']
)