forked from jfialkoff/pyphaxio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (35 loc) · 1023 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
37
38
39
40
41
42
43
44
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
version = '0.11'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'v%s'" % (version, version))
os.system("git push --tags")
sys.exit()
with open('README.rst') as readme_file:
readme = readme_file.read()
if sys.argv[-1] == 'readme':
print(readme)
sys.exit()
requirements = ['requests']
setup(
name='pyphaxio',
version=version,
packages=find_packages(),
test_suite='tests',
install_requires=requirements,
include_package_data=True,
# metadata for upload to PyPI
author='Joshua Fialkoff',
author_email='[email protected]',
description='Python client for Phaxio',
long_description=readme,
license='MIT License',
keywords='python phaxio fax api',
url='https://github.com/jfialkoff/pyphaxio',
)