-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move packaging information to
pyproject.toml
(#97)
* build: move packaging metadata to pyproject.toml * chore: update rtd config * feat(ci): add pip caching to CI * build: add build as optional dependencies * feat(ci): bump python version to 3.8 * fix caching * set version dynamically * fix * show installed packages * fix build * check untyped defs by default --------- Co-authored-by: epwalsh <[email protected]>
- Loading branch information
1 parent
e4c6be6
commit add262f
Showing
8 changed files
with
90 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,69 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "my-package" | ||
dynamic = ["version"] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Intended Audience :: Science/Research", | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
] | ||
authors = [ | ||
{name = "Allen Institute for Artificial Intelligence", email = "[email protected]"} | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
# Add your own dependencies here | ||
] | ||
license = {file = "LICENSE"} | ||
|
||
[project.urls] | ||
homepage = "https://github.com/allenai/python-package-template" | ||
repository = "https://github.com/allenai/python-package-template" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"flake8", | ||
"mypy>=1.0,<1.1", | ||
"black>=23.0,<24.0", | ||
"isort>=5.12,<5.13", | ||
"pytest", | ||
"pytest-sphinx", | ||
"pytest-cov", | ||
"twine>=1.11.0", | ||
"build", | ||
"setuptools", | ||
"wheel", | ||
"Sphinx>=4.3.0,<6.2.0", | ||
"furo==2022.12.7", | ||
"myst-parser>=0.15.2,<0.19.0", | ||
"sphinx-copybutton==0.5.1", | ||
"sphinx-autobuild==2021.3.14", | ||
"sphinx-autodoc-typehints", | ||
"packaging" | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"*.tests", | ||
"*.tests.*", | ||
"tests.*", | ||
"tests", | ||
"docs*", | ||
"scripts*" | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
my_package = ["py.typed"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "my_package.VERSION"} | ||
|
||
[tool.black] | ||
line-length = 100 | ||
|
||
|
@@ -23,13 +89,10 @@ multi_line_output = 3 | |
[tool.pyright] | ||
reportPrivateImportUsage = false | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
no_site_packages = true | ||
check_untyped_defs = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = "tests.*" | ||
|
This file was deleted.
Oops, something went wrong.