diff --git a/.github/workflows/py3-test.yaml b/.github/workflows/py3-test.yaml index d348e1742..27da00baf 100644 --- a/.github/workflows/py3-test.yaml +++ b/.github/workflows/py3-test.yaml @@ -7,7 +7,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run tox uses: ./.github/actions/py3-tox with: @@ -18,7 +20,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run tox uses: ./.github/actions/py3-tox with: @@ -34,7 +38,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run tox uses: ./.github/actions/py3-tox with: @@ -45,7 +51,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Install python 3.12 uses: actions/setup-python@v5 id: pyinst @@ -64,7 +72,9 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run tox uses: ./.github/actions/py3-tox with: diff --git a/.gitignore b/.gitignore index 628778268..6ad494a9a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ **.pyc **.orig **.rej +PKG-INFO dist build/bdist tools/cpep8.venv/ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..71dcd957b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +requires = ["setuptools", "versioningit"] +build-backend = "setuptools.build_meta" + +[project] +name = "chirp" +dynamic = ["version"] +description = "A cross-platform cross-radio programming tool" +requires-python = ">=3.10,<4" +dependencies = [ + "pyserial", + "requests", + "yattag", + "suds" +] + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +include = ["chirp*"] + +[project.urls] +homepage = "https://chirp.danplanet.com" +repository = "https://github.com/kk7ds/chirp" + +[project.optional-dependencies] +wx = ["wxPython"] + +[project.scripts] +chirp = "chirp.wxui:chirpmain" +chirpc = "chirp.cli.main:main" +experttune = "chirp.cli.experttune:main" + +[tool.versioningit.tag2version] +rmprefix = "release_" + +[tool.versioningit.format] +distance = "{committer_date:%Y%m%d}+{distance}.{vcs}{revision}" +dirty = "{committer_date:%Y%m%d}+{distance}.{vcs}{revision}.d{build_date:%Y%m%d}" +distance-dirty = "{committer_date:%Y%m%d}+{distance}.{vcs}{revision}.d{build_date:%Y%m%d}" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ba216f19e..000000000 --- a/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[bdist_rpm] -requires = pyserial -packager = Dan Smith -description = A frequency tool for Icom D-STAR Repeaters -vendor = KK7DS diff --git a/setup.py b/setup.py deleted file mode 100644 index 0e00f7b05..000000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -from distutils.core import setup -from setuptools import find_packages - -setup(name='chirp', - description='A cross-platform cross-radio programming tool', - packages=find_packages(include=["chirp*"]), - include_package_data=True, - version=0, - url='https://chirp.danplanet.com', - python_requires=">=3.10,<4", - install_requires=[ - 'pyserial', - 'requests', - 'yattag', - 'suds', - ], - extras_require={ - 'wx': ['wxPython'], - }, - entry_points={ - 'console_scripts': [ - "chirp=chirp.wxui:chirpmain", - "chirpc=chirp.cli.main:main", - "experttune=chirp.cli.experttune:main", - ], - }, - )