-
-
Notifications
You must be signed in to change notification settings - Fork 120
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 #480 from WenjieDu/dev
Add pyproject.toml, gather dependency files, and fix flake8 with toml config file
- Loading branch information
Showing
15 changed files
with
176 additions
and
212 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
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 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
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,25 @@ | ||
""" | ||
""" | ||
|
||
# Created by Wenjie Du <[email protected]> | ||
# License: BSD-3-Clause | ||
|
||
|
||
# PyPOTS version | ||
# | ||
# PEP0440 compatible formatted version, see: | ||
# https://www.python.org/dev/peps/pep-0440/ | ||
# Generic release markers: | ||
# X.Y | ||
# X.Y.Z # For bugfix releases | ||
# | ||
# Admissible pre-release markers: | ||
# X.YaN # Alpha release | ||
# X.YbN # Beta release | ||
# X.YrcN # Release Candidate | ||
# X.Y # Final release | ||
# | ||
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer. | ||
# 'X.Y.dev0' is the canonical version of 'X.Y.dev' | ||
__version__ = "0.7" |
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,91 @@ | ||
[build-system] | ||
requires = ["setuptools>=71"] | ||
|
||
[project] | ||
name = "pypots" | ||
description = "A Python Toolbox for Machine Learning on Partially-Observed Time Series" | ||
authors = [{ name = "Wenjie Du", email = "[email protected]" }] | ||
dynamic = ["version", "readme", "dependencies", "optional-dependencies"] | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Healthcare Industry", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
] | ||
keywords = [ | ||
"data science", | ||
"data mining", | ||
"neural networks", | ||
"machine learning", | ||
"deep learning", | ||
"artificial intelligence", | ||
"time-series analysis", | ||
"time series", | ||
"imputation", | ||
"interpolation", | ||
"classification", | ||
"clustering", | ||
"forecasting", | ||
"partially observed", | ||
"irregular sampled", | ||
"partially-observed time series", | ||
"incomplete time series", | ||
"missing data", | ||
"missing values", | ||
] | ||
|
||
[project.scripts] | ||
pypots-cli = "pypots.cli.pypots_cli:main" | ||
|
||
[project.urls] | ||
Source = "https://github.com/WenjieDu/PyPOTS" | ||
Homepage = "https://pypots.com" | ||
Documentation = "https://docs.pypots.com" | ||
"Bug Tracker" = "https://github.com/WenjieDu/PyPOTS/issues" | ||
Download = "https://github.com/WenjieDu/PyPOTS/archive/main.zip" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"*template", | ||
"*README.md", | ||
"docs*", | ||
"test*", | ||
"requirements*", | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "pypots.version.__version__" } | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
dependencies = { file = "requirements/requirements.txt" } | ||
optional-dependencies.dev = { file = "requirements/requirements_dev.txt" } | ||
|
||
[tool.flake8] | ||
# People may argue that coding style is personal. This may be true if the project is personal and one works like a | ||
# hermit, but to PyPOTS and its community, the answer is NO. | ||
# We use Black and Flake8 to lint code style and keep the style consistent across all commits and pull requests. | ||
# Black only reformats the code, and Flake8 is necessary for checking for some other issues not covered by Black. | ||
|
||
# The Black line length is default as 88, while the default of Flake8 is 79. However, considering our monitors are | ||
# much more advanced nowadays, I extend the maximum line length to 120, like other project e.g. transformers. People | ||
# who prefer the default setting can keep using 88 or 79 while coding. Please ensure your code lines not exceeding 120. | ||
max-line-length = 120 | ||
# why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373 | ||
extend-ignore = """ | ||
E203 | ||
""" | ||
# ignore some errors that are not important in template files | ||
exclude = [ | ||
"*/template" | ||
] |
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
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,14 @@ | ||
h5py | ||
numpy | ||
scipy | ||
sympy | ||
einops | ||
pandas | ||
seaborn | ||
matplotlib | ||
tensorboard | ||
scikit-learn | ||
torch>=1.10.0 | ||
tsdb>=0.6 | ||
pygrinder>=0.6 | ||
benchpots>=0.2 |
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,16 @@ | ||
build | ||
torch-sparse | ||
torch-scatter | ||
torch-geometric | ||
pre-commit | ||
jupyterlab | ||
black | ||
flake8 | ||
flake8-pyproject | ||
pytest-cov | ||
pytest-xdist | ||
furo | ||
sphinx | ||
sphinxcontrib-bibtex | ||
sphinxcontrib-gtagjs | ||
sphinx-autodoc-typehints |
Oops, something went wrong.