-
Notifications
You must be signed in to change notification settings - Fork 3
Refactor logs #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Refactor logs #19
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9905aec
MNT: Add back setup.py required by Bookworm deb build, remove pyproje…
zhangt58 4f24185
Merge tag 'upstream/1.0.2' into bookworm
zhangt58 0079932
MNT: Bump version to 1.0.2.
zhangt58 0fb121c
MNT: Bump version to 1.0.2.
zhangt58 844df60
MNT: Bump version to 1.0.2-1.
zhangt58 b871af3
WIP: Set default log level "WARNING", refactored logs.
zhangt58 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 +1,6 @@ | ||
| [project] | ||
| name = "pyarchappl" | ||
| version = "1.0.2" | ||
| version = "1.0.2-1" | ||
| authors = [ | ||
| { name="Tong Zhang" } | ||
| ] | ||
|
|
||
This file contains hidden or 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,83 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from setuptools import setup | ||
|
|
||
|
|
||
| def readme() -> str: | ||
| with open('README.md', 'r') as f: | ||
| return f.read() | ||
|
|
||
|
|
||
| def read_requires(filepath: str) -> list[str]: | ||
| lines = [] | ||
| for line in open(filepath, "r"): | ||
| lines.append(line.strip()) | ||
| return lines | ||
|
|
||
|
|
||
| install_requires = [ | ||
| "numpy", | ||
| "pandas", | ||
| "openpyxl", | ||
| "tqdm", | ||
| "requests", | ||
| "simplejson", | ||
| "tables", | ||
| "protobuf>=3.0,<4.0", | ||
| "setuptools", | ||
| ] | ||
|
|
||
|
|
||
| extras_require = { | ||
| 'test': ['pytest'], | ||
| 'doc': ['sphinx', 'pydata_sphinx_theme'], | ||
| } | ||
|
|
||
|
|
||
| def set_entry_points(): | ||
| r = { | ||
| 'console_scripts': [ | ||
| 'pyarchappl-get=archappl.scripts.get:main', | ||
| 'pyarchappl-inspect=archappl.scripts.inspect:main', | ||
| ] | ||
| } | ||
| return r | ||
|
|
||
|
|
||
| setup( | ||
| name='pyarchappl', | ||
| version='1.0.2-1', | ||
| description='Python interface to Archiver Appliance', | ||
| long_description=readme(), | ||
| long_description_content_type='text/markdown', | ||
| url="https://github.com/zhangt58/pyarchappl", | ||
| author='Tong Zhang', | ||
| packages=[ | ||
| 'archappl.admin', 'archappl.data', 'archappl.data.pb', | ||
| 'archappl.client', 'archappl.contrib', 'archappl.config', | ||
| 'archappl.scripts', 'archappl.tests', 'archappl' | ||
| ], | ||
| package_dir={ | ||
| 'archappl.admin': 'main/mgmt', | ||
| 'archappl.data': 'main/data', | ||
| 'archappl.data.pb': 'main/data/pb', | ||
| 'archappl.client': 'main/client', | ||
| 'archappl.contrib': 'main/contrib', | ||
| 'archappl.config': 'main/config', | ||
| 'archappl.scripts': 'main/scripts', | ||
| 'archappl.tests': 'main/tests', | ||
| 'archappl': 'main' | ||
| }, | ||
| include_package_data=True, | ||
| entry_points=set_entry_points(), | ||
| python_requires=">=3.9", | ||
| install_requires=install_requires, | ||
| extras_require=extras_require, | ||
| license='GPL3+', | ||
| keywords="Archiver EPICS CA PVA", | ||
| classifiers=[ | ||
| 'Programming Language :: Python :: 3', | ||
| 'Topic :: Scientific/Engineering', | ||
| 'Topic :: Software Development :: Libraries :: Python Modules', | ||
| ], | ||
| ) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This debug log is now always executed regardless of verbose level, but the original code only logged this when verbose > 0. Consider adding the verbose check back if this timing information should only be shown when explicitly requested.