migrate away from setup.cfg (#132)

This commit is contained in:
Philip Meier
2023-04-24 10:52:08 +02:00
committed by GitHub
parent 0852107dac
commit 056e930ec7
7 changed files with 51 additions and 72 deletions

View File

@@ -17,6 +17,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
max-parallel: 1
runs-on: ubuntu-latest

View File

@@ -17,8 +17,6 @@ jobs:
- name: Setup development environment
uses: ./.github/actions/setup-dev-env
with:
python-version: "3.7"
- name: Publish to PyPI
env:

View File

@@ -19,7 +19,6 @@ on:
- "pyproject.toml"
- "README.rst"
- "requirements-dev.txt"
- "setup.cfg"
jobs:
pypi:

View File

@@ -15,9 +15,9 @@ on:
- ".coveragerc"
- "codecov.yml"
- "dodo.py"
- "pyproject.toml"
- "pytest.ini"
- "requirements-dev.txt"
- "setup.cfg"
schedule:
- cron: "0 4 * * *"

View File

@@ -1,4 +1,5 @@
recursive-exclude .github *
recursive-exclude local-project-stubs
recursive-exclude scripts *
recursive-exclude tests *

View File

@@ -6,6 +6,53 @@ requires = [
]
build-backend = "setuptools.build_meta"
[project]
name = "light_the_torch"
description = "Install PyTorch distributions with computation backend auto-detection"
readme = "README.md"
keywords = [
"pytorch",
"cuda",
"pip",
"install",
]
authors = [
{ name = "Philip Meier", email = "github.pmeier@posteo.de" },
]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Installation/Setup",
"Topic :: Utilities",
]
requires-python = ">= 3.7"
dependencies = [
"pip >=22.3, <23.2",
"importlib_metadata ; python_version < '3.8'",
]
dynamic = ["version"]
[project.urls]
Tracker = "https://github.com/pmeier/light-the-torch/issues"
Source = "https://github.com/pmeier/light-the-torch"
[project.scripts]
ltt = "light_the_torch._cli:main"
[tool.setuptools.packages.find]
include = [
"light_the_torch",
]
[tool.setuptools_scm]
# See link below for available options
# https://github.com/pypa/setuptools_scm/#configuration-parameters
@@ -14,35 +61,12 @@ write_to = "light_the_torch/_version.py"
version_scheme = "release-branch-semver"
local_scheme = "node-and-timestamp"
[tool.isort]
# See link below for available options
# https://github.com/timothycrosley/isort/wiki/isort-Settings#full-reference-of-isort-settings
skip = [
".git",
".venv",
".eggs",
".mypy_cache",
".pytest_cache",
".tox",
"__pycache__",
"light_the_torch/__init__.py",
]
line_length = 88
use_parentheses = true
multi_line_output = 3
force_grid_wrap = 0
include_trailing_comma = true
known_third_party = ["pytest", "setuptools_scm", "toml"]
known_first_party = ["light_the_torch"]
[tool.black]
# See link below for available options
# https://github.com/psf/black#configuration-format
line-length = 88
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
exclude = '''
/(
\.git

View File

@@ -1,44 +0,0 @@
[metadata]
name = light_the_torch
platforms = any
description = Install PyTorch distributions with computation backend auto-detection
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
keywords = pytorch, cuda, pip, install
url = https://github.com/pmeier/light-the-torch
author = Philip Meier
author_email = github.pmeier@posteo.de
license = BSD-3-Clause
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Environment :: GPU :: NVIDIA CUDA
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: System :: Installation/Setup
Topic :: Utilities
project_urls =
Source = https://github.com/pmeier/light-the-torch
Tracker = https://github.com/pmeier/light-the-torch/issues
[options]
packages = find:
include_package_data = True
python_requires = >=3.7
install_requires =
pip >=22.3, <23.2
importlib_metadata ; python_version < '3.8'
[options.packages.find]
exclude =
.github*
scripts*
tests*
[options.entry_points]
console_scripts =
ltt=light_the_torch._cli:main