Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise packaging #35

Merged
merged 3 commits into from
Jul 25, 2023
Merged

Modernise packaging #35

merged 3 commits into from
Jul 25, 2023

Conversation

hugovk
Copy link
Collaborator

@hugovk hugovk commented Jul 25, 2023

Follow on from #33.

  • Move config to pyproject.toml and remove redundant setup.*
  • List myself as a maintainer
  • Switch from setuptools to hatchling + hatch-vcs to automatically get version from tag, no more hardcoding
  • Add tox for easy testing of multiple Python versions

tox is a handy tool for testing on different Python versions, and takes care of installing dependencies.

tox tips:

# Install or upgrade
python -m pip install -U tox

# Run tests for Python 3.11
tox -e py311

# Run tests for Python 3.8
tox -e py38

# Run linting
tox -e lint

# Run all
tox

# Run all in parallel
tox -p auto

@hugovk hugovk added the enhancement New feature or request label Jul 25, 2023
@marcusvolz marcusvolz merged commit 3bcdb96 into marcusvolz:main Jul 25, 2023
@marcusvolz
Copy link
Owner

Thank you @hugovk - very much appreciated.

@hugovk hugovk deleted the rm-setup branch July 25, 2023 10:28
@hugovk
Copy link
Collaborator Author

hugovk commented Jul 25, 2023

You're welcome! I'll make a new release to include #32.

Later on, I can add some fun automation to make releasing even easier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants