Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pyddg pyddg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pyddg
  • pyddgpyddg
  • Merge requests
  • !300

Clean up setuptools based build

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Le Nam Do requested to merge setuptools-PEP-517 into develop Sep 22, 2021
  • Overview 13
  • Commits 14
  • Pipelines 6
  • Changes 4

This MR done by @tyburn and myself adopts PEP 517, which standardises how Python tooling is configured. Eventually, the goal is to specify everything tooling related in pyproject.toml, i.e.

  • the build (currently setuptools)
  • test tools (in our case pytest)
  • linters,
  • code formatters,
  • ...

We hope that setup.py and setup.cfg can be merged into pyproject.toml in the future.

Some dependencies and code that is no longer used were removed.

Installation of the library can now be achieved by

pip install path-to-library # installs only the library
pip install path-to-library[tests] # installs the library and test dependencies
pip install path-to-library[tests,docs,coverage] # installs the library and all developer dependencies

The arguments in the square brackets are specified in setup.cfg under [options.extras_require].

Edited Oct 28, 2021 by Le Nam Do
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: setuptools-PEP-517