Skip to content

Make pip editable install's work (avoid multiple .egg_infos) #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
186 changes: 98 additions & 88 deletions cmakelang/pypi/setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import io
from setuptools import setup
import sys

GITHUB_URL = "https://github.com/cheshirekow/cmakelang"

only_cmakelang = len(sys.argv) != 1

VERSION = None
with io.open("cmakelang/__init__.py", encoding="utf-8") as infile:
for line in infile:
Expand All @@ -16,6 +19,7 @@
with io.open("cmakelang/doc/README.rst", encoding="utf-8") as infile:
long_description = infile.read()


setup(
name="cmakelang",
packages=[
Expand Down Expand Up @@ -62,96 +66,102 @@
install_requires=["six>=1.13.0"]
)

setup(
name="cmake-annotate",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "annotate"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=[
"cmakelang>={}".format(VERSION),
"pyyaml>=5.3"]
)

setup(
name="cmake-format",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "format", "formatter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)
if not only_cmakelang:
setup(
name="cmake-annotate",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "annotate"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=[
"cmakelang>={}".format(VERSION),
"pyyaml>=5.3"]
)


setup(
name="cmake-lint",
packages=[],
version=VERSION,
description="Can check your listfiles for common problems",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)
if not only_cmakelang:
setup(
name="cmake-format",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "format", "formatter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)


setup(
name="cmake-parse",
packages=[],
version=VERSION,
description="Python library for parsing cmake listfiles. ",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=["cmakelang>={}".format(VERSION)]
)
if not only_cmakelang:
setup(
name="cmake-lint",
packages=[],
version=VERSION,
description="Can check your listfiles for common problems",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)


if not only_cmakelang:
setup(
name="cmake-parse",
packages=[],
version=VERSION,
description="Python library for parsing cmake listfiles. ",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=["cmakelang>={}".format(VERSION)]
)