2

I have a typical project structure that looks like this:

/project/ 
  README.md
  CONTRIBUTING.md
  LICENSE
  setup.py
  requirements.txt
  project/
    some_project_file
  docs/
    some_docs_file
  tests/
    some_tests_file

When running python setup.py sdist bdisst_wheel, the resulting distribution in the created 'dist' folder contains everything but the 'CONTRIBUTING', 'LICENSE', and 'requirements.txt' files. Is it possible to have these files from my root directory included in the built distribution?

jaib1
  • 327
  • 2
  • 12
  • 1
    Possible duplicate of [How to include package data with setuptools/distribute?](https://stackoverflow.com/questions/7522250/how-to-include-package-data-with-setuptools-distribute) – phd Aug 20 '19 at 20:54
  • https://stackoverflow.com/search?q=%5Bsetuptools%5D+include+data+files – phd Aug 20 '19 at 20:54

1 Answers1

2

Create a MANIFEST.in file with the content like:

include LICENSE
include CONTRIBUTING.md
include requirements.txt
ipaleka
  • 3,745
  • 2
  • 13
  • 33