Skip to content

Commit c5102bc

Browse files
author
Mike Alexander
committed
updated setup.py and package __init__ to support PyPi upload
1 parent f66410f commit c5102bc

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

setup.py

+45-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# To upload to PyPi, find the directions here https://packaging.python.org/tutorials/packaging-projects/
2+
3+
4+
import sys
15
from setuptools import setup
26

37
install_requires = [
@@ -10,26 +14,65 @@
1014
else:
1115
install_requires.append('python-ntlm3')
1216

17+
# get our long description from the README.md
18+
with open("README.md", "r") as f:
19+
long_description = f.read()
20+
1321
setup(
1422
name = "v1pysdk",
15-
version = "0.5",
23+
version = "0.5.0",
1624
description = "VersionOne API client",
1725
author = "Joe Koberg (VersionOne, Inc.)",
1826
author_email = "[email protected]",
27+
long_description = long_description,
28+
long_description_content_type = "text/markdown",
1929
license = "MIT/BSD",
2030
keywords = "versionone v1 api sdk",
2131
url = "http://github.com/mtalexan/VersionOne.SDK.Python.git",
32+
project_urls={
33+
'Documentation': 'http://github.com/mtalexan/VersionOne.SDK.Python.git',
34+
'Source' : 'http://github.com/mtalexan/VersionOne.SDK.Python.git',
35+
'Tracker' : 'http://github.com/mtalexan/VersionOne.SDK.Python.git/issues',
36+
},
2237

2338
packages = [
2439
'v1pysdk',
2540
],
2641
include_package_data=True,
2742
install_requires = installation_requirements,
2843

44+
classifiers=(
45+
"Development Status :: 4 - Beta",
46+
"Intended Audience :: Developers",
47+
"License :: OSI Approved :: MIT License",
48+
"License :: OSI Approved :: BSD License",
49+
"Operating System :: OS Independent",
50+
"Programming Language :: Python :: 2",
51+
"Programming Language :: Python :: 2.7",
52+
"Programming Language :: Python :: 3",
53+
"Programming Language :: Python :: 3.5",
54+
"Topic :: Software Development :: Bug Tracking",
55+
),
56+
57+
# it may work on others, but this is what has had basic testing
58+
python_requires='>=2.5, <4',
59+
60+
install_requires = install_requires,
61+
2962
tests_require = [
30-
'testtools',
63+
'testtools'
3164
],
3265

3366
test_suite = "v1pysdk.tests",
3467

3568
)
69+
70+
71+
72+
73+
74+
>>>>>>> updated setup.py and package __init__ to support PyPi upload
75+
76+
test_suite = "v1pysdk.tests",
77+
78+
)

v1pysdk/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
2+
name = "v1pysdk"
33
"""
44
The external interface for the v1pysdk package. Right now there is only one
55
class, "V1Meta", which exposes the types and operations found in a specified

0 commit comments

Comments
 (0)