Skip to content

Commit a2883e3

Browse files
awolfdenAdam Wolfman
and
Adam Wolfman
authored
Update setup file for Semaphore (#10)
* Add top-level python flask env for Semaphore * Update setup.py config * Update setup.py file for Semaphore dependencies * Update setup.py * Update setup.py file * Update setup.py file Co-authored-by: Adam Wolfman <[email protected]>
1 parent 683eaed commit a2883e3

File tree

1 file changed

+61
-6
lines changed

1 file changed

+61
-6
lines changed

setup.py

+61-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,64 @@
1-
from setuptools import setup
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+
)
227

328
setup(
4-
name='python-flask-example-applications',
5-
packages=['python-flask-sso-example', 'python-flask-directory-sync-example',
6-
'python-flask-magic-link-example', 'python-flask-mfa-example', 'python-flask-sso-example'],
7-
include_package_data=True,
8-
install_requires=['flask']
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+
],
964
)

0 commit comments

Comments
 (0)