Skip to content

Commit 01a1dab

Browse files
authored
Fixed pipgui entrypoint command not working, and cleaned versioning (#19)
* changed author and versioning system * removed versioning re func * fixed pipgui entrypoint not working * __init__ corrected
1 parent 588e0ae commit 01a1dab

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.pyc
2+
venv/
23
env/
34
*.egg-info
45
build/

pipgui/Resource_Files/installedPackageList.json

-1
This file was deleted.

pipgui/Resource_Files/installedPackageList3.json

-1
This file was deleted.

pipgui/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2-
from mainGUI import main
1+
from . import mainGUI

pipgui/mainGUI.py

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
# from Scraping import genreList, packageList
1818

19-
__version__ = "1.1"
20-
2119
VERSION = 0
2220
FILEVERSION = ''
2321
Yes = QtWidgets.QMessageBox.Yes

setup.py

+3-17
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@
1010
here = os.path.abspath(os.path.dirname(__file__))
1111

1212

13-
def find_version(*file_paths):
14-
try:
15-
fh = codecs.open(os.path.join(here, *file_paths), "r", "latin1")
16-
version_file = fh.read()
17-
fh.close()
18-
except FileNotFoundError:
19-
raise RuntimeError("Unable to find version string.")
20-
21-
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
22-
version_file, re.M)
23-
if version_match:
24-
return version_match.group(1)
25-
raise RuntimeError("Unable to find version string.")
26-
27-
2813
try:
2914
fh = codecs.open("README.md", encoding="utf-8")
3015
long_description = fh.read()
@@ -34,10 +19,11 @@ def find_version(*file_paths):
3419

3520
setup(
3621
name="pipgui",
37-
version=find_version("pipgui/mainGUI.py"),
22+
version=1.1,
3823
description="This package is GUI based tool for installing pip packages in your environment.",
3924
url="https://github.com/GDGVIT/pip-gui",
40-
author="Ayush Priya",
25+
author="Ayush Priya, DSC-VIT",
26+
4127
packages=find_packages(include=[
4228
"pipgui",
4329
"pipgui.*"

0 commit comments

Comments
 (0)