Skip to content

Conversation

@deathaxe
Copy link
Contributor

This commit finishes migration to pyproject driven package creation by replacing deprecated build back-end by standardized, simple and fast flit_core.buildapi.

An alternative build back-end may be hatchling, but it seems way more bloated with unnecessary features.

  • Dynamic Versioning

    A version is added to pyte/init.py

    • as source for dynamic versioning, already specified in pyproject.toml
    • to follow defacto versioning standard used by most python packages.
  • obsolete files, related with setuptools are removed.

  • primary readme is README.rst.

  • .gitignore is updated to automatically exclude various cache files, created by build/linter/... tools.

Creating package still works by just calling uv build with build artefacts being placed to dist/ directory.

This commit finishes migration to pyproject driven package creation by
replacing deprecated build back-end by standardized, simple and fast
`flit_core.buildapi`.

An alternative build back-end may be hatchling, but it seems way more bloated
with unnecessary features.

- Dynamic Versioning

  A __version__ is added to pyte/__init__.py

  - as source for dynamic versioning, already specified in pyproject.toml
  - to follow defacto versioning standard used by most python packages.

- obsolete files, related with setuptools are removed.
- primary readme is README.rst.
- .gitignore is updated to automatically exclude various cache files,
  created by build/linter/... tools.

Creating package still works by just calling `uv build` with build artefacts
being placed to dist/ directory.
@superbobry
Copy link
Collaborator

Nice, thank you!

@superbobry
Copy link
Collaborator

Hmm, the build fails due to README.rst not being present. Do you know what's going on?

@deathaxe
Copy link
Contributor Author

It appears git history still interpreted README.rst as symlink. Removing and re-added it fixed it.

@deathaxe
Copy link
Contributor Author

FWIW, some of the links in README are dead.

@deathaxe deathaxe force-pushed the feat/update-buildsystem branch from 736d9f3 to cde65ee Compare April 25, 2025 17:04
@superbobry
Copy link
Collaborator

some of the links in README are dead.

That's not particularly surprising given the age of the project :)

@superbobry superbobry merged commit 9a03817 into selectel:master Apr 28, 2025
5 checks passed
@deathaxe deathaxe deleted the feat/update-buildsystem branch April 28, 2025 15:55
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.

2 participants