Bumped version

This commit is contained in:
Georg Richter
2020-10-20 06:25:48 +02:00
parent 3b2edf5b35
commit ae7e4422e2

189
setup.py
View File

@ -1,94 +1,95 @@
#!/usr/bin/env python #!/usr/bin/env python
import os import os
from setuptools import setup, Extension from setuptools import setup, Extension
from configparser import ConfigParser from configparser import ConfigParser
# read the contents of your README file # read the contents of your README file
from os import path from os import path
this_directory = path.abspath(path.dirname(__file__)) this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read() long_description = f.read()
define_macros= [] define_macros= []
# read settings from site.cfg # read settings from site.cfg
c= ConfigParser() c= ConfigParser()
c.read(['site.cfg']) c.read(['site.cfg'])
options= dict(c.items('cc_options')) options= dict(c.items('cc_options'))
if os.name == "posix": if os.name == "posix":
from mariadb_posix import get_config from mariadb_posix import get_config
if os.name == "nt": if os.name == "nt":
from mariadb_windows import get_config from mariadb_windows import get_config
cfg = get_config(options) cfg = get_config(options)
PY_MARIADB_AUTHORS= "Georg Richter" PY_MARIADB_AUTHORS= "Georg Richter"
PY_MARIADB_MAJOR_VERSION=1 PY_MARIADB_MAJOR_VERSION=1
PY_MARIADB_MINOR_VERSION=0 PY_MARIADB_MINOR_VERSION=0
PY_MARIADB_PATCH_VERSION=4 PY_MARIADB_PATCH_VERSION=5
# PY_MARIADB_PRE_RELEASE_SEGMENT="" # PY_MARIADB_PRE_RELEASE_SEGMENT=""
PY_MARIADB_VERSION= "%s.%s.%s" % (PY_MARIADB_MAJOR_VERSION, PY_MARIADB_MINOR_VERSION, PY_MARIADB_PATCH_VERSION) PY_MARIADB_VERSION= "%s.%s.%s" % (PY_MARIADB_MAJOR_VERSION, PY_MARIADB_MINOR_VERSION, PY_MARIADB_PATCH_VERSION)
# Since we increase patch version even for alpha/beta/rc, pre release nr will be always zero. # Since we increase patch version even for alpha/beta/rc, pre release nr will be always zero.
PY_MARIADB_PRE_RELEASE_NR=0 PY_MARIADB_PRE_RELEASE_NR=0
define_macros.append(("PY_MARIADB_MAJOR_VERSION", PY_MARIADB_MAJOR_VERSION)) define_macros.append(("PY_MARIADB_MAJOR_VERSION", PY_MARIADB_MAJOR_VERSION))
define_macros.append(("PY_MARIADB_MINOR_VERSION", PY_MARIADB_MINOR_VERSION)) define_macros.append(("PY_MARIADB_MINOR_VERSION", PY_MARIADB_MINOR_VERSION))
define_macros.append(("PY_MARIADB_PATCH_VERSION", PY_MARIADB_PATCH_VERSION)) define_macros.append(("PY_MARIADB_PATCH_VERSION", PY_MARIADB_PATCH_VERSION))
# define_macros.append(("PY_MARIADB_PRE_RELEASE_SEGMENT", PY_MARIADB_PRE_RELEASE_SEGMENT)) # define_macros.append(("PY_MARIADB_PRE_RELEASE_SEGMENT", PY_MARIADB_PRE_RELEASE_SEGMENT))
setup(name='mariadb', setup(name='mariadb',
version=PY_MARIADB_VERSION, version=PY_MARIADB_VERSION,
python_requires='>=3.6', python_requires='>=3.6',
classifiers = [ classifiers = [
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
'Environment :: Console', 'Environment :: Console',
'Environment :: MacOS X', 'Environment :: MacOS X',
'Environment :: Win32 (MS Windows)', 'Environment :: Win32 (MS Windows)',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Programming Language :: C', 'Programming Language :: C',
'Programming Language :: Python', 'Programming Language :: Python',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Operating System :: Microsoft :: Windows', 'Programming Language :: Python :: 3.9',
'Operating System :: MacOS', 'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX', 'Operating System :: MacOS',
'Intended Audience :: End Users/Desktop', 'Operating System :: POSIX',
'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators', 'Intended Audience :: Developers',
'Topic :: Database' 'Intended Audience :: System Administrators',
], 'Topic :: Database'
description='Python MariaDB extension', ],
long_description=long_description, description='Python MariaDB extension',
long_description_content_type='text/markdown', long_description=long_description,
author=PY_MARIADB_AUTHORS, long_description_content_type='text/markdown',
license='LGPL 2.1', author=PY_MARIADB_AUTHORS,
url='https://www.github.com/mariadb-corporation/mariadb-connector-python', license='LGPL 2.1',
project_urls={ url='https://www.github.com/mariadb-corporation/mariadb-connector-python',
"Bug Tracker": "https://jira.mariadb.org/", project_urls={
"Documentation": "https://mariadb-corporation.github.io/mariadb-connector-python/", "Bug Tracker": "https://jira.mariadb.org/",
"Source Code": "https://www.github.com/mariadb-corporation/mariadb-connector-python", "Documentation": "https://mariadb-corporation.github.io/mariadb-connector-python/",
}, "Source Code": "https://www.github.com/mariadb-corporation/mariadb-connector-python",
ext_modules=[Extension('mariadb._mariadb', ['mariadb/mariadb.c', 'mariadb/mariadb_connection.c', },
'mariadb/mariadb_exception.c', 'mariadb/mariadb_cursor.c', ext_modules=[Extension('mariadb._mariadb', ['mariadb/mariadb.c', 'mariadb/mariadb_connection.c',
'mariadb/mariadb_codecs.c', 'mariadb/mariadb_field.c', 'mariadb/mariadb_exception.c', 'mariadb/mariadb_cursor.c',
'mariadb/mariadb_parser.c', 'mariadb/mariadb_codecs.c', 'mariadb/mariadb_field.c',
'mariadb/mariadb_pooling.c', 'mariadb/mariadb_parser.c',
'mariadb/mariadb_dbapitype.c', 'mariadb/mariadb_indicator.c'], 'mariadb/mariadb_pooling.c',
define_macros= define_macros, 'mariadb/mariadb_dbapitype.c', 'mariadb/mariadb_indicator.c'],
include_dirs=cfg.includes, define_macros= define_macros,
library_dirs=cfg.lib_dirs, include_dirs=cfg.includes,
libraries=cfg.libs, library_dirs=cfg.lib_dirs,
extra_compile_args = cfg.extra_compile_args, libraries=cfg.libs,
extra_link_args = cfg.extra_link_args, extra_compile_args = cfg.extra_compile_args,
extra_objects= cfg.extra_objects extra_link_args = cfg.extra_link_args,
)], extra_objects= cfg.extra_objects
py_modules=['mariadb.__init__', 'mariadb.constants.CLIENT', 'mariadb.constants.INDICATOR', 'mariadb.constants.CURSOR', )],
'mariadb.constants.FIELD_TYPE'], py_modules=['mariadb.__init__', 'mariadb.constants.CLIENT', 'mariadb.constants.INDICATOR', 'mariadb.constants.CURSOR',
) 'mariadb.constants.FIELD_TYPE'],
)