diff --git a/VERSION b/VERSION deleted file mode 100644 index 300683f..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -VERSION = 1.9.1 \ No newline at end of file diff --git a/setup.py b/setup.py index b188a1d..bc5fc39 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ import setuptools, logging from pathlib import Path -from os import environ, path -from dotenv import load_dotenv # Configure the logger logger_name = "webqueueapi_install_log" @@ -23,30 +21,16 @@ logger.addHandler(stream_handler) # Configure out to logfile, located in '/tmp/webqueueapi install log.log' -log_file_path = path.abspath("/tmp/" + logger_name + '.log') +log_file_path = Path(f"/tmp/{logger_name}.log") file_handler = logging.FileHandler(log_file_path) file_handler.setFormatter(log_formatter) logger.addHandler(file_handler) -# Define and load the package version file -current_dir = Path(__file__).parent -version_file_path = Path(current_dir, "VERSION") -load_dotenv(version_file_path) - -# Get the version from the package version file -VERSION = environ.get("VERSION") - -if (VERSION == None or VERSION == ""): - logger.error("VERSION has no value: exiting") - exit() - -python_ldap_version = "3.3.1" - -logger.debug("Attempting to install webqueue-api package") +logger.debug("Attempting to install webqueue2-api package") setuptools.setup( - name="webqueue-api", - version=VERSION, + name="webqueue2-api", + version="0.9.1", description="A library for managing Purdue ECN's queue system.", py_modules=['api', 'ECNQueue'], python_requires='>=3.6', @@ -73,4 +57,4 @@ ] ) -logger.info("webqueue-api package installed sucessfully") \ No newline at end of file +logger.info("webqueue2-api package installed sucessfully") \ No newline at end of file