Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps for Python 3.12 compatibility #113

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
asttokens>=2.0.4
click
pyseeyou==1.0.0
pytz
requests==2.22.0
pyseeyou==1.0.2
requests==2.*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"Operating System :: OS Independent",
],
url="https://github.com/transifex/transifex-python",
install_requires=["pyseeyou", "pytz", "requests", "click", "asttokens"],
install_requires=["pyseeyou", "requests", "click", "asttokens"],
)
10 changes: 0 additions & 10 deletions transifex/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from datetime import datetime
from hashlib import md5

import pytz


def generate_key(string=None, context=None):
"""Return a unique key based on the given source string and context.
Expand Down Expand Up @@ -66,14 +64,6 @@ def escape_plural(plural):
).hexdigest()


def now():
"""Return the current datetime, as a UTC-aware object.

:rtype: datetime
"""
return datetime.utcnow().replace(tzinfo=pytz.utc) # pragma no cover


def import_to_python(import_str):
"""Given a string 'a.b.c' return object c from a.b module.

Expand Down
3 changes: 0 additions & 3 deletions transifex/native/cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from transifex.common.utils import now


class AbstractCache(object):
"""
An interface for classes that cache translations.
Expand Down
Loading