-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try using setup.cfg declarative metadata (#403)
* switch to setup.cfg metadata * remove manifest * update setupcfg * update setupcfg * update setupcfg * separate config file * fixup paths * exclude tests * Update setup.cfg * config module * remove old file * package -> nbqa * put manifest back * smaller manifest * move assets back out
- Loading branch information
1 parent
735dc52
commit bef2ffc
Showing
10 changed files
with
82 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,4 @@ | ||
include LICENSE | ||
include README.md | ||
|
||
recursive-exclude tests * | ||
recursive-exclude docs * | ||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] | ||
|
||
global-exclude *.bz2 | ||
global-exclude *.csv | ||
global-exclude *.dta | ||
global-exclude *.feather | ||
global-exclude *.gz | ||
global-exclude *.h5 | ||
global-exclude *.html | ||
global-exclude *.json | ||
global-exclude *.pickle | ||
global-exclude *.png | ||
global-exclude *.pyc | ||
global-exclude *.pyd | ||
global-exclude *.ods | ||
global-exclude *.odt | ||
global-exclude *.sas7bdat | ||
global-exclude *.sav | ||
global-exclude *.so | ||
global-exclude *.xls | ||
global-exclude *.xlsm | ||
global-exclude *.xlsx | ||
global-exclude *.xpt | ||
global-exclude *.xz | ||
global-exclude *.zip | ||
global-exclude *~ | ||
global-exclude .DS_Store | ||
global-exclude .git* | ||
global-exclude \#* | ||
|
||
prune docs/_build | ||
|
||
recursive-include docs *.rst conf.py Makefile make.bat |
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 @@ | ||
"""Configuration files.""" |
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,8 @@ | ||
[addopts] | ||
isort = ["--treat-comment-as-code", "# %%"] | ||
|
||
[config] | ||
|
||
[mutate] | ||
|
||
[ignore_cells] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,3 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
|
||
"""The setup script.""" | ||
from pathlib import Path | ||
|
||
from setuptools import find_packages, setup | ||
|
||
readme = Path("README.md").read_text(encoding="utf8") | ||
|
||
requirements = ["toml", "importlib_metadata; python_version < '3.8'"] | ||
|
||
setup_requirements = [] | ||
|
||
test_requirements = [] | ||
|
||
extra_requirements = { | ||
"toolchain": ["black", "mypy", "isort", "pyupgrade", "flake8", "pylint"] | ||
} | ||
|
||
setup( | ||
author="Marco Gorelli, Girish Pasupathy", | ||
python_requires=">=3.6", | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
description="Run any Python code quality tool on a Jupyter Notebook!", | ||
entry_points={"console_scripts": ["nbqa=nbqa.__main__:main"]}, | ||
install_requires=requirements, | ||
license="MIT license", | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
include_package_data=True, | ||
keywords="nbqa", | ||
name="nbqa", | ||
packages=find_packages(include=["nbqa", "nbqa.*"]), | ||
setup_requires=setup_requirements, | ||
test_suite="tests", | ||
tests_require=test_requirements, | ||
extras_require=extra_requirements, | ||
url="https://github.com/nbQA-dev/nbQA", | ||
version="0.3.6", | ||
zip_safe=False, | ||
) | ||
setup() |