Skip to content

Commit

Permalink
Fixed pipgui entrypoint command not working, and cleaned versioning (#19
Browse files Browse the repository at this point in the history
)

* changed author and versioning system

* removed versioning re func

* fixed pipgui entrypoint not working

* __init__ corrected
  • Loading branch information
L04DB4L4NC3R authored Jan 22, 2020
1 parent 588e0ae commit 01a1dab
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.pyc
venv/
env/
*.egg-info
build/
Expand Down
1 change: 0 additions & 1 deletion pipgui/Resource_Files/installedPackageList.json

This file was deleted.

1 change: 0 additions & 1 deletion pipgui/Resource_Files/installedPackageList3.json

This file was deleted.

3 changes: 1 addition & 2 deletions pipgui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

from mainGUI import main
from . import mainGUI
2 changes: 0 additions & 2 deletions pipgui/mainGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

# from Scraping import genreList, packageList

__version__ = "1.1"

VERSION = 0
FILEVERSION = ''
Yes = QtWidgets.QMessageBox.Yes
Expand Down
20 changes: 3 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@
here = os.path.abspath(os.path.dirname(__file__))


def find_version(*file_paths):
try:
fh = codecs.open(os.path.join(here, *file_paths), "r", "latin1")
version_file = fh.read()
fh.close()
except FileNotFoundError:
raise RuntimeError("Unable to find version string.")

version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")


try:
fh = codecs.open("README.md", encoding="utf-8")
long_description = fh.read()
Expand All @@ -34,10 +19,11 @@ def find_version(*file_paths):

setup(
name="pipgui",
version=find_version("pipgui/mainGUI.py"),
version=1.1,
description="This package is GUI based tool for installing pip packages in your environment.",
url="https://github.com/GDGVIT/pip-gui",
author="Ayush Priya",
author="Ayush Priya, DSC-VIT",
author_email="[email protected], [email protected]",
packages=find_packages(include=[
"pipgui",
"pipgui.*"
Expand Down

0 comments on commit 01a1dab

Please sign in to comment.