Skip to content

Commit 0309f71

Browse files
Remove psycopg2 and pymysql from the direct dependencies (#256)
Related to encode/databases#204
1 parent 769673b commit 0309f71

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## 0.4.1 (October 21st, 2020)
8+
9+
### Fixed
10+
11+
* Remove package dependency on the synchronous DB drivers (#256)
12+
713
## 0.4.0 (October 20th, 2020)
814

915
### Added

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ $ pip install databases[sqlite]
4040
```
4141

4242
Driver support is provided using one of [asyncpg][asyncpg], [aiomysql][aiomysql], or [aiosqlite][aiosqlite].
43+
Note that if you are using any synchronous SQLAlchemy functions such as `engine.create_all()` or [alembic][alembic] migrations then you still have to install a synchronous DB driver: [psycopg2][psycopg2] for PostgreSQL and [pymysql][pymysql] for MySQL.
4344

4445
---
4546

@@ -93,6 +94,8 @@ for examples of how to start using databases together with SQLAlchemy core expre
9394
[sqlalchemy-core]: https://docs.sqlalchemy.org/en/latest/core/
9495
[sqlalchemy-core-tutorial]: https://docs.sqlalchemy.org/en/latest/core/tutorial.html
9596
[alembic]: https://alembic.sqlalchemy.org/en/latest/
97+
[psycopg2]: https://www.psycopg.org/
98+
[pymysql]: https://github.com/PyMySQL/PyMySQL
9699
[asyncpg]: https://github.com/MagicStack/asyncpg
97100
[aiomysql]: https://github.com/aio-libs/aiomysql
98101
[aiosqlite]: https://github.com/jreese/aiosqlite

databases/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from databases.core import Database, DatabaseURL
22

3-
__version__ = "0.4.0"
3+
__version__ = "0.4.1"
44
__all__ = ["Database", "DatabaseURL"]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def get_packages(package):
5050
data_files=[("", ["LICENSE.md"])],
5151
install_requires=["sqlalchemy", 'aiocontextvars;python_version<"3.7"'],
5252
extras_require={
53-
"postgresql": ["asyncpg", "psycopg2"],
54-
"mysql": ["aiomysql", "pymysql"],
53+
"postgresql": ["asyncpg"],
54+
"mysql": ["aiomysql"],
5555
"sqlite": ["aiosqlite"],
5656
"postgresql+aiopg": ["aiopg"]
5757
},

0 commit comments

Comments
 (0)