Skip to content

Commit 8c5ba27

Browse files
committed
Make sdist via pypa/build (uses meson now)
1 parent 5ce5eca commit 8c5ba27

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# define files/directories that won't be exported in an sdist
2+
# Keep in sync with MANIFEST.in
3+
.circleci/ export-ignore
4+
.github/ export-ignore
5+
buildconfig/ci/ export-ignore
6+
buildconfig/macdependencies/ export-ignore
7+
buildconfig/manylinux-build/ export-ignore
8+
9+
.editorconfig export-ignore
10+
.gitattributes export-ignore
11+
.gitignore export-ignore
12+
.pre-commit-config.yaml export-ignore

.github/workflows/build-ubuntu-sdist.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ jobs:
6060
# https://github.com/orgs/community/discussions/47863
6161
run: |
6262
sudo apt-get update --fix-missing
63-
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-setuptools python3-dev
63+
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libfreetype6-dev libportmidi-dev python3-dev
6464
pip3 install --upgrade pip
65-
pip3 install sphinx"<7.2.0" numpy>=1.21.0
65+
pip3 install build numpy>=1.21.0
6666
6767
- name: Make sdist and install it
6868
run: |
69-
python3 buildconfig/make_docs.py
70-
python3 setup.py sdist
71-
pip3 install dist/pygame-*.tar.gz -vv
69+
python3 -m build --sdist --outdir dist .
70+
pip3 install dist/pygame_ce-*.tar.gz -vv
7271
7372
- name: Run tests
7473
env:

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ def initialize_options(self):
717717
# we do not want MANIFEST.in to appear in the root cluttering up things.
718718
self.template = os.path.join('buildconfig', 'MANIFEST.in')
719719

720+
print("WARNING: This command is deprecated and will be removed in the future.")
721+
print("Use the alternative: `python3 -m build --sdist --outdir dist .`")
722+
720723

721724
if "bdist_msi" in sys.argv:
722725
# if you are making an msi, we want it to overwrite files

0 commit comments

Comments
 (0)