New upstream release.
Kali Janitor
2 years ago
0 | 0 | language: python |
1 | 1 | python: |
2 | # Supported versions | |
3 | - pypy3 | |
4 | - 3.6 | |
5 | - 3.7 | |
6 | - 3.8 | |
7 | - 3.9 | |
2 | 8 | - pypy |
9 | # Unsupported from Python team | |
3 | 10 | - 2.7 |
4 | - pypy3 | |
11 | # Completely unsupported | |
5 | 12 | - 3.4 |
6 | 13 | - 3.5 |
7 | - 3.6 | |
14 | # See: | |
15 | # https://www.python.org/downloads/ | |
16 | # https://www.pypy.org/download_advanced.html | |
8 | 17 | |
9 | 18 | env: |
10 | - SQLALCHEMY_VER=">=0.9.0,<1.0.0" PIP_OPTS="" | |
19 | # Supported versions | |
20 | - SQLALCHEMY_VER=">=1.3.0,<1.4.0" PIP_OPTS="" | |
21 | - SQLALCHEMY_VER=">=1.4.0,<1.5.0" PIP_OPTS="" | |
22 | # Unsupported versions | |
11 | 23 | - SQLALCHEMY_VER=">=1.0.0,<1.1.0" PIP_OPTS="" |
12 | 24 | - SQLALCHEMY_VER=">=1.1.0,<1.2.0" PIP_OPTS="" |
13 | 25 | - SQLALCHEMY_VER=">=1.2.0,<1.3.0" PIP_OPTS="" |
14 | ||
15 | matrix: | |
16 | exclude: | |
17 | # SQLAlchemy < 1.0.0 does not support psycopg2cffi as required by pypy | |
18 | - python: pypy | |
19 | env: SQLALCHEMY_VER=">=0.9.0,<1.0.0" PIP_OPTS="" | |
20 | - python: pypy3 | |
21 | env: SQLALCHEMY_VER=">=0.9.0,<1.0.0" PIP_OPTS="" | |
26 | # See: https://www.sqlalchemy.org/download.html | |
22 | 27 | |
23 | 28 | services: |
24 | 29 | - postgresql |
25 | 30 | - mysql |
31 | ||
32 | jobs: | |
33 | exclude: | |
34 | # No package of SQLAlchemy v1.4 for these Python versions | |
35 | - python: 3.4 | |
36 | env: SQLALCHEMY_VER=">=1.4.0,<1.5.0" PIP_OPTS="" | |
37 | - python: 3.5 | |
38 | env: SQLALCHEMY_VER=">=1.4.0,<1.5.0" PIP_OPTS="" | |
26 | 39 | |
27 | 40 | before_install: |
28 | 41 | - export PY=`python -c 'import sys; print("pypy" if hasattr(sys,"pypy_version_info") else "%d.%d" % sys.version_info[:2])'` |
45 | 58 | pip install "SQLAlchemy $SQLALCHEMY_VER"; |
46 | 59 | fi |
47 | 60 | - pip install -e . |
48 | - pip install pytest flake8 flake8-import-order | |
49 | - pip install pytest-cov codecov | |
61 | - pip install pytest codecov flake8 flake8-import-order | |
62 | # pytest-cov 2.10.0 requires a pytest >= 4.6 which is not available in the Python 2.7 environment. | |
63 | # Use an older version for it. | |
64 | - if [[ "$PY_VER" = "2.7" && "$PY" != "pypy" ]]; then | |
65 | pip install 'pytest-cov < 2.10.0'; | |
66 | else | |
67 | pip install pytest-cov; | |
68 | fi | |
69 | # PyMySQL dropped support for Python 2.7 in version 1.0.0: | |
70 | # https://github.com/PyMySQL/PyMySQL/blob/master/CHANGELOG.md#v100 | |
71 | # mysql-coonector-python did the same since version 8.0.24: | |
72 | # https://dev.mysql.com/doc/connector-python/en/connector-python-versions.html | |
50 | 73 | - if [[ "$PY" = "pypy" ]]; then |
51 | pip install psycopg2cffi pymysql; | |
74 | pip install psycopg2cffi 'pymysql < 1.0.0'; | |
75 | elif [[ "$PY_VER" = "2.7" ]]; then | |
76 | pip install psycopg2 'mysql-connector-python < 8.0.24'; | |
52 | 77 | else |
53 | 78 | pip install psycopg2 mysql-connector-python; |
54 | 79 | fi |
0 | 0 | Changelog |
1 | 1 | ========= |
2 | ||
3 | 0.14.0 | |
4 | ------ | |
5 | ||
6 | Released on September 24, 2021. | |
7 | ||
8 | - Add cache_ok flag on ``UtcDateTime`` to supress Pandas warnings. | |
9 | [`#14`_ by derekderie] | |
10 | ||
11 | .. _#14: https://github.com/spoqa/sqlalchemy-utc/pull/14 | |
12 | ||
13 | ||
14 | 0.13.0 | |
15 | ------ | |
16 | ||
17 | Released on September 24, 2021. | |
18 | ||
19 | - Add milliseconds to SQLite datetimes. [`#12`_ by Giovanni Santini] | |
20 | - Add support for newer python versions. (3.7, 3.8, 3.9) | |
21 | [`#12`_ by Giovanni Santini] | |
22 | ||
23 | .. _#12: https://github.com/spoqa/sqlalchemy-utc/pull/12 | |
24 | ||
25 | ||
26 | 0.12.0 | |
27 | ------ | |
28 | ||
29 | Released on May 7, 2021. | |
30 | ||
31 | - Add `py.typed` file to the package to be compatible with PEP-561. | |
32 | [`#10`_ by Dima Boger] | |
33 | ||
34 | .. _#10: https://github.com/spoqa/sqlalchemy-utc/pull/10 | |
35 | ||
2 | 36 | |
3 | 37 | 0.11.0 |
4 | 38 | ------ |
6 | 40 | Released on November 13, 2020. |
7 | 41 | |
8 | 42 | - Ensured always returning the datetime with UTC timezone. |
9 | [`#8_` by Eduard Christian Dumitrescu] | |
43 | [`#8`_ by Eduard Christian Dumitrescu] | |
10 | 44 | |
11 | 45 | .. _#8: https://github.com/spoqa/sqlalchemy-utc/pull/8 |
12 | 46 |
2 | 2 | |
3 | 3 | .. image:: https://badge.fury.io/py/SQLAlchemy-Utc.svg? |
4 | 4 | :target: https://pypi.python.org/pypi/SQLAlchemy-Utc |
5 | .. image:: https://travis-ci.org/spoqa/sqlalchemy-utc.svg?branch=master | |
6 | :target: https://travis-ci.org/spoqa/sqlalchemy-utc | |
5 | .. image:: https://travis-ci.com/spoqa/sqlalchemy-utc.svg?branch=master | |
6 | :target: https://travis-ci.com/spoqa/sqlalchemy-utc | |
7 | 7 | .. image:: https://codecov.io/github/spoqa/sqlalchemy-utc/coverage.svg?branch=master |
8 | 8 | :target: https://codecov.io/github/spoqa/sqlalchemy-utc?branch=master |
9 | 9 |
0 | sqlalchemy-utc (0.14.0-0kali1) UNRELEASED; urgency=low | |
1 | ||
2 | * New upstream release. | |
3 | ||
4 | -- Kali Janitor <[email protected]> Fri, 14 Jan 2022 06:18:44 -0000 | |
5 | ||
0 | 6 | sqlalchemy-utc (0.11.0-0kali1) kali-dev; urgency=medium |
1 | 7 | |
2 | 8 | * Initial release |
46 | 46 | version=get_version(), |
47 | 47 | url='https://github.com/spoqa/sqlalchemy-utc', |
48 | 48 | packages=find_packages(exclude=('tests*',)), |
49 | package_data={'sqlalchemy_utc': ['py.typed']}, | |
49 | 50 | author='Hong Minhee', |
50 | 51 | author_email='hongminhee' '@' 'member.fsf.org', |
51 | 52 | license='MIT License', |
59 | 60 | 'Programming Language :: Python :: 3.4', |
60 | 61 | 'Programming Language :: Python :: 3.5', |
61 | 62 | 'Programming Language :: Python :: 3.6', |
63 | 'Programming Language :: Python :: 3.7', | |
64 | 'Programming Language :: Python :: 3.8', | |
65 | 'Programming Language :: Python :: 3.9', | |
62 | 66 | 'Programming Language :: Python :: Implementation :: CPython', |
63 | 67 | 'Programming Language :: Python :: Implementation :: PyPy', |
64 | 68 | 'Programming Language :: Python :: Implementation :: Stackless', |
33 | 33 | |
34 | 34 | @compiles(utcnow, 'sqlite') |
35 | 35 | def sqlite_sql_utcnow(element, compiler, **kw): |
36 | return "(DATETIME('NOW'))" | |
36 | """SQLite DATETIME('NOW') returns a correct `datetime.datetime` but does not | |
37 | add milliseconds to it. | |
38 | ||
39 | Directly call STRFTIME with the final %f modifier in order to get those. | |
40 | """ | |
41 | return r"(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW'))" | |
37 | 42 | |
38 | 43 | |
39 | 44 | @compiles(utcnow, 'mssql') |
19 | 19 | """ |
20 | 20 | |
21 | 21 | impl = DateTime(timezone=True) |
22 | cache_ok = True | |
22 | 23 | |
23 | 24 | def process_bind_param(self, value, dialect): |
24 | 25 | if value is not None: |