Unverified Commit d00df951 authored by moto's avatar moto Committed by GitHub
Browse files

Do not autoremove prototype in release branch (#3663)

So that release engineering team does not have to manually remove prototype-related things
in each release
parent 7ea108f8
......@@ -63,19 +63,6 @@ class clean(distutils.command.clean.clean):
shutil.rmtree(str(path), ignore_errors=True)
def _get_packages(branch_name, tag):
exclude = []
exclude_prototype = False
if branch_name is not None and branch_name.startswith("release/"):
exclude_prototype = True
if tag is not None and re.match(r"v[\d.]+(-rc\d+)?", tag):
exclude_prototype = True
if exclude_prototype:
print("Excluding torchaudio.prototype from the package.")
exclude.append("torchaudio.prototype*")
return find_packages(where="src", exclude=exclude)
def _parse_url(path):
with open(path, "r") as file_:
for line in file_:
......@@ -140,7 +127,7 @@ def _main():
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
packages=_get_packages(branch, tag),
packages=find_packages(where="src"),
package_dir={"": "src"},
ext_modules=setup_helpers.get_ext_modules(),
cmdclass={
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment