Skip to content

Commit 740ce10

Browse files
author
Rich Leland
committed
added wheel support, prep for PyPI
1 parent fc61f8a commit 740ce10

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include README.rst LICENSE requirements.txt
1+
include AUTHORS.rst README.rst LICENSE

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: analysis all build clean docs docs-install docs-open install release test venv
1+
.PHONY: analysis all build clean docs docs-install docs-open install release release-test test venv
22

33
all: clean venv install
44

@@ -26,12 +26,14 @@ docs-open: docs
2626
. venv/bin/activate; open docs/_build/html/index.html
2727

2828
release: install
29-
. venv/bin/activate; python setup.py sdist upload
30-
. venv/bin/activate; python setup.py bdist_wheel upload
29+
. venv/bin/activate; python setup.py sdist bdist_wheel; twine upload -r pypi dist/*
30+
31+
release-test: install
32+
. venv/bin/activate; python setup.py sdist bdist_wheel; twine upload -r test dist/*
3133

3234
build: install
3335
. venv/bin/activate; python setup.py sdist
3436
. venv/bin/activate; python setup.py bdist_wheel
3537

3638
clean:
37-
rm -rf venv
39+
rm -rf venv build dist *.egg-info

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ pytest==2.6.4
22
pytest-cov==1.8.1
33
requests==2.5.1
44
responses==0.3.0
5+
wheel
6+
twine

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal=1

setup.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
from distutils.core import setup
1+
from codecs import open
2+
from setuptools import setup
3+
4+
with open('README.rst', 'r', 'utf-8') as f:
5+
readme = f.read()
26

37
setup(
48
name='sparkpost',
@@ -9,7 +13,16 @@
913
url='https://github.com/SparkPost/python-sparkpost',
1014
license='Apache 2.0',
1115
description='SparkPost Python API client',
12-
long_description=open('README.rst').read(),
16+
long_description=readme,
1317
install_requires=['requests==2.5.1'],
14-
zip_safe=False,
18+
classifiers=[
19+
'Development Status :: 1 - Planning',
20+
'Intended Audience :: Developers',
21+
'Topic :: Communications :: Email',
22+
'License :: OSI Approved :: Apache Software License',
23+
'Programming Language :: Python :: 2',
24+
'Programming Language :: Python :: 2.7',
25+
'Programming Language :: Python :: 3',
26+
'Programming Language :: Python :: 3.4',
27+
],
1528
)

0 commit comments

Comments
 (0)