Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/pypi-publish.yml

This file was deleted.

25 changes: 0 additions & 25 deletions backend/CHANGELOG.rst

This file was deleted.

3 changes: 1 addition & 2 deletions backend/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include CHANGELOG.rst
include LICENSE.txt
include README.rst
include README.md
include requirements/base.in
include requirements/constraints.txt
recursive-include sample_plugin *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg
145 changes: 0 additions & 145 deletions backend/README.rst

This file was deleted.

1 change: 0 additions & 1 deletion backend/docs/changelog.rst

This file was deleted.

2 changes: 0 additions & 2 deletions backend/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ Contents:
.. toctree::
:maxdepth: 2

readme
getting_started
quickstarts/index
concepts/index
how-tos/index
testing
internationalization
modules
changelog
decisions
references/index

Expand Down
1 change: 0 additions & 1 deletion backend/docs/readme.rst

This file was deleted.

14 changes: 12 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,25 @@ Homepage = "https://openedx.org/openedx/sample-plugin"
Repository = "https://openedx.org/openedx/sample-plugin"

[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGELOG.rst"]}
readme = {file = ["README.md"], content-type = "text/markdown" }
dependencies = {file = "requirements/base.in"}

[tool.setuptools.packages.find]
include = ["sample_plugin*"]
exclude = ["sample_plugin.tests*"]

[tool.semantic_release]
build_command = "pip install build && python -m build"
# We use SETUPTOOLS_SCM_PRETEND_VERSION to pull the version from python-semantic-release instead
# of actually pulling it from version control because the build step happens before the repo gets
# tagged. Setuptools by default doesn't have any way of overriding the version number at build
# time without a setup.py file. This is a fine alternative that reduces the amount of boilerplate
# code and files we need in this repo.
build_command = "pip install build && SETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSION python -m build"

[tool.semantic_release.commit_parser_options]
# Because this repo is meant to be an example, docs changes are relevant
# feature changes and so should produces new releases.
minor_tags = ["feat", "docs"]

[tool.setuptools_scm]
# The root for the gith repo is one directory up.
Expand Down
2 changes: 1 addition & 1 deletion backend/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ allowlist_externals =
deps =
-r{toxinidir}/requirements/doc.txt
commands =
doc8 --ignore-path docs/_build README.rst docs
doc8 --ignore-path docs/_build docs
rm -f docs/sample_plugin.rst
rm -f docs/modules.rst
make -e -C docs clean
Expand Down