-
Notifications
You must be signed in to change notification settings - Fork 798
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
Showing
1 changed file
with
70 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
"""adodbapi -- a pure Python PEP 249 DB-API package using Microsoft ADO | ||
Adodbapi can be run on CPython 3.5 and later. | ||
""" | ||
|
||
CLASSIFIERS = """\ | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: SQL | ||
Topic :: Software Development | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Database | ||
""" | ||
|
||
NAME = "adodbapi" | ||
MAINTAINER = "Vernon Cole" | ||
MAINTAINER_EMAIL = "vernondcole@gmail.com" | ||
DESCRIPTION = ( | ||
"""A pure Python package implementing PEP 249 DB-API using Microsoft ADO.""" | ||
) | ||
URL = "http://sourceforge.net/projects/adodbapi" | ||
LICENSE = "LGPL" | ||
CLASSIFIERS = filter(None, CLASSIFIERS.split("\n")) | ||
AUTHOR = "Henrik Ekelund, Vernon Cole, et.al." | ||
AUTHOR_EMAIL = "vernondcole@gmail.com" | ||
PLATFORMS = ["Windows", "Linux"] | ||
|
||
VERSION = None # in case searching for version fails | ||
a = open("adodbapi.py") # find the version string in the source code | ||
for line in a: | ||
if "__version__" in line: | ||
VERSION = line.split("'")[1] | ||
print('adodbapi version="%s"' % VERSION) | ||
break | ||
a.close() | ||
|
||
|
||
def setup_package(): | ||
from setuptools import setup | ||
from setuptools.command.build_py import build_py | ||
|
||
setup( | ||
cmdclass={"build_py": build_py}, | ||
name=NAME, | ||
maintainer=MAINTAINER, | ||
maintainer_email=MAINTAINER_EMAIL, | ||
description=DESCRIPTION, | ||
url=URL, | ||
keywords="database ado odbc dbapi db-api Microsoft SQL", | ||
## download_url=DOWNLOAD_URL, | ||
long_description=open("README.txt").read(), | ||
license=LICENSE, | ||
classifiers=CLASSIFIERS, | ||
author=AUTHOR, | ||
author_email=AUTHOR_EMAIL, | ||
platforms=PLATFORMS, | ||
version=VERSION, | ||
package_dir={"adodbapi": ""}, | ||
packages=["adodbapi"], | ||
) | ||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
setup_package() | ||
"""adodbapi -- a pure Python PEP 249 DB-API package using Microsoft ADO | ||
Adodbapi can be run on CPython 3.5 and later. | ||
""" | ||
|
||
CLASSIFIERS = """\ | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX :: Linux | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: SQL | ||
Topic :: Software Development | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Database | ||
""" | ||
|
||
NAME = "adodbapi" | ||
MAINTAINER = "Vernon Cole" | ||
MAINTAINER_EMAIL = "vernondcole@gmail.com" | ||
DESCRIPTION = ( | ||
"""A pure Python package implementing PEP 249 DB-API using Microsoft ADO.""" | ||
) | ||
URL = "http://sourceforge.net/projects/adodbapi" | ||
LICENSE = "LGPL" | ||
CLASSIFIERS = filter(None, CLASSIFIERS.split("\n")) | ||
AUTHOR = "Henrik Ekelund, Vernon Cole, et.al." | ||
AUTHOR_EMAIL = "vernondcole@gmail.com" | ||
PLATFORMS = ["Windows", "Linux"] | ||
|
||
VERSION = None # in case searching for version fails | ||
a = open("adodbapi.py") # find the version string in the source code | ||
for line in a: | ||
if "__version__" in line: | ||
VERSION = line.split("'")[1] | ||
print('adodbapi version="%s"' % VERSION) | ||
break | ||
a.close() | ||
|
||
|
||
def setup_package(): | ||
from setuptools import setup | ||
from setuptools.command.build_py import build_py | ||
|
||
setup( | ||
cmdclass={"build_py": build_py}, | ||
name=NAME, | ||
maintainer=MAINTAINER, | ||
maintainer_email=MAINTAINER_EMAIL, | ||
description=DESCRIPTION, | ||
url=URL, | ||
keywords="database ado odbc dbapi db-api Microsoft SQL", | ||
## download_url=DOWNLOAD_URL, | ||
long_description=open("README.txt").read(), | ||
license=LICENSE, | ||
classifiers=CLASSIFIERS, | ||
author=AUTHOR, | ||
author_email=AUTHOR_EMAIL, | ||
platforms=PLATFORMS, | ||
version=VERSION, | ||
package_dir={"adodbapi": ""}, | ||
packages=["adodbapi"], | ||
) | ||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
setup_package() |