Codebase list sqlalchemy-utc / ee59c3e
New upstream release. Kali Janitor 2 years ago
10 changed file(s) with 95 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
00 language: python
11 python:
2 # Supported versions
3 - pypy3
4 - 3.6
5 - 3.7
6 - 3.8
7 - 3.9
28 - pypy
9 # Unsupported from Python team
310 - 2.7
4 - pypy3
11 # Completely unsupported
512 - 3.4
613 - 3.5
7 - 3.6
14 # See:
15 # https://www.python.org/downloads/
16 # https://www.pypy.org/download_advanced.html
817
918 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
1123 - SQLALCHEMY_VER=">=1.0.0,<1.1.0" PIP_OPTS=""
1224 - SQLALCHEMY_VER=">=1.1.0,<1.2.0" PIP_OPTS=""
1325 - 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
2227
2328 services:
2429 - postgresql
2530 - 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=""
2639
2740 before_install:
2841 - export PY=`python -c 'import sys; print("pypy" if hasattr(sys,"pypy_version_info") else "%d.%d" % sys.version_info[:2])'`
4558 pip install "SQLAlchemy $SQLALCHEMY_VER";
4659 fi
4760 - 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
5073 - 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';
5277 else
5378 pip install psycopg2 mysql-connector-python;
5479 fi
00 Changelog
11 =========
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
236
337 0.11.0
438 ------
640 Released on November 13, 2020.
741
842 - Ensured always returning the datetime with UTC timezone.
9 [`#8_` by Eduard Christian Dumitrescu]
43 [`#8`_ by Eduard Christian Dumitrescu]
1044
1145 .. _#8: https://github.com/spoqa/sqlalchemy-utc/pull/8
1246
22
33 .. image:: https://badge.fury.io/py/SQLAlchemy-Utc.svg?
44 :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
77 .. image:: https://codecov.io/github/spoqa/sqlalchemy-utc/coverage.svg?branch=master
88 :target: https://codecov.io/github/spoqa/sqlalchemy-utc?branch=master
99
0 sqlalchemy-utc (0.14.0-0kali1) UNRELEASED; urgency=low
1
2 * New upstream release.
3
4 -- Kali Janitor <[email protected]> Wed, 12 Jan 2022 00:59:10 -0000
5
06 sqlalchemy-utc (0.11.0-0kali1) kali-dev; urgency=medium
17
28 * Initial release
4646 version=get_version(),
4747 url='https://github.com/spoqa/sqlalchemy-utc',
4848 packages=find_packages(exclude=('tests*',)),
49 package_data={'sqlalchemy_utc': ['py.typed']},
4950 author='Hong Minhee',
5051 author_email='hongminhee' '@' 'member.fsf.org',
5152 license='MIT License',
5960 'Programming Language :: Python :: 3.4',
6061 'Programming Language :: Python :: 3.5',
6162 'Programming Language :: Python :: 3.6',
63 'Programming Language :: Python :: 3.7',
64 'Programming Language :: Python :: 3.8',
65 'Programming Language :: Python :: 3.9',
6266 'Programming Language :: Python :: Implementation :: CPython',
6367 'Programming Language :: Python :: Implementation :: PyPy',
6468 'Programming Language :: Python :: Implementation :: Stackless',
3333
3434 @compiles(utcnow, 'sqlite')
3535 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'))"
3742
3843
3944 @compiles(utcnow, 'mssql')
(New empty file)
1919 """
2020
2121 impl = DateTime(timezone=True)
22 cache_ok = True
2223
2324 def process_bind_param(self, value, dialect):
2425 if value is not None:
0 __version__ = '0.11.0'
0 __version__ = '0.14.0'
00 [tox]
1 envlist = pypy, py27, pypy3, py34, py35, py36
1 envlist = pypy, py27, pypy3, py34, py35, py36, py37, py38, py39
22 minversion = 1.6.0
33
44 [testenv]