Changeset View
Changeset View
Standalone View
Standalone View
setup.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (C) 2015-2020 The Software Heritage developers | # Copyright (C) 2015-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from distutils.cmd import Command | |||||
from distutils.command.build import build | |||||
import glob | import glob | ||||
from io import open | from io import open | ||||
import os | import os | ||||
import shutil | import shutil | ||||
import subprocess | import subprocess | ||||
from setuptools import find_packages, setup | from setuptools import find_packages, setup | ||||
from setuptools.command.develop import develop | from setuptools.command.develop import develop | ||||
from setuptools.command.sdist import sdist | from setuptools.command.sdist import sdist | ||||
from distutils.cmd import Command # isort: skip | |||||
from distutils.command.build import build # isort: skip | |||||
here = os.path.abspath(os.path.dirname(__file__)) | here = os.path.abspath(os.path.dirname(__file__)) | ||||
# Get the long description from the README file | # Get the long description from the README file | ||||
with open(os.path.join(here, "README.md"), encoding="utf-8") as f: | with open(os.path.join(here, "README.md"), encoding="utf-8") as f: | ||||
long_description = f.read() | long_description = f.read() | ||||
def parse_requirements(name=None): | def parse_requirements(name=None): | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |