lib3to6 no longer required

This commit is contained in:
Manuel Barkhau 2018-11-15 22:20:42 +01:00
parent 54a681bf34
commit 080dce8f91

View file

@ -5,7 +5,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
import os import os
import sys
import setuptools import setuptools
@ -25,12 +24,6 @@ install_requires = [
if line.strip() and not line.startswith("#") if line.strip() and not line.startswith("#")
] ]
package_dir = {"": "src"}
if any(arg.startswith("bdist") for arg in sys.argv):
import lib3to6
package_dir = lib3to6.fix(package_dir)
long_description = "\n\n".join((read("README.md"), read("CONTRIBUTING.md"), read("CHANGELOG.md"))) long_description = "\n\n".join((read("README.md"), read("CONTRIBUTING.md"), read("CHANGELOG.md")))
@ -48,9 +41,8 @@ setuptools.setup(
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
packages=["pycalver"], packages=["pycalver"],
package_dir=package_dir, package_dir={"": "src"},
install_requires=install_requires, install_requires=install_requires,
setup_requires=["lib3to6"],
entry_points=""" entry_points="""
[console_scripts] [console_scripts]
pycalver=pycalver.__main__:cli pycalver=pycalver.__main__:cli