libgit2 / libgit2/pygit2

[packaging] Implement SCM-based versioning via `setuptools-scm`

Open
#870 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

packaging
Dominant language
Python
Stars
1.7k
Forks
408
Avg merge
2d 57m
Merged PRs (30d)
7

Description

Hi, have you considered using setuptools-scm plugin?

It'd automagically replace git ls-files logic in setup.py and it can also add a single source of truth for storing dist version.
With it, you'd use Git tags and wouldn't have to manually hardcode the version in two places https://github.com/libgit2/pygit2/blob/master/pygit2/_build.py#L40 / https://github.com/libgit2/pygit2/blob/master/.travis.sh#L5.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading setup.py, pygit2/_build.py, and .travis.sh, then compare the current git ls-files and version handling with setuptools-scm's documented integration. Done means the packaging workflow uses Git-based versioning without duplicated hardcoded versions and continues to produce the expected distribution contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
build-system, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.