-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (30 loc) · 1.07 KB
/
setup.py
File metadata and controls
37 lines (30 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/env python
# Date: 2022/6/20
import os
import re
from setuptools import find_packages, setup
with open('README.md', encoding='utf-8') as fd:
long_description = fd.read()
def get_version(package):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search('__version__ = [\'"]([^\'"]+)[\'"]', init_py).group(1)
version = get_version('openapi')
setup(
name='openapipy',
version=version,
description='openapi tools',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[],
keywords='openapi,openapi-python,python-openapi,openapipy,pyopenapi',
author='ZhiChaoLiu',
author_email='liuzhichao9527@gmail.com',
url='https://github.com/luffy-genius/openapi',
license='MIT',
packages=find_packages(exclude=('examples',)),
include_package_data=True,
zip_safe=True,
install_requires=['httpx', 'pydantic', 'pycryptodome', 'cryptography'],
entry_points={'console_scripts': []},
)