Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Stop including README as top-level data file in package #63

Merged
merged 1 commit into from
May 22, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented May 22, 2023

Including the README.md as a top-level data file is unconventional and can interfere with other packages if they also accidentally include their README.md: installing both packages leads to the second one overwriting the README.md of the first one. (A lot of the casbin python packages interfere with each other like this.)

The contents of the README is available as the package's long description, which is included in its METADATA file.

In addition to that problem, running python setup.py bdist_wheel results in a warning, tangentially referencing this problem:

warning: install_data: setup script did not provide a directory for 'README.md' -- installing right in 'build/bdist.macosx-11.4-arm64/wheel/casbin_sqlalchemy_adapter-0.5.1.data/data'

This fixes (partially) casbin/pycasbin#295, for this repository.

@casbin-bot
Copy link

@Nekotoxin please review

@casbin-bot casbin-bot requested a review from Nekotoxin May 22, 2023 05:05
@CLAassistant
Copy link

CLAassistant commented May 22, 2023

CLA assistant check
All committers have signed the CLA.

@hsluoyz hsluoyz changed the title Stop including README as top-level data file in package fix: Stop including README as top-level data file in package May 22, 2023
@hsluoyz hsluoyz merged commit 206be72 into pycasbin:master May 22, 2023
github-actions bot pushed a commit that referenced this pull request May 22, 2023
## [0.5.2](v0.5.1...v0.5.2) (2023-05-22)

### Bug Fixes

* Stop including README as top-level data file in package ([#63](#63)) ([206be72](206be72))
@github-actions
Copy link

🎉 This PR is included in version 0.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@huonw huonw deleted the bugfix/295-no-readme branch May 22, 2023 08:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants