Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • P Python Package
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ASTRON Templates
  • Python Package
  • Merge requests
  • !11

Integrate setuptools_scm

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Marcel Loose requested to merge setuptools_scm into main Nov 23, 2022
  • Overview 3
  • Commits 4
  • Pipelines 2
  • Changes 10

Integrated automatic version information generation using setuptools_scm in pyproject.toml file.

To check that things work as expected, execute the following commands, while at the root of the current git repository:

# Create and activate virtualenv
python3 -m venv venv
. venv/bin/activate

# Upgrade pip
pip install -U pip

# Install my-awesome-app (the `-e` option is to do a developer install, not strictly necessary but handy):
pip install -e .

# Check it works
python -c 'import my_awesome_app; print(my_awesome_app.__version__)'
Edited Nov 23, 2022 by Marcel Loose
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: setuptools_scm