Skip to content

Commit

Permalink
Exclude GitHub README.md from final package
Browse files Browse the repository at this point in the history
  • Loading branch information
timobrembeck committed Dec 8, 2021
1 parent c7d6073 commit a67dcc3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ jobs:
- run:
name: Fix dependency versions
command: ./dev-tools/fix_dependencies.sh
- run:
name: Use alternative README.md file
command: mv integreat_cms/README.md .
- run:
name: Build integreat-cms package
command: python setup.py sdist bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ project_urls =
Issues=https://github.com/Integreat/integreat-cms/issues
Source Code=https://github.com/Integreat/integreat-cms
Release Notes=https://integreat.github.io/integreat-cms/changelog.html
long_description = file: integreat_cms/README.md
long_description = file: README.md
long_description_content_type = text/markdown
license = Apache License 2.0
license_file = LICENSE.txt
Expand Down
6 changes: 5 additions & 1 deletion sphinx/packaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ Packaging for a Python repository like e.g. `PyPI <https://pypi.org/>`__ is auto

./dev-tools/fix_dependencies.sh

3. After that, you can build the python package with :doc:`setuptools:index`::
3. Move the README to make sure to include the PyPI-README instead of the GitHub-README::

mv integreat_cms/README.md .

4. After that, you can build the python package with :doc:`setuptools:index`::

pip3 install --upgrade pip setuptools wheel
python3 setup.py sdist bdist_wheel
Expand Down

0 comments on commit a67dcc3

Please sign in to comment.