breaking: default version no longer uses postgres

This commit is contained in:
2024-11-24 17:57:49 +01:00
parent 8b037fbeb5
commit 90c9d2dc09
5 changed files with 12 additions and 11 deletions

View File

@@ -58,5 +58,4 @@ print(LanguageEnum.EN.value) # Output: English
## TODO
- Add async support for database connection
- Add version without postgresql dependency

View File

@@ -23,5 +23,3 @@ twine>=5.0.0
urllib3>=2.2.1
wheel>=0.43.0
zipp>=3.18.1
-r requirements.txt

5
requirements.pg.txt Normal file
View File

@@ -0,0 +1,5 @@
psycopg>=3.2.1 # PostgreSQL
psycopg-binary>=3.2.1 # PostgreSQL
psycopg-pool>=3.2.2 # PostgreSQL
asyncpg>=0.30.0 # SQLAlchemy
greenlet>=3.1.1 # Async

View File

@@ -14,13 +14,6 @@ sqlalchemy>=2.0.31 # SQLAlchemy
python-dotenv>=1.0.1 # Environment variables
psycopg>=3.2.1 # PostgreSQL
psycopg-binary>=3.2.1 # PostgreSQL
psycopg-pool>=3.2.2 # PostgreSQL
h11>=0.14.0 # Testing
httpcore>=1.0.5 # Testing
httpx>=0.27.0 # Testing
asyncpg>=0.30.0 #SQLAlchemy
greenlet>=3.1.1 #Async

View File

@@ -5,6 +5,12 @@ from setuptools import find_packages, setup
with open("requirements.txt") as f:
requirements = f.read().splitlines()
with open("requirements.build.txt") as f:
build_requirements = f.read().splitlines()
with open("requirements.pg.txt") as f:
pg_requirements = f.read().splitlines()
def get_latest_git_tag() -> str:
try:
@@ -33,6 +39,7 @@ setup(
license="MIT",
python_requires=">=3.12",
install_requires=requirements,
extras_require={"build": build_requirements, "postgres": pg_requirements},
keywords=[
"creyPY",
"Python",
@@ -40,7 +47,6 @@ setup(
"shortcuts",
"snippets",
"utils",
"personal library",
],
platforms="any",
)