Browse Source

Fix version derivation in renamed branch (fix #786)

pull/10109/head
dolfies 3 months ago
parent
commit
c6e34688eb
  1. 2
      .github/workflows/rename.yml

2
.github/workflows/rename.yml

@ -30,7 +30,7 @@ jobs:
mv discord selfcord mv discord selfcord
sed -i -e 's/import discord/import selfcord/g' -e '/from discord_protos/!{s/from discord/from selfcord/g}' -e '/from discord_protos/!{s/from discord/from selfcord/g}' -e 's/discord\.py-self/selfcord\.py/g' -e '/\(discord\.com\|discord\.gg\|discord\.new\)/! s/discord\./selfcord\./g' $(find selfcord examples -name "*.py") sed -i -e 's/import discord/import selfcord/g' -e '/from discord_protos/!{s/from discord/from selfcord/g}' -e '/from discord_protos/!{s/from discord/from selfcord/g}' -e 's/discord\.py-self/selfcord\.py/g' -e '/\(discord\.com\|discord\.gg\|discord\.new\)/! s/discord\./selfcord\./g' $(find selfcord examples -name "*.py")
sed -i -e 's/discord/selfcord/g' MANIFEST.in sed -i -e 's/discord/selfcord/g' MANIFEST.in setup.py
sed -i -E 's/^name = "discord\.py-self"/name = "selfcord.py"/; /http/!s/\bdiscord\b/selfcord/g' pyproject.toml sed -i -E 's/^name = "discord\.py-self"/name = "selfcord.py"/; /http/!s/\bdiscord\b/selfcord/g' pyproject.toml
- name: Push changes - name: Push changes

Loading…
Cancel
Save