1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
#!/usr/bin/env python
from os.path import abspath, dirname, join
from setuptools import setup
import sys
versionpath = join(abspath(dirname(__file__)), 'sqlobject', '__version__.py')
sqlobject_version = {}
if sys.version_info[:2] == (2, 7):
execfile(versionpath, sqlobject_version) # noqa: F821 'execfile' Py3
elif sys.version_info >= (3, 4):
exec(open(versionpath, 'r').read(), sqlobject_version)
else:
raise ImportError("SQLObject requires Python 2.7 or 3.4+")
subpackages = ['firebird', 'include', 'include.tests',
'inheritance', 'inheritance.tests',
'manager', 'maxdb', 'mysql', 'mssql', 'postgres',
'sqlite', 'sybase', 'tests', 'util',
'versioning', 'versioning.test']
setup(
name="SQLObject",
version=sqlobject_version['version'],
description="Object-Relational Manager, aka database wrapper",
long_description="""\
SQLObject is a popular *Object Relational Manager* for providing an
object interface to your database, with tables as classes, rows as
instances, and columns as attributes.
SQLObject includes a Python-object-based query language that makes SQL
more abstract, and provides substantial database independence for
applications.
Supports MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (SAPDB).
Python 2.7 or 3.4+ is required.
For development see the projects at
`SourceForge <https://sourceforge.net/projects/sqlobject/>`_
and `GitHub <https://github.com/sqlobject>`_.
.. image:: https://github.com/sqlobject/sqlobject/actions/workflows/run-tests.yaml/badge.svg?branch=github-actions
:target: https://github.com/sqlobject/sqlobject/actions/workflows/run-tests.yaml
""", # noqa: E501 line too long
long_description_content_type="text/x-rst",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: "
"GNU Library or Lesser General Public License (LGPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author="Ian Bicking",
author_email="ianb@colorstudy.com",
maintainer="Oleg Broytman",
maintainer_email="phd@phdru.name",
url="http://sqlobject.org/",
download_url="https://pypi.org/project/SQLObject/%s/" %
sqlobject_version['version'],
project_urls={
'Homepage': 'http://sqlobject.org/',
'Development docs': 'http://sqlobject.org/devel/',
'Download': 'https://pypi.org/project/SQLObject/%s/' %
sqlobject_version['version'],
'Github repo': 'https://github.com/sqlobject',
'Issue tracker': 'https://github.com/sqlobject/sqlobject/issues',
'SourceForge project': 'https://sourceforge.net/projects/sqlobject/',
'Twitter': 'https://twitter.com/SQLObject',
'Wikipedia': 'https://en.wikipedia.org/wiki/SQLObject',
},
keywords=["sql", "orm", "object-relational mapper"],
license="LGPL",
platforms="Any",
packages=["sqlobject"]
+ ['sqlobject.%s' % package for package in subpackages],
scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"],
entry_points="""
[paste.filter_app_factory]
main = sqlobject.wsgi_middleware:make_middleware
""",
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
requires=['FormEncode', 'PyDispatcher'],
install_requires=[
"FormEncode>=1.1.1,!=1.3.0; python_version=='2.7'",
"FormEncode>=1.3.1; python_version>='3.4' and python_version < '3.13'",
"PyDispatcher>=2.0.4",
"formencode @ "
"git+https://github.com/formencode/formencode.git#egg=formencode"
" ; python_version >= '3.13'",
],
extras_require={
# Firebird/Interbase
'fdb': ['fdb'],
'firebirdsql': ['firebirdsql'],
'kinterbasdb': ['kinterbasdb'],
# MS SQL
'adodbapi': ['adodbapi'],
'pymssql': ['pymssql'],
# MySQL
'mysql:python_version=="2.7"': ['MySQL-python'],
'mysql:python_version>="3.4"': ['mysqlclient'],
'mysql-connector': ['mysql-connector'],
'mysql-connector-python:python_version=="2.7"':
['mysql-connector-python <= 8.0.23'],
'mysql-connector-python:python_version=="3.4"':
['mysql-connector-python <= 8.0.22, > 2.0', 'protobuf < 3.19'],
'mysql-connector-python:python_version=="3.5"':
['mysql-connector-python <= 8.0.23, >= 8.0.5'],
'mysql-connector-python:python_version=="3.6"':
['mysql-connector-python <= 8.0.28, >= 8.0.6'],
'mysql-connector-python:python_version=="3.7"':
['mysql-connector-python <= 8.0.29, >= 8.0.13'],
'mysql-connector-python:python_version=="3.8"':
['mysql-connector-python <= 8.0.29, >= 8.0.19'],
'mysql-connector-python:python_version=="3.9"':
['mysql-connector-python <= 8.0.29, >= 8.0.24'],
'mysql-connector-python:python_version=="3.10"':
['mysql-connector-python <= 8.0.29, >= 8.0.28'],
'mysql-connector-python:python_version>="3.11"':
['mysql-connector-python >= 8.0.29'],
'pymysql:python_version == "2.7" or python_version == "3.5"':
['pymysql < 1.0'],
'pymysql:python_version == "3.4"': ['pymysql < 0.10.0'],
'pymysql:python_version == "3.6"': ['pymysql < 1.0.3'],
'pymysql:python_version >= "3.7"': ['pymysql'],
'cymysql': ['cymysql'],
'mariadb': ['mariadb'],
# ODBC
'odbc': ['pyodbc'],
'pyodbc': ['pyodbc'],
'pypyodbc': ['pypyodbc'],
# PostgreSQL
'psycopg:python_version>="3.6"': ['psycopg[binary]'],
'psycopg-c:python_version>="3.6"': ['psycopg-c'],
'psycopg2': ['psycopg2-binary'],
'postgres': ['psycopg2-binary'],
'postgresql': ['psycopg2-binary'],
'psycopg2-binary:python_version=="3.4"': ['psycopg2-binary == 2.8.4'],
'psycopg2-binary:python_version!="3.4"': ['psycopg2-binary'],
'pygresql:python_version=="3.4"': ['pygresql < 5.2'],
'pygresql:python_version!="3.4"': ['pygresql'],
'pypostgresql': ['py-postgresql'],
'py-postgresql': ['py-postgresql'],
'pg8000:python_version=="2.7"': ['pg8000 < 1.13'],
'pg8000:python_version=="3.4"': ['pg8000 < 1.12.4'],
'pg8000:python_version>="3.5"': ['pg8000'],
#
'sapdb': ['sapdb'],
'sybase': ['Sybase'],
# Non-DB API drivers
'zope-dt:python_version=="3.4"': ['zope.datetime < 4.3'],
'zope-dt:python_version!="3.4"': ['zope.datetime'],
},
)
# Send announce to:
# sqlobject-discuss@lists.sourceforge.net
# python-announce@python.org
# python-list@python.org
# db-sig@python.org
# Email tempate:
"""
@@ INTRO
What's new in SQLObject
=======================
@@ CHANGES
For a more complete list, please see the news:
http://sqlobject.org/docs/News.html
What is SQLObject
=================
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to use and quick to get started with.
It currently supports MySQL through the `MySQLdb` package, PostgreSQL
through the `psycopg` package, SQLite, Firebird, MaxDB (SAP DB), MS SQL
and Sybase. Python 2.7 or 3.4+ is required.
Where is SQLObject
==================
Site:
http://sqlobject.org
Mailing list:
https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss
Download:
https://pypi.org/project/SQLObject/@@/
News and changes:
http://sqlobject.org/docs/News.html
--
Ian Bicking / ianb@colorstudy.com / http://blog.ianbicking.org
""" # noqa: preserve space after two dashes
|