Skip to content

Commit 0e9ce66

Browse files
awolfdenAdam Wolfman
andauthored
Reformat with black and add top level setup.py file for Semaphore (#25)
Co-authored-by: Adam Wolfman <[email protected]>
1 parent cd98986 commit 0e9ce66

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

setup.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import os
2+
import sys
3+
from setuptools import setup, find_packages
4+
5+
base_dir = os.path.dirname(__file__)
6+
7+
with open("README.md", "r") as f:
8+
long_description = f.read()
9+
10+
about = {}
11+
with open(os.path.join(base_dir, "workos", "__about__.py")) as f:
12+
exec(f.read(), about)
13+
14+
dev_requirements = [
15+
"flake8",
16+
"pytest==4.6.9",
17+
"pytest-cov==2.8.1",
18+
"six==1.13.0",
19+
]
20+
if sys.version_info.major == 3:
21+
dev_requirements.extend(
22+
[
23+
"black==22.3.0",
24+
"twine==3.1.1",
25+
]
26+
)
27+
28+
setup(
29+
name=about["__package_name__"],
30+
version=about["__version__"],
31+
author=about["__author__"],
32+
author_email=about["__author_email__"],
33+
url=about["__package_url__"],
34+
description=about["__description__"],
35+
long_description=long_description,
36+
long_description_content_type="text/markdown",
37+
packages=find_packages(
38+
exclude=[
39+
"tests*",
40+
]
41+
),
42+
zip_safe=False,
43+
license=about["__license__"],
44+
install_requires=["requests>=2.22.0"],
45+
extras_require={
46+
"dev": dev_requirements,
47+
":python_version<'3.4'": ["enum34"],
48+
},
49+
classifiers=[
50+
"Development Status :: 5 - Production/Stable",
51+
"Intended Audience :: Developers",
52+
"License :: OSI Approved :: MIT License",
53+
"Operating System :: OS Independent",
54+
"Programming Language :: Python",
55+
"Programming Language :: Python :: 2",
56+
"Programming Language :: Python :: 2.7",
57+
"Programming Language :: Python :: 3",
58+
"Programming Language :: Python :: 3.4",
59+
"Programming Language :: Python :: 3.5",
60+
"Programming Language :: Python :: 3.6",
61+
"Programming Language :: Python :: 3.7",
62+
"Programming Language :: Python :: 3.8",
63+
],
64+
)

0 commit comments

Comments
 (0)