-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·36 lines (31 loc) · 956 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
version = open('VERSION').read()
readme = open('README.md').read()
requires = ['Requests', 'validators']
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
setup(
name='iscowalive',
version=version,
author='Óscar M. Lage',
author_email='info@oscarmlage.com',
url='https://github.com/cowlab/iscowalive',
description="""simple module that checks if url is available.""", # noqa
long_description=readme,
scripts=['bin/ica'],
packages=find_packages(),
include_package_data=True,
install_requires=requires,
license="BSD",
)