Skip to content

Commit a17a76a

Browse files
committed
build: PIP setup configuration
1 parent bcdf4bc commit a17a76a

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.idea
22
.venv
33
__pycache__
4-
/tmp
4+
/tmp
5+
/dist
6+
/build/
7+
*.egg-info

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Copyright (c) 2023 QuisEgoSum
2+
Copyright (c) 2024 QuisEgoSum
33

44
Permission is hereby granted, free of charge, to any person obtaining
55
a copy of this software and associated documentation files (the

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
An extension for sqlalchemy to store the session object in context and simplify the retrieval of the query result.
4+
5+

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[egg_info]
2+
tag_build =
3+
tag_date = 0

setup.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from setuptools import setup, find_packages
2+
3+
4+
def readme():
5+
with open('README.md', 'r') as f:
6+
return f.read()
7+
8+
9+
setup(
10+
name='sqlalchemy_tx_context',
11+
version='0.1.0',
12+
author='QuisEgoSum',
13+
author_email='[email protected]',
14+
description='An extension for sqlalchemy',
15+
long_description=readme(),
16+
long_description_content_type='text/markdown',
17+
url='https://github.com/QuisEgoSum/sqlalchemy-tx-context',
18+
packages=find_packages(exclude=['tmp', 'example']),
19+
install_requires=[
20+
'requests>=2.0.0',
21+
'asyncpg>=0.29.0',
22+
'contextvars>=2.4'
23+
],
24+
keywords='sqlalchemy',
25+
python_requires='>=3.0',
26+
license='MIT',
27+
include_package_data=True,
28+
package_data={
29+
'sqlalchemy_tx_context': ['*.pyi']
30+
}
31+
)

sqlalchemy_tx_context/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TYPE_CHECKING, overload, Tuple, Any, Optional, Union, ContextManager, AsyncContextManager
1+
from typing import TYPE_CHECKING, overload, Any, Optional, Union, ContextManager, AsyncContextManager
22

33
from sqlalchemy import ScalarSelect, SelectBase
44
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession

0 commit comments

Comments
 (0)