-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Niko Pasanen
committed
Dec 20, 2020
1 parent
0220d57
commit 417501d
Showing
3 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,30 +1,34 @@ | ||
import setuptools | ||
import re | ||
|
||
|
||
def find_version(): | ||
verstrline = open("venvlink/__version__.py", "rt").read() | ||
try: | ||
return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M).group(1) | ||
try: | ||
return re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M).group( | ||
1 | ||
) | ||
except: | ||
raise RuntimeError("Could not find version string") | ||
|
||
with open('README.md', encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
with open("README.md", encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
setuptools.setup( | ||
name='venvlink', | ||
description='Virtual environments centralized with activate proxy in your working dir.', | ||
name="venvlink", | ||
description="""Creating the virtual environment outside of the project folder, still retaining the feel of good ol' "python -m venv venv".""", | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
license='MIT', | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
version=find_version(), | ||
author='Niko Pasanen', | ||
author_email='[email protected]', | ||
url = "https://github.com/np-8/venvlink", | ||
author="Niko Pasanen", | ||
author_email="[email protected]", | ||
url="https://github.com/np-8/venvlink", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Topic :: Utilities', | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Topic :: Utilities", | ||
], | ||
) |
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 +1 @@ | ||
__version__ = "0.3.1" | ||
__version__ = "0.4.0" |