forked from jfialkoff/pyphaxio
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
52 lines (42 loc) · 1.3 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
version = '0.3'
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 = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "requests"]
test_requirements = ["mock", "urllib3_mock"]
setup(
name='phaxio',
version=version,
packages=find_packages(),
test_suite='tests',
install_requires=requirements,
tests_require=test_requirements,
include_package_data=True,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2",
],
# metadata for upload to PyPI
author='Aryeh Polsky',
author_email='[email protected]',
description='Python client for Phaxio v2 API',
long_description=readme,
license='MIT License',
keywords='python phaxio fax api',
url='https://github.com/anpolsky/phaxio-python',
)