forked from radik/pbs-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update package setup to use toml only
- Loading branch information
1 parent
141bf9c
commit 403f6ad
Showing
5 changed files
with
90 additions
and
107 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,15 @@ | ||
# LICENSE | ||
|
||
Copyright 2024 Exabyte Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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,10 +1,79 @@ | ||
[project] | ||
name = "pbs-python" | ||
dynamic = ["version"] | ||
description = "Utils." | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE.md"} | ||
authors = [ | ||
{name = "Exabyte Inc.", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Development Status :: 3 - Alpha", | ||
"Topic :: Software Development", | ||
] | ||
dependencies = [ | ||
# add requirements here | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"coverage[toml]>=5.3", | ||
"pre-commit", | ||
"black", | ||
"ruff", | ||
"isort", | ||
"mypy", | ||
"pip-tools", | ||
# Testing | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mock", | ||
] | ||
all = ["pbs-python[tests]"] | ||
|
||
# Entrypoint scripts can be defined here, see examples below. | ||
[project.scripts] | ||
# my-script = "my_package.my_module:my_function" | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
build-backend = "setuptools.build_meta:__legacy__" | ||
requires = [ | ||
"setuptools>=42", | ||
"setuptools-scm[toml]>=3.4" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
git_describe_command = "git describe --tags --long" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py38'] | ||
# 'extend-exclude' excludes files or directories in addition to the defaults | ||
extend-exclude = ''' | ||
( | ||
examples\/.*\/.*\.py | ||
| other\/.*\/.*\.(py|ipynb) | ||
) | ||
''' | ||
|
||
[tool.ruff] | ||
# Exclude a variety of commonly ignored directories. | ||
extend-exclude = [ | ||
# "src/js" | ||
] | ||
line-length = 120 | ||
target-version = "py38" | ||
|
||
[tool.ruff.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
|
||
[tool.coverage.run] | ||
source = ['.'] | ||
omit = ['env*/*', 'venv*/*', 'tests/*', 'pbs/PBSQuery.py'] | ||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
include_trailing_comma = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.