Skip to content

Switch packaging system from setuptools to UV-compatible hatchling#25

Merged
simone-viozzi merged 4 commits intomainfrom
copilot/fix-24
Jul 31, 2025
Merged

Switch packaging system from setuptools to UV-compatible hatchling#25
simone-viozzi merged 4 commits intomainfrom
copilot/fix-24

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 27, 2025

This PR switches the packaging system from setuptools to hatchling (UV-recommended build backend) and adds installation instructions for UV tool.

Changes Made

Build System Migration

  • pyproject.toml: Changed build-system from setuptools to hatchling
  • Removed setuptools-specific configuration (tool.setuptools.packages.find)
  • Added hatchling configuration (tool.hatch.build.targets.wheel)
  • Fixed readme filename reference (README.mdreadme.md)

Installation Instructions

  • readme.md: Added UV as the recommended installation method
  • Provided clear installation options for both UV and pip users
  • Added development installation instructions with UV support

Development Environment

  • shell.nix: Added UV package and switched from setuptools to hatchling
  • Updated postShellHook to install hatchling instead of setuptools

Verification

  • ✅ All existing tests continue to pass
  • ✅ Package builds successfully with hatchling
  • ✅ CLI tools (gpt-copy, tokens) work correctly
  • ✅ Installation via pip still works
  • ✅ Ready for UV tool installation

Installation Examples

Using UV (Recommended):

uv tool install git+https://github.com/simone-viozzi/gpt-copy.git

Using Pip:

pip install git+https://github.com/simone-viozzi/gpt-copy.git

Fixes #24.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits June 27, 2025 17:53
Co-authored-by: simone-viozzi <19674168+simone-viozzi@users.noreply.github.com>
Co-authored-by: simone-viozzi <19674168+simone-viozzi@users.noreply.github.com>
Copilot AI changed the title [WIP] switch the packaging system to UV Switch packaging system from setuptools to UV-compatible hatchling Jun 27, 2025
Copilot AI requested a review from simone-viozzi June 27, 2025 17:54
@simone-viozzi simone-viozzi marked this pull request as ready for review July 31, 2025 17:18
@simone-viozzi simone-viozzi merged commit e044054 into main Jul 31, 2025
@simone-viozzi simone-viozzi deleted the copilot/fix-24 branch July 31, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

switch the packaging system to UV

2 participants