Skip to content

Commit 056e930

Browse files
authored
migrate away from setup.cfg (#132)
1 parent 0852107 commit 056e930

File tree

7 files changed

+51
-72
lines changed

7 files changed

+51
-72
lines changed

.github/workflows/linux-nightly-install.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- "3.8"
1818
- "3.9"
1919
- "3.10"
20+
- "3.11"
2021
max-parallel: 1
2122

2223
runs-on: ubuntu-latest

.github/workflows/publish.yml

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717

1818
- name: Setup development environment
1919
uses: ./.github/actions/setup-dev-env
20-
with:
21-
python-version: "3.7"
2220

2321
- name: Publish to PyPI
2422
env:

.github/workflows/publishable.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ on:
1919
- "pyproject.toml"
2020
- "README.rst"
2121
- "requirements-dev.txt"
22-
- "setup.cfg"
2322

2423
jobs:
2524
pypi:

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515
- ".coveragerc"
1616
- "codecov.yml"
1717
- "dodo.py"
18+
- "pyproject.toml"
1819
- "pytest.ini"
1920
- "requirements-dev.txt"
20-
- "setup.cfg"
2121

2222
schedule:
2323
- cron: "0 4 * * *"

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
recursive-exclude .github *
2+
recursive-exclude local-project-stubs
23
recursive-exclude scripts *
34
recursive-exclude tests *
45

pyproject.toml

+48-24
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,53 @@ requires = [
66
]
77
build-backend = "setuptools.build_meta"
88

9+
[project]
10+
name = "light_the_torch"
11+
description = "Install PyTorch distributions with computation backend auto-detection"
12+
readme = "README.md"
13+
keywords = [
14+
"pytorch",
15+
"cuda",
16+
"pip",
17+
"install",
18+
]
19+
authors = [
20+
{ name = "Philip Meier", email = "[email protected]" },
21+
]
22+
license = {text = "BSD-3-Clause"}
23+
classifiers = [
24+
"Development Status :: 4 - Beta",
25+
"Environment :: Console",
26+
"Environment :: GPU :: NVIDIA CUDA",
27+
"Intended Audience :: Developers",
28+
"License :: OSI Approved :: BSD License",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Topic :: System :: Installation/Setup",
35+
"Topic :: Utilities",
36+
]
37+
requires-python = ">= 3.7"
38+
dependencies = [
39+
"pip >=22.3, <23.2",
40+
"importlib_metadata ; python_version < '3.8'",
41+
]
42+
dynamic = ["version"]
43+
44+
[project.urls]
45+
Tracker = "https://github.com/pmeier/light-the-torch/issues"
46+
Source = "https://github.com/pmeier/light-the-torch"
47+
48+
[project.scripts]
49+
ltt = "light_the_torch._cli:main"
50+
51+
[tool.setuptools.packages.find]
52+
include = [
53+
"light_the_torch",
54+
]
55+
956
[tool.setuptools_scm]
1057
# See link below for available options
1158
# https://github.com/pypa/setuptools_scm/#configuration-parameters
@@ -14,35 +61,12 @@ write_to = "light_the_torch/_version.py"
1461
version_scheme = "release-branch-semver"
1562
local_scheme = "node-and-timestamp"
1663

17-
[tool.isort]
18-
# See link below for available options
19-
# https://github.com/timothycrosley/isort/wiki/isort-Settings#full-reference-of-isort-settings
20-
21-
skip = [
22-
".git",
23-
".venv",
24-
".eggs",
25-
".mypy_cache",
26-
".pytest_cache",
27-
".tox",
28-
"__pycache__",
29-
"light_the_torch/__init__.py",
30-
]
31-
line_length = 88
32-
use_parentheses = true
33-
multi_line_output = 3
34-
force_grid_wrap = 0
35-
include_trailing_comma = true
36-
37-
known_third_party = ["pytest", "setuptools_scm", "toml"]
38-
known_first_party = ["light_the_torch"]
39-
4064
[tool.black]
4165
# See link below for available options
4266
# https://github.com/psf/black#configuration-format
4367

4468
line-length = 88
45-
target-version = ['py36', 'py37', 'py38']
69+
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
4670
exclude = '''
4771
/(
4872
\.git

setup.cfg

-44
This file was deleted.

0 commit comments

Comments
 (0)