-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
m32
committed
Aug 24, 2024
1 parent
283b66f
commit 2bd3f72
Showing
11 changed files
with
145 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
xrun() { | ||
echo "********************** $*" | ||
vpy3 $* | ||
} | ||
|
||
xrun bandit --recursive --skip B101 . # B101 is assert statements | ||
xrun black --check . || true | ||
xrun codespell --quiet-level=2 # --ignore-words-list="" --skip="" | ||
xrun flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
xrun isort --check-only --profile black . || true | ||
xrun mypy --ignore-missing-imports . || true | ||
#xrun pytest || true | ||
#xrun pytest --doctest-modules || true | ||
#xrun safety check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,54 @@ | ||
import sys | ||
import os | ||
import re | ||
import sys | ||
|
||
if sys.version_info < (2, 6): | ||
raise Exception("SQLAlchemy TDS requires Python 2.6 or higher.") | ||
|
||
from setuptools import setup | ||
|
||
v = open(os.path.join(os.path.dirname(__file__), 'sqlalchemy_pytds', '__init__.py')) | ||
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) | ||
v.close() | ||
with open( | ||
os.path.join(os.path.dirname(__file__), "sqlalchemy_pytds", "__init__.py") | ||
) as fp: | ||
rem = re.compile(r".*__version__ = \"(.*?)\"", re.S).match(fp.read()) | ||
assert rem is not None | ||
VERSION = rem.group(1) | ||
|
||
readme = os.path.join(os.path.dirname(__file__), 'README.rst') | ||
readme = os.path.join(os.path.dirname(__file__), "README.rst") | ||
requires = [ | ||
'python-tds', | ||
'SQLAlchemy >= 2.0', | ||
"python-tds", | ||
"SQLAlchemy >= 2.0", | ||
] | ||
|
||
setup(name='sqlalchemy_pytds', | ||
version=VERSION, | ||
description="A Microsoft SQL Server TDS connector for SQLAlchemy.", | ||
long_description=open(readme).read(), | ||
long_description_content_type='text/x-rst', | ||
author='Grzegorz Makarewicz', | ||
author_email='[email protected]', | ||
url='https://github.com/m32/sqlalchemy-tds', | ||
license='MIT', | ||
platforms=["any"], | ||
packages=['sqlalchemy_pytds'], | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Topic :: Database :: Front-Ends', | ||
], | ||
keywords='SQLAlchemy Microsoft SQL Server', | ||
install_requires = requires, | ||
include_package_data=True, | ||
tests_require=['nose >= 0.11'], | ||
test_suite="nose.collector", | ||
entry_points={ | ||
'sqlalchemy.dialects': [ | ||
'mssql.pytds = sqlalchemy_pytds.dialect:MSDialect_pytds', | ||
] | ||
} | ||
setup( | ||
name="sqlalchemy_pytds", | ||
version=VERSION, | ||
description="A Microsoft SQL Server TDS connector for SQLAlchemy.", | ||
long_description=open(readme).read(), | ||
long_description_content_type="text/x-rst", | ||
author="Grzegorz Makarewicz", | ||
author_email="[email protected]", | ||
url="https://github.com/m32/sqlalchemy-tds", | ||
license="MIT", | ||
platforms=["any"], | ||
packages=["sqlalchemy_pytds"], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Topic :: Database :: Front-Ends", | ||
], | ||
keywords="SQLAlchemy Microsoft SQL Server", | ||
install_requires=requires, | ||
include_package_data=True, | ||
tests_require=["nose >= 0.11"], | ||
test_suite="nose.collector", | ||
entry_points={ | ||
"sqlalchemy.dialects": [ | ||
"mssql.pytds = sqlalchemy_pytds.dialect:MSDialect_pytds", | ||
] | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '1.0.1' | ||
__version__ = "1.0.1" | ||
|
||
from sqlalchemy.dialects import registry | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.