From be9b87daf07ebc41872bd000d0793212517e9eac Mon Sep 17 00:00:00 2001 From: haileyajohnson Date: Tue, 2 Dec 2025 15:03:49 -0800 Subject: [PATCH] hard code version --- cdippy/utils/urls.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cdippy/utils/urls.py b/cdippy/utils/urls.py index 123326e..bd3ba7f 100644 --- a/cdippy/utils/urls.py +++ b/cdippy/utils/urls.py @@ -1,14 +1,15 @@ """Methods for working with urllib scraping web pages""" import logging -import tomllib + +# import tomllib from urllib import request, error import xml.etree.ElementTree as ET -with open("pyproject.toml", "rb") as f: - pyproject = tomllib.load(f) +# with open("pyproject.toml", "rb") as f: +# pyproject = tomllib.load(f) -version = pyproject["project"]["version"] +version = "0.1.0" # pyproject["project"]["version"] cdippy_lib = f"CDIPpy/{version}" _headers = {"User-Agent": cdippy_lib}