diff --git a/.github/workflows/release_new_tags.yml b/.github/workflows/release_new_tags.yml index a845cef..d7110c5 100644 --- a/.github/workflows/release_new_tags.yml +++ b/.github/workflows/release_new_tags.yml @@ -12,13 +12,12 @@ jobs: - name: Setup Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install uv uses: astral-sh/setup-uv@v3 - name: Build & Publish run: | uv build - uv publish -u $PYPI_USERNAME -p $PYPI_PASSWORD + uv publish env: - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index a3fd35f..981780a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "d3ploy" -version = "4.4.0" +version = "4.4.1" description = "Easily deploy to S3 with multiple environment support." authors = [ {name = "dryan", email = "dryan@users.noreply.github.com"}, @@ -30,6 +30,9 @@ homepage = "https://github.com/dryan/d3ploy" repository = "https://github.com/dryan/d3ploy" documentation = "https://github.com/dryan/d3ploy#readme" +[project.scripts] +d3ploy = "d3ploy.cli" + [tool.ruff.lint.isort] force-single-line = true diff --git a/setup.py b/setup.py deleted file mode 100644 index 4ff20eb..0000000 --- a/setup.py +++ /dev/null @@ -1,32 +0,0 @@ -import pathlib -import re -from distutils.core import setup - -VERSION_FINDER = re.compile( - r"^VERSION = \"([\d+]\.[\d+].[\d+](-beta[\d+]?)?)\"$", re.MULTILINE -) - -VERSION = VERSION_FINDER.findall(pathlib.Path("d3ploy/d3ploy.py").read_text()) - -if VERSION: - VERSION = VERSION.pop()[0] -else: - raise ValueError("Could not find version number in script file") - -DESCRIPTION = """Full documentation at https://github.com/dryan/d3ploy#readme.""" - -setup( - name="d3ploy", - packages=["d3ploy"], - version=VERSION, - description="Utility for uploading files to S3 with multiple environment support.", - long_description_content_type="text/markdown", - long_description=DESCRIPTION, - author="Dan Ryan", - author_email="opensource@dryan.com", - url="https://github.com/dryan/d3ploy", - download_url="https://github.com/dryan/d3ploy/archive/{}.tar.gz".format(VERSION), - scripts=["bin/d3ploy"], - install_requires=["boto3", "pathspec"], - python_requires=[">=3.9"], -)