|
| 1 | +from os import path as os_path |
| 2 | +import setuptools |
| 3 | + |
| 4 | +import fastapi_esql |
| 5 | + |
| 6 | +current_dir = os_path.abspath(os_path.dirname(__file__)) |
| 7 | + |
| 8 | + |
| 9 | +def read_file(filename): |
| 10 | + with open(os_path.join(current_dir, filename), encoding="utf-8") as f: |
| 11 | + long_description = f.read() |
| 12 | + return long_description |
| 13 | + |
| 14 | + |
| 15 | +with open("README.md", "r") as f: |
| 16 | + long_description = f.read() |
| 17 | + |
| 18 | + |
| 19 | +def read_requirements(filename): |
| 20 | + return [ |
| 21 | + line.strip() for line in read_file(filename).splitlines() |
| 22 | + if not line.startswith("#") |
| 23 | + ] |
| 24 | + |
| 25 | + |
| 26 | +setuptools.setup( |
| 27 | + name="fastapi-efficient-sql", |
| 28 | + version=fastapi_esql.__version__, |
| 29 | + author="BryanLee", |
| 30 | + author_email="bryanlee@126.com", |
| 31 | + description="Generate bulk DML SQL and execute them based on `tortoise-orm` and mysql8.0+, and integrated with `fastapi`.", |
| 32 | + long_description=long_description, |
| 33 | + long_description_content_type="text/markdown", |
| 34 | + url="https://github.com/NightMarcher/fastapi-efficient-sql", |
| 35 | + packages=setuptools.find_packages(), |
| 36 | + keywords=["sql", "fastapi", "tortoise-orm", "mysql8", "bulk-operation"], |
| 37 | + install_requires=read_requirements("requirements.txt"), |
| 38 | + classifiers=[ |
| 39 | + "Programming Language :: Python :: 3", |
| 40 | + "Programming Language :: Python :: 3.7", |
| 41 | + ], |
| 42 | +) |
0 commit comments