-
Notifications
You must be signed in to change notification settings - Fork 31
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
1 parent
bd9baaa
commit a97b844
Showing
8 changed files
with
62 additions
and
132 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
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "babel>2.8"] | ||
build-backend = "setuptools.build_meta" | ||
|
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 |
---|---|---|
|
@@ -2,12 +2,58 @@ | |
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2015-2018 CERN. | ||
# Copyright (C) 2022 Graz University of Technology. | ||
# | ||
# Invenio is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
[aliases] | ||
test = pytest | ||
[metadata] | ||
name = invenio-logging | ||
version = attr: invenio_logging.__version__ | ||
description = "Module providing logging capabilities." | ||
long_description = file: README.rst, CHANGES.rst | ||
keywords = invenio logging | ||
license = MIT | ||
author = CERN | ||
author_email = [email protected] | ||
platforms = any | ||
url = https://github.com/inveniosoftware/invenio-logging | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
|
||
[options] | ||
include_package_data = True | ||
packages = find: | ||
python_requires = >=3.6 | ||
zip_safe = False | ||
install_requires = | ||
invenio-celery>=1.2.4 | ||
invenio-db>=1.0.12 | ||
|
||
[options.extras_require] | ||
tests = | ||
flask-login>=0.3.2,<0.5.0 | ||
httpretty>=0.8.14 | ||
mock>=1.3.0 | ||
pytest-invenio>=1.4.2 | ||
iniconfig>=1.1.1 | ||
Sphinx>=1.5.1 | ||
raven[flask]>=6 | ||
sentry-sdk[flask]>=1.0.0 | ||
# Kept for backwards compatibility | ||
docs = | ||
sentry = | ||
sentry-sdk = | ||
|
||
[options.entry_points] | ||
invenio_base.apps = | ||
invenio_logging_console = invenio_logging.console:InvenioLoggingConsole | ||
invenio_logging_fs = invenio_logging.fs:InvenioLoggingFS | ||
invenio_logging_sentry = invenio_logging.sentry:InvenioLoggingSentry | ||
invenio_base.api_apps = | ||
invenio_logging_console = invenio_logging.console:InvenioLoggingConsole | ||
invenio_logging_fs = invenio_logging.fs:InvenioLoggingFS | ||
invenio_logging_sentry = invenio_logging.sentry:InvenioLoggingSentry | ||
|
||
[build_sphinx] | ||
source-dir = docs/ | ||
|
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 |
---|---|---|
|
@@ -2,109 +2,13 @@ | |
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2015-2018 CERN. | ||
# Copyright (C) 2022 Graz University of Technology. | ||
# | ||
# Invenio is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Module providing logging capabilities.""" | ||
|
||
import os | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
readme = open('README.rst').read() | ||
history = open('CHANGES.rst').read() | ||
|
||
tests_require = [ | ||
'flask-login>=0.3.2,<0.5.0', | ||
'httpretty>=0.8.14', | ||
'mock>=1.3.0', | ||
'pytest-invenio>=1.4.2', | ||
'iniconfig>=1.1.1', | ||
] | ||
|
||
extras_require = { | ||
'docs': [ | ||
'Sphinx>=1.5.1', | ||
], | ||
'tests': tests_require, | ||
'sentry': [ | ||
'raven[flask]>=6', | ||
], | ||
'sentry-sdk':[ | ||
'sentry-sdk[flask]>=1.0.0' | ||
] | ||
} | ||
|
||
extras_require['all'] = [] | ||
for reqs in extras_require.values(): | ||
extras_require['all'].extend(reqs) | ||
|
||
setup_requires = [ | ||
'pytest-runner>=2.7.0', | ||
] | ||
|
||
install_requires = [ | ||
'invenio-celery>=1.2.4', | ||
'invenio-db>=1.0.12', | ||
] | ||
|
||
packages = find_packages() | ||
|
||
|
||
# Get the version string. Cannot be done with import! | ||
g = {} | ||
with open(os.path.join('invenio_logging', 'version.py'), 'rt') as fp: | ||
exec(fp.read(), g) | ||
version = g['__version__'] | ||
|
||
setup( | ||
name='invenio-logging', | ||
version=version, | ||
description=__doc__, | ||
long_description=readme + '\n\n' + history, | ||
keywords='invenio logging', | ||
license='MIT', | ||
author='CERN', | ||
author_email='[email protected]', | ||
url='https://github.com/inveniosoftware/invenio-logging', | ||
packages=packages, | ||
zip_safe=False, | ||
include_package_data=True, | ||
platforms='any', | ||
entry_points={ | ||
'invenio_base.apps': [ | ||
'invenio_logging_console' | ||
' = invenio_logging.console:InvenioLoggingConsole', | ||
'invenio_logging_fs = invenio_logging.fs:InvenioLoggingFS', | ||
'invenio_logging_sentry' | ||
' = invenio_logging.sentry:InvenioLoggingSentry', | ||
], | ||
'invenio_base.api_apps': [ | ||
'invenio_logging_console' | ||
' = invenio_logging.console:InvenioLoggingConsole', | ||
'invenio_logging_fs = invenio_logging.fs:InvenioLoggingFS', | ||
'invenio_logging_sentry' | ||
' = invenio_logging.sentry:InvenioLoggingSentry', | ||
], | ||
}, | ||
extras_require=extras_require, | ||
install_requires=install_requires, | ||
setup_requires=setup_requires, | ||
tests_require=tests_require, | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Development Status :: 5 - Production/Stable', | ||
], | ||
) | ||
setup() |