-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MountainField/v6
feat: add python package structure
- Loading branch information
Showing
6 changed files
with
90 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import dw | ||
|
||
print(dw.DEFAULT_ENCODING) |
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[metadata] | ||
name = python-dw | ||
version = 0.6.0 | ||
author = Takahide Nogayama | ||
author_email = nogayama@gmail.com | ||
description = Data Wrangler (dw) | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/MountainField/dw | ||
project_urls = | ||
Bug Tracker = https://github.com/MountainField/dw/issues | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
|
||
[options] | ||
install_requires = | ||
openpyxl | ||
# pyyaml | ||
|
||
|
||
|
||
package_dir = | ||
= src | ||
packages = find: | ||
python_requires = >=3.6 | ||
|
||
[options.extras_require] # in setup.cfg | ||
test = | ||
uspec | ||
PyHamcrest | ||
dev = | ||
uspec | ||
PyHamcrest | ||
yapf | ||
|
||
#scripts = | ||
# scripts/dw | ||
[options.entry_points] | ||
console_scripts = | ||
dw = dw:main_cli | ||
|
||
[options.packages.find] | ||
where = src | ||
|
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# ================================================================= | ||
# dw | ||
# | ||
# Copyright (c) 2022 Takahide Nogayama | ||
# | ||
# This software is released under the MIT License. | ||
# http://opensource.org/licenses/mit-license.php | ||
# ================================================================= | ||
|
||
__version__ = "0.6.0" | ||
|
||
import logging as _logging | ||
import sys as _sys | ||
|
||
# Logger | ||
_LOGGER: _logging.Logger = _logging.getLogger(__name__) | ||
_LOG_FORMAT: str = '%(asctime)s | %(levelname)-7s | %(message)s (%(filename)s L%(lineno)s %(name)s)' | ||
|
||
DEFAULT_ENCODING = "utf-8" | ||
|
||
if __name__ == "__main__": | ||
_logging.basicConfig(stream=_sys.stderr, format=_LOG_FORMAT, level=_logging.WARNING) |