-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(entry): Do not modify
PYTHONPATH
externally to run envprobe
- Loading branch information
1 parent
7746d1e
commit d7263f3
Showing
33 changed files
with
237 additions
and
198 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Sphinx==3.4.0 | ||
sphinx_rtd_theme>=0.5.0 | ||
Sphinx==4.2.0 | ||
sphinx_rtd_theme==1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Copyright (C) 2020 Whisperity | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import subprocess | ||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
with open("README.md", encoding="utf-8", errors="ignore") as md: | ||
long_description = md.read() | ||
|
||
try: | ||
commit = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]) | ||
commit = commit.decode().strip() | ||
except subprocess.CalledProcessError: | ||
commit = "0000000" | ||
except OSError: | ||
commit = "0000000" | ||
|
||
try: | ||
version = subprocess.check_output(["git", "describe", "--tags", | ||
"--dirty=\"-dirty\""]) | ||
version = version.decode().strip() | ||
if version[0] == "v": | ||
version = version[1:] | ||
version = version.replace("-dirty", "dev") | ||
version_parts = version.split("-") | ||
if len(version_parts) == 1: | ||
version = version_parts[0] | ||
else: | ||
# Skip the commit count and inject the hash only. | ||
version = version_parts[0] + "+" + version_parts[2] | ||
except subprocess.CalledProcessError: | ||
# No version tag found. | ||
version = "0.0.0+" + commit | ||
except OSError: | ||
version = "0.0.0" | ||
|
||
|
||
setup( | ||
name="envprobe", | ||
description="Overlaying pluggable environment setter: modules reimagined + toggleable direnv on the shell, rather than the directory level.", | ||
version=version, | ||
author="Whisperity", | ||
author_email="[email protected]", | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url="http://github.com/whisperity/envprobe", | ||
license="GPLv3+", | ||
keywords="shell environment environment-variables bash zsh", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Console", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: GNU General Public License v3 or " | ||
"later (GPLv3+)", | ||
"Operating System :: MacOS", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Unix", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development", | ||
"Topic :: System :: Shells" | ||
], | ||
python_requires=">=3.6", | ||
|
||
packages=["envprobe", | ||
"envprobe.commands", | ||
"envprobe.community_descriptions", | ||
"envprobe.settings", | ||
"envprobe.shell", | ||
"envprobe.vartypes" | ||
], | ||
package_dir={ | ||
"envprobe": "src/envprobe" | ||
}, | ||
|
||
entry_points={ | ||
"console_scripts": [ | ||
"envprobe=envprobe.setupped_main:main", | ||
"envprobe-main=envprobe.setupped_main:main_mode", | ||
"envprobe-config=envprobe.setupped_main:config_mode" | ||
] | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.