diff --git a/README.md b/README.md index 0b1ac62..2dd4772 100644 --- a/README.md +++ b/README.md @@ -58,5 +58,4 @@ print(LanguageEnum.EN.value) # Output: English ## TODO -- Add async support for database connection - Add version without postgresql dependency diff --git a/requirements.build.txt b/requirements.build.txt index 9353eba..270aabd 100644 --- a/requirements.build.txt +++ b/requirements.build.txt @@ -23,5 +23,3 @@ twine>=5.0.0 urllib3>=2.2.1 wheel>=0.43.0 zipp>=3.18.1 - --r requirements.txt diff --git a/requirements.pg.txt b/requirements.pg.txt new file mode 100644 index 0000000..e205e3e --- /dev/null +++ b/requirements.pg.txt @@ -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 diff --git a/requirements.txt b/requirements.txt index a03bdfe..4183694 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 6cd69b9..8dd4e9c 100644 --- a/setup.py +++ b/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", )