File tree Expand file tree Collapse file tree 5 files changed +27
-8
lines changed Expand file tree Collapse file tree 5 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 1
- include README.rst LICENSE requirements.txt
1
+ include AUTHORS.rst README.rst LICENSE
Original file line number Diff line number Diff line change 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
2
2
3
3
all : clean venv install
4
4
@@ -26,12 +26,14 @@ docs-open: docs
26
26
. venv/bin/activate; open docs/_build/html/index.html
27
27
28
28
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/*
31
33
32
34
build : install
33
35
. venv/bin/activate; python setup.py sdist
34
36
. venv/bin/activate; python setup.py bdist_wheel
35
37
36
38
clean :
37
- rm -rf venv
39
+ rm -rf venv build dist * .egg-info
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ pytest==2.6.4
2
2
pytest-cov==1.8.1
3
3
requests==2.5.1
4
4
responses==0.3.0
5
+ wheel
6
+ twine
Original file line number Diff line number Diff line change
1
+ [bdist_wheel]
2
+ universal =1
Original file line number Diff line number Diff line change 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 ()
2
6
3
7
setup (
4
8
name = 'sparkpost' ,
9
13
url = 'https://github.com/SparkPost/python-sparkpost' ,
10
14
license = 'Apache 2.0' ,
11
15
description = 'SparkPost Python API client' ,
12
- long_description = open ( 'README.rst' ). read () ,
16
+ long_description = readme ,
13
17
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
+ ],
15
28
)
You can’t perform that action at this time.
0 commit comments