-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BLD: move metadata to setup.cfg #38852
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
Changes from 31 commits
8e9a503
229a7f2
0199b1a
0f737e4
8191bc4
5327578
10f4a4c
5de4991
e9f7b84
ec33ac9
ea10a0f
50edbd8
24c4e29
ffd90a7
b25bf90
e2f83df
75f3e27
2840c65
61a1aef
5752a09
b3e9f3c
e8ab481
0d2a9f1
20da426
3377c1f
5b0a817
de38f59
0fa7b0d
0026b00
21b8797
68e34f3
769ddef
1156724
94c8eff
37e8a82
012f859
20d24b5
94c1de0
e3b0cd2
d2510be
25d1f4a
75e7004
defcccb
27dfd7e
a230b15
b4a8b61
5b614df
674e728
cb757e4
a5d8987
6ae0c56
b227a64
dd75479
424c194
12d360f
a69cf7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
include MANIFEST.in | ||
include LICENSE | ||
include RELEASE.md | ||
include README.md | ||
include setup.py | ||
include pyproject.toml | ||
Comment on lines
-1
to
-6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to https://packaging.python.org/guides/using-manifest-in/, those are included by default. |
||
|
||
graft doc | ||
prune doc/build | ||
|
@@ -16,10 +11,12 @@ global-exclude *.bz2 | |
global-exclude *.csv | ||
global-exclude *.dta | ||
global-exclude *.feather | ||
global-exclude *.tar | ||
global-exclude *.gz | ||
global-exclude *.h5 | ||
global-exclude *.html | ||
global-exclude *.json | ||
global-exclude *.jsonl | ||
global-exclude *.pickle | ||
global-exclude *.png | ||
global-exclude *.pyc | ||
|
@@ -40,6 +37,8 @@ global-exclude .DS_Store | |
global-exclude .git* | ||
global-exclude \#* | ||
|
||
prune pandas/tests/io/parser/data | ||
fangchenli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
include versioneer.py | ||
include pandas/_version.py | ||
include pandas/io/formats/templates/*.tpl |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
[build-system] | ||
# Minimum requirements for the build system to execute. | ||
# See https://github.com/scipy/scipy/pull/10431 for the AIX issue. | ||
# See https://github.com/scipy/scipy/pull/12940 for the AIX issue. | ||
requires = [ | ||
"setuptools", | ||
"setuptools>=38.6.0", | ||
"wheel", | ||
"Cython>=0.29.21,<3", # Note: sync with setup.py | ||
"numpy==1.16.5; python_version=='3.7' and platform_system!='AIX'", | ||
"numpy==1.17.3; python_version=='3.8' and platform_system!='AIX'", | ||
"numpy==1.16.5; python_version=='3.7' and platform_system=='AIX'", | ||
"numpy==1.17.3; python_version=='3.8' and platform_system=='AIX'", | ||
"numpy==1.16.5; python_version=='3.7'", | ||
"numpy==1.17.3; python_version=='3.8'", | ||
fangchenli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"numpy; python_version>='3.9'", | ||
] | ||
# uncomment to enable pep517 after versioneer problem is fixed. | ||
# https://github.com/python-versioneer/python-versioneer/issues/193 | ||
# build-backend = "setuptools.build_meta" | ||
Comment on lines
+12
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could modify PATH and uncomment this line to enable pep517. But I feel that may require some discussion. |
||
|
||
[tool.black] | ||
target-version = ['py37', 'py38'] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,67 @@ | ||
[metadata] | ||
name = pandas | ||
description = Powerful data structures for data analysis, time series, and statistics | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
fangchenli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
url = https://pandas.pydata.org | ||
author = The Pandas Development Team | ||
author_email = [email protected] | ||
license = BSD-3-Clause | ||
license_file = LICENSE | ||
platforms = any | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independen | ||
Programming Language :: Cython | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Topic :: Scientific/Engineering | ||
project_urls = | ||
Bug Tracker = https://github.com/pandas-dev/pandas/issues | ||
Documentation = https://pandas.pydata.org/pandas-docs/stable | ||
Source Code = https://github.com/pandas-dev/pandas | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
numpy>=1.16.5 | ||
python-dateutil>=2.7.3 | ||
pytz>=2017.3 | ||
python_requires = >=3.7.1 | ||
include_package_data = True | ||
zip_safe = False | ||
|
||
[options.entry_points] | ||
pandas_plotting_backends = | ||
matplotlib = pandas:plotting._matplotlib | ||
|
||
[options.extras_require] | ||
test = | ||
hypothesis>=3.58 | ||
pytest>=5.0.1 | ||
pytest-xdist | ||
|
||
[options.package_data] | ||
* = templates/*, _libs/**/*.dll | ||
|
||
[build_ext] | ||
inplace = 1 | ||
inplace = True | ||
|
||
[options.packages.find] | ||
include = pandas, pandas.* | ||
|
||
# See the docstring in versioneer.py for instructions. Note that you must | ||
# re-run 'versioneer.py setup' after changing this section, and commit the | ||
# resulting files. | ||
|
||
[versioneer] | ||
VCS = git | ||
vcs = git | ||
style = pep440 | ||
versionfile_source = pandas/_version.py | ||
versionfile_build = pandas/_version.py | ||
|
@@ -38,16 +92,14 @@ bootstrap = | |
import pandas as pd | ||
np # avoiding error when importing again numpy or pandas | ||
pd # (in some cases we want to do it to show users) | ||
ignore = E203, # space before : (needed for how black formats slicing) | ||
E402, # module level import not at top of file | ||
W503, # line break before binary operator | ||
# Classes/functions in different blocks can generate those errors | ||
fangchenli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
E302, # expected 2 blank lines, found 0 | ||
E305, # expected 2 blank lines after class or function definition, found 0 | ||
# We use semicolon at the end to avoid displaying plot objects | ||
fangchenli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
E703, # statement ends with a semicolon | ||
E711, # comparison to none should be 'if cond is none:' | ||
|
||
ignore = | ||
E203, # space before : (needed for how black formats slicing) | ||
E402, # module level import not at top of file | ||
W503, # line break before binary operator | ||
E302, # expected 2 blank lines, found 0 | ||
E305, # expected 2 blank lines after class or function definition, found 0 | ||
E703, # statement ends with a semicolon | ||
E711, # comparison to none should be 'if cond is none:' | ||
exclude = | ||
doc/source/development/contributing_docstring.rst, | ||
# work around issue of undefined variable warnings | ||
|
@@ -64,17 +116,17 @@ xfail_strict = True | |
filterwarnings = | ||
error:Sparse:FutureWarning | ||
error:The SparseArray:FutureWarning | ||
junit_family=xunit2 | ||
junit_family = xunit2 | ||
|
||
[codespell] | ||
ignore-words-list=ba,blocs,coo,hist,nd,ser | ||
ignore-words-list = ba,blocs,coo,hist,nd,ser | ||
|
||
[coverage:run] | ||
branch = False | ||
omit = | ||
*/tests/* | ||
pandas/_typing.py | ||
pandas/_version.py | ||
*/tests/* | ||
pandas/_typing.py | ||
pandas/_version.py | ||
plugins = Cython.Coverage | ||
|
||
[coverage:report] | ||
|
@@ -129,10 +181,10 @@ warn_unused_ignores = True | |
show_error_codes = True | ||
|
||
[mypy-pandas.tests.*] | ||
check_untyped_defs=False | ||
check_untyped_defs = False | ||
|
||
[mypy-pandas._version] | ||
check_untyped_defs=False | ||
check_untyped_defs = False | ||
|
||
[mypy-pandas.io.clipboard] | ||
check_untyped_defs=False | ||
check_untyped_defs = False |
Uh oh!
There was an error while loading. Please reload this page.