Update dependencies and remove python 3.5 special casing
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
"""Update telethon update state table
|
||||||
|
|
||||||
|
Revision ID: bdadd173ee02
|
||||||
|
Revises: eeaf0dae87ce
|
||||||
|
Create Date: 2018-05-13 10:42:59.395597
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = 'bdadd173ee02'
|
||||||
|
down_revision = 'eeaf0dae87ce'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
with op.batch_alter_table("telethon_entities") as batch_op:
|
||||||
|
batch_op.alter_column("id", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.alter_column("hash", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
|
||||||
|
with op.batch_alter_table("telethon_update_state") as batch_op:
|
||||||
|
batch_op.alter_column("entity_id", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.alter_column("pts", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.alter_column("qts", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.alter_column("date", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.alter_column("seq", existing_type=sa.Integer, type_=sa.BigInteger)
|
||||||
|
batch_op.add_column(sa.Column("unread_count", sa.Integer))
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
with op.batch_alter_table("telethon_entities") as batch_op:
|
||||||
|
batch_op.alter_column("id", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.alter_column("hash", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
|
||||||
|
with op.batch_alter_table("telethon_update_state") as batch_op:
|
||||||
|
batch_op.alter_column("entity_id", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.alter_column("pts", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.alter_column("qts", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.alter_column("date", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.alter_column("seq", existing_type=sa.BigInteger, type_=sa.Integer)
|
||||||
|
batch_op.drop_column("unread_count")
|
||||||
@@ -6,4 +6,5 @@ SQLAlchemy
|
|||||||
alembic
|
alembic
|
||||||
Markdown
|
Markdown
|
||||||
future-fstrings
|
future-fstrings
|
||||||
|
telethon-aio
|
||||||
telethon-session-sqlalchemy
|
telethon-session-sqlalchemy
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-r base.txt
|
|
||||||
git+https://github.com/tulir/telethon-asyncio@asyncio-3.5#egg=telethon
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-r base.txt
|
|
||||||
telethon-aio
|
|
||||||
@@ -33,12 +33,9 @@ setuptools.setup(
|
|||||||
"ruamel.yaml>=0.15.35,<0.16",
|
"ruamel.yaml>=0.15.35,<0.16",
|
||||||
"future-fstrings>=0.4.2",
|
"future-fstrings>=0.4.2",
|
||||||
"python-magic>=0.4.15,<0.5",
|
"python-magic>=0.4.15,<0.5",
|
||||||
"telethon-aio==0.18.3" if sys.version_info >= (3, 6) else "telethon-aio-git",
|
"telethon-aio>=0.19.0,<0.19.1",
|
||||||
"telethon-session-sqlalchemy>=0.1.2,<0.3",
|
"telethon-session-sqlalchemy>=0.1.2,<0.3",
|
||||||
],
|
],
|
||||||
dependency_links=[
|
|
||||||
"https://github.com/tulir/telethon-asyncio/tarball/bcdc4d77ea6edd6049497bac9074d0ad4277d1cc#egg=telethon-aio-git-0.18.3+1"
|
|
||||||
],
|
|
||||||
extras_require=extras,
|
extras_require=extras,
|
||||||
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|||||||
Reference in New Issue
Block a user