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

enhancement: Including files in source distributions with MANIFEST.in #156

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

hswong3i
Copy link
Contributor

When packaging as .deb/.rpm with setuptools (sometime without setuptools_scm), some required template files are excluded from the final packaging result, unless specify them within MANIFEST.in.

See https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
See https://packaging.python.org/en/latest/guides/using-manifest-in

hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.0.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.0.0-1.spec
    mv ../python*-molecule-plugins*23.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.0.0
    rm -rf ../python*-molecule-plugins*23.0.0*.*

See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.0-1.spec
    mv ../python*-molecule-plugins*23.4.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.0
    rm -rf ../python*-molecule-plugins*23.4.0*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.1-1.spec
    mv ../python*-molecule-plugins*23.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.1
    rm -rf ../python*-molecule-plugins*23.4.1*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.0-1.spec
    mv ../python*-molecule-plugins*23.4.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.0
    rm -rf ../python*-molecule-plugins*23.4.0*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.1-1.spec
    mv ../python*-molecule-plugins*23.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.1
    rm -rf ../python*-molecule-plugins*23.4.1*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@hswong3i hswong3i changed the title [PATCH] Including files in source distributions with MANIFEST.in enhancement: Including files in source distributions with MANIFEST.in May 18, 2023
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.0.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.0-1.spec
    mv ../python*-molecule-plugins*23.4.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.0
    rm -rf ../python*-molecule-plugins*23.4.0*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to alvistack/ansible-community-molecule-plugins that referenced this pull request May 18, 2023
    git clean -xdf
    tar zcvf ../python-molecule-plugins_23.4.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp python-molecule-plugins.spec ../python-molecule-plugins_23.4.1-1.spec
    mv ../python*-molecule-plugins*23.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-plugins-23.4.1
    rm -rf ../python*-molecule-plugins*23.4.1*.*

See ansible-community#142
See ansible-community#155
See ansible-community#156

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@apatard apatard added the enhancement New feature or request label May 31, 2023
@apatard
Copy link
Member

apatard commented May 31, 2023

Can you rebase your PR please ?

When packaging as .deb/.rpm with setuptools (sometime without
setuptools_scm), some required template files are excluded from the
final packaging result, unless specify them within `MANIFEST.in`.

See https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
See https://packaging.python.org/en/latest/guides/using-manifest-in

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@hswong3i
Copy link
Contributor Author

hswong3i commented Jun 6, 2023

Can you rebase your PR please ?

Done ;-)

@apatard
Copy link
Member

apatard commented Jun 6, 2023

Can you rebase your PR please ?

Done ;-)

Thanks. Merging now.

@apatard apatard merged commit 0de8ad0 into ansible-community:main Jun 6, 2023
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