Skip to content

Commit

Permalink
chore: update package setup to use toml only
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Oct 30, 2024
1 parent 141bf9c commit 403f6ad
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 107 deletions.
15 changes: 15 additions & 0 deletions LICENSE.md
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.
81 changes: 75 additions & 6 deletions pyproject.toml
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
3 changes: 0 additions & 3 deletions requirements-dev.txt

This file was deleted.

49 changes: 0 additions & 49 deletions run-tests.sh

This file was deleted.

49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

0 comments on commit 403f6ad

Please sign in to comment.