This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
executable file
·61 lines (50 loc) · 1.63 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
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
import os
import sys
import re
from distutils.core import setup
from setuptools import find_packages
def get_long_description():
path = os.path.join(os.path.dirname(__file__), 'README.rst')
with open(path) as f:
return f.read()
def get_version():
setup_py = open('setup.py').read()
return re.search("version=['\"]([0-9]+\.[0-9]+\.[0-9]+)['\"]", setup_py, re.MULTILINE).group(1)
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
print("You should also add a git tag for this version:")
print(" git tag {0}".format(get_version()))
print(" git push --tags")
sys.exit()
setup(
name='django-iban',
version='0.3.1',
license='BSD',
description='A validated IBAN field for Django models',
long_description=get_long_description(),
url='https://github.com/benkonrath/django-iban',
author='Ben Konrath',
author_email='ben@bagu.org',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'django>=1.4',
'django-countries>=1.5',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Topic :: Utilities',
],
)