Skip to content

Commit

Permalink
fixed metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
benne238 committed Mar 12, 2021
1 parent e1efa93 commit bb81c11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

26 changes: 5 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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',
Expand All @@ -73,4 +57,4 @@
]
)

logger.info("webqueue-api package installed sucessfully")
logger.info("webqueue2-api package installed sucessfully")

0 comments on commit bb81c11

Please sign in to comment.