diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 6c784fc..57c1a5e 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -11,7 +11,7 @@ on: jobs: ci: - uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2025 + uses: robotpy/build-actions/.github/workflows/package-pure.yml@v2026 with: enable_sphinx_check: false secrets: @@ -27,7 +27,7 @@ jobs: python-version: "3.13" - name: Install requirements run: | - pip --disable-pip-version-check install mypy setuptools wheel setuptools_scm + pip --disable-pip-version-check install mypy hatchling hatch-vcs editables pip --disable-pip-version-check install --no-build-isolation -e . - name: Run mypy uses: liskin/gh-problem-matcher-wrap@v2 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..375a8f6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[project] +name = "robotpy-commands-v2" +dynamic = ["version"] +description = "WPILib command framework v2" +readme = "README.md" +requires-python = ">=3.10" +license = "BSD-3-Clause" +license-files = ["LICENSE"] +dependencies = [ + "wpilib<2027,>=2026.1.1b1", + "typing_extensions>=4.1.0,<5", +] + +[[project.authors]] +name = "RobotPy Development Team" +email = "robotpy@googlegroups.com" + +[[project.maintainers]] +name = "RobotPy Development Team" +email = "robotpy@googlegroups.com" + +[project.urls] +"Source code" = "https://github.com/robotpy/robotpy-commands-v2" + +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.targets.sdist] +packages = ["commands2"] + +[tool.hatch.build.targets.wheel] +packages = ["commands2"] \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index c8b5e01..0000000 --- a/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 - -import setuptools - -setuptools.setup( - name="robotpy-commands-v2", - use_scm_version=True, - setup_requires=["setuptools_scm"], - author="RobotPy Development Team", - author_email="robotpy@googlegroups.com", - description="WPILib command framework v2", - url="https://github.com/robotpy/robotpy-commands-v2", - package_data={"commands2": ["py.typed"]}, - packages=["commands2"], - install_requires=[ - "wpilib<2026,>=2025.1.1", - "typing_extensions>=4.1.0,<5", - ], - license="BSD-3-Clause", - python_requires=">=3.9", - include_package_data=True, -)