Skip to content

Commit

Permalink
Last idea
Browse files Browse the repository at this point in the history
  • Loading branch information
lelit committed Aug 18, 2017
1 parent 957be61 commit f750e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
7 changes: 2 additions & 5 deletions python-rapidjson/rapidjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1801,11 +1801,8 @@ PyInit_rapidjson()
PyModule_AddIntConstant(m, "NM_DECIMAL", NM_DECIMAL);
PyModule_AddIntConstant(m, "NM_NATIVE", NM_NATIVE);

PyModule_AddStringConstant(m, "__version__",
PYTHON_RAPIDJSON_VERSION);
PyModule_AddStringConstant(m, "__author__",
PYTHON_RAPIDJSON_AUTHOR
" <" PYTHON_RAPIDJSON_AUTHOR_EMAIL ">");
PyModule_AddStringConstant(m, "__version__", "0.0.0");
PyModule_AddStringConstant(m, "__author__", "Ken Robbins <ken@kenrobbins.com>");

PyModule_AddStringConstant(m, "__rapidjson_version__",
RAPIDJSON_VERSION_STRING);
Expand Down
10 changes: 2 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
" the README.rst; in all other cases you may want to report the"
" issue.")

AUTHOR = 'Ken Robbins'
EMAIL = 'ken@kenrobbins.com'

with open('version.txt', encoding='utf-8') as f:
VERSION = f.read()

Expand All @@ -50,9 +47,6 @@
extension_options = {
'sources': ['./python-rapidjson/rapidjson.cpp'],
'include_dirs': [rj_include_dir],
'define_macros': [('PYTHON_RAPIDJSON_VERSION', '"%s"' % VERSION),
('PYTHON_RAPIDJSON_AUTHOR', '"%s"' % AUTHOR),
('PYTHON_RAPIDJSON_AUTHOR_EMAIL', '"%s"' % EMAIL)],
}

cc = sysconfig.get_config_var('CC')
Expand All @@ -75,8 +69,8 @@
long_description=LONG_DESCRIPTION + '\n\n' + CHANGES,
license='MIT License',
keywords='json rapidjson',
author=AUTHOR,
author_email=EMAIL,
author='Ken Robbins',
author_email='ken@kenrobbins.com',
maintainer='Lele Gaifax',
maintainer_email='lele@metapensiero.it',
url='https://github.com/python-rapidjson/python-rapidjson',
Expand Down

0 comments on commit f750e43

Please sign in to comment.