-
Notifications
You must be signed in to change notification settings - Fork 1
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
f52cf58
commit ebf593f
Showing
12 changed files
with
842 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/magicbag/_version.py export-subst |
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,37 @@ | ||
# Development records | ||
|
||
## versioneer install | ||
[python versioneer](https://github.com/python-versioneer/python-versioneer) | ||
|
||
### pyproject config | ||
```toml | ||
[tool.versioneer] | ||
VCS = "git" | ||
style = "pep440" | ||
versionfile_source = "src/magicbag/_version.py" | ||
versionfile_build = "magicbag/_version.py" | ||
tag_prefix = "v" | ||
parentdir_prefix = "magicbag-" | ||
``` | ||
check source and build directory carefully | ||
|
||
|
||
### setup.py config | ||
```python | ||
setup( | ||
name="magicbag", | ||
url="https://github.com/lipicoder/magicbag", | ||
author="lipi", | ||
author_email="[email protected]", | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=requires, | ||
) | ||
``` | ||
|
||
### create _version.py | ||
```bash | ||
versioneer install --vendor | ||
``` |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
pytest==7.2.0 | ||
pylint==2.15.7 | ||
pydocstyle==6.1.1 | ||
pycodestyle==2.10.0 | ||
setuptools==65.6.3 | ||
versioneer[toml]>=0.28 | ||
pytest>=7.2.0 | ||
pylint>=2.15.7 | ||
pydocstyle>=6.1.1 | ||
pycodestyle>=2.10.0 | ||
setuptools>=65.6.3 | ||
pytz~=2022.6 |
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,104 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
ignore = | ||
# space before : (needed for how black formats slicing) | ||
E203, | ||
# line break before binary operator | ||
W503, | ||
# line break after binary operator | ||
W504, | ||
# module level import not at top of file | ||
E402, | ||
# do not assign a lambda expression, use a def | ||
E731, | ||
# found modulo formatter (incorrect picks up mod operations) | ||
S001, | ||
# controversial | ||
B006, | ||
# controversial | ||
B007, | ||
# controversial | ||
B008, | ||
# setattr is used to side-step mypy | ||
B009, | ||
# getattr is used to side-step mypy | ||
B010, | ||
# tests use assert False | ||
B011, | ||
# tests use comparisons but not their returned value | ||
B015, | ||
# false positives | ||
B019, | ||
# Use of functools.lru_cache or functools.cache on methods can lead to memory leaks. | ||
B020 | ||
# Loop control variable overrides iterable it iterates | ||
B023 | ||
# Functions defined inside a loop must not use variables redefined in the loop | ||
B301, | ||
# single-letter variables | ||
PDF023, | ||
# "use 'pandas._testing' instead" in non-test code | ||
PDF025, | ||
# If test must be a simple comparison against sys.platform or sys.version_info | ||
Y002, | ||
# Use "_typeshed.Self" instead of class-bound TypeVar | ||
Y019, | ||
# Docstrings should not be included in stubs | ||
Y021, | ||
# Use typing_extensions.TypeAlias for type aliases | ||
Y026, | ||
# Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) | ||
Y027, | ||
# while int | float can be shortened to float, the former is more explicit | ||
Y041 | ||
exclude = | ||
doc/build/*.py, | ||
doc/temp/*.py, | ||
.eggs/*.py, | ||
versioneer.py, | ||
# exclude asv benchmark environments from linting | ||
env | ||
per-file-ignores = | ||
# private import across modules | ||
pandas/tests/*:PDF020 | ||
# pytest.raises without match= | ||
pandas/tests/extension/*:PDF009 | ||
# os.remove | ||
doc/make.py:PDF008 | ||
# import from pandas._testing | ||
pandas/testing.py:PDF014 | ||
# can't use fixtures in asv | ||
asv_bench/*:PDF016 | ||
|
||
|
||
[flake8-rst] | ||
max-line-length = 84 | ||
bootstrap = | ||
import numpy as np | ||
import pandas as pd | ||
# avoiding error when importing again numpy or pandas | ||
np | ||
# (in some cases we want to do it to show users) | ||
pd | ||
ignore = | ||
# space before : (needed for how black formats slicing) | ||
E203, | ||
# module level import not at top of file | ||
E402, | ||
# line break before binary operator | ||
W503, | ||
# Classes/functions in different blocks can generate those errors | ||
# expected 2 blank lines, found 0 | ||
E302, | ||
# expected 2 blank lines after class or function definition, found 0 | ||
E305, | ||
# We use semicolon at the end to avoid displaying plot objects | ||
# statement ends with a semicolon | ||
E703, | ||
# comparison to none should be 'if cond is none:' | ||
E711, | ||
exclude = | ||
doc/source/development/contributing_docstring.rst, | ||
# work around issue of undefined variable warnings | ||
# https://github.com/pandas-dev/pandas/pull/38837#issuecomment-752884156 | ||
doc/source/getting_started/comparison/includes/*.rst |
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,24 +2,20 @@ | |
|
||
# -*- coding: utf-8 -*- | ||
from setuptools import find_packages, setup | ||
import versioneer | ||
|
||
LONG_DESC = "magicbag is a python tool library." | ||
|
||
requires = [] | ||
|
||
setup( | ||
name="magicbag", | ||
url="https://github.com/lipicoder/magicbag", | ||
author="lipi", | ||
author_email="[email protected]", | ||
description="python tools library", | ||
long_description=LONG_DESC, | ||
zip_safe=True, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
], | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=requires, | ||
) | ||
if __name__ == "__main__": | ||
setup( | ||
name="magicbag", | ||
url="https://github.com/lipicoder/magicbag", | ||
author="lipi", | ||
author_email="[email protected]", | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=requires, | ||
) |
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
Oops, something went wrong.