Skip to content

Conversation

bact
Copy link
Member

@bact bact commented Nov 13, 2024

python setup.py and the use of setup.py as a command line tool are deprecated.

This PR replace python setup.py sdist bdist_wheel with python -m build, as recommended in https://packaging.python.org/en/latest/discussions/setup-py-deprecated/

  • Also remove setuptools and wheel dependencies
  • Also add a wheel build trigger. If want to test the build process, just add "[cd build]" to the commit message

setup.py is now discourage.

Also remove setuptools and wheel dependencies
@bact bact added the infrastructure build process, configuration, GitHub Actions label Nov 13, 2024
@coveralls
Copy link

coveralls commented Nov 13, 2024

Coverage Status

coverage: 52.154% (+0.05%) from 52.102%
when pulling f3190e1 on bact:build-using-cibuildwheel
into 3b26823 on PyThaiNLP:dev.

Copy link

@bact bact changed the title Use "build" instead of setup.py Use "build" instead of setup.py + add "[cd build]" build trigger word Nov 13, 2024
@bact
Copy link
Member Author

bact commented Nov 13, 2024

Will merge. Trigger works.

The failed test is from the time out of ConceptNet connection.

@bact bact merged commit 630b355 into PyThaiNLP:dev Nov 13, 2024
26 of 28 checks passed
@bact bact deleted the build-using-cibuildwheel branch November 13, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure build process, configuration, GitHub Actions
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants