mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-12 11:20:31 +02:00
breaking: default version no longer uses postgres
This commit is contained in:
@@ -58,5 +58,4 @@ print(LanguageEnum.EN.value) # Output: English
|
||||
|
||||
## TODO
|
||||
|
||||
- Add async support for database connection
|
||||
- Add version without postgresql dependency
|
||||
|
||||
@@ -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
5
requirements.pg.txt
Normal 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
|
||||
@@ -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
|
||||
|
||||
8
setup.py
8
setup.py
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user