-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
38 lines (32 loc) · 1.17 KB
/
setup.py
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
38
import json
from setuptools import setup
with open('README.md', 'r') as readme_file:
long_description = readme_file.read()
with open('requirements.txt', 'r') as requirements_file:
requirements_list = requirements_file.readlines()
with open('package.json', 'r') as package_file:
package_dict = json.loads(package_file.read().strip())
version = package_dict['version']
setup(
name='fastapi_versionizer',
version=version,
author='Alex Schimpf',
author_email='[email protected]',
description='API versionizer for FastAPI web applications',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/alexschimpf/fastapi-versionizer',
packages=['', 'fastapi_versionizer'],
package_data={
'': ['README.md', 'requirements.txt', 'package.json'],
'fastapi_versionizer': ['py.typed']
},
classifiers=[
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],
install_requires=requirements_list,
python_requires='>=3.8'
)