-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (34 loc) · 997 Bytes
/
setup.py
File metadata and controls
43 lines (34 loc) · 997 Bytes
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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
version = '1.0.4'
if sys.argv[-1] == 'publish':
os.system('python setup.py build')
os.system('twine upload dist/*')
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='spamcheck',
version=version,
packages=find_packages(),
install_requires=requirements,
include_package_data=True,
# metadata for upload to PyPI
author='Tesorio',
author_email='hello@tesorio.com',
description="A simple Python wrapper for Postmark's Spamcheck API",
long_description=readme,
license='MIT License',
keywords='postmark spam spamcheck',
url='https://github.com/Tesorio/spamcheck-python',
)