diff --git a/Pipfile b/Pipfile index e50cf2a..ea5e53c 100644 --- a/Pipfile +++ b/Pipfile @@ -21,6 +21,7 @@ loguru = "*" python-dotenv = "*" requests = "*" tox = "*" +setuptools = "*" [docs] myst-parser = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 8f4f695..f06ee87 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "02854d7c69e759dacd8ae586c76122041ea47e0bbf1c2003f74c3f20e7cb35bc" + "sha256": "9c20aa2bc3d6d426ce872f8e2bce1ba55af0de86cfdd0a88ad4e98cafef28d09" }, "pipfile-spec": 6, "requires": {}, @@ -288,6 +288,15 @@ "markers": "python_version < '3.13' and platform_python_implementation == 'CPython'", "version": "==0.2.8" }, + "setuptools": { + "hashes": [ + "sha256:02fa291a0471b3a18b2b2481ed902af520c69e8ae0919c13da936542754b4c56", + "sha256:5c0806c7d9af348e6dd3777b4f4dbb42c7ad85b190104837488eab9a7c945cf8" + ], + "index": "pypi", + "markers": "python_version >= '3.8'", + "version": "==69.1.1" + }, "tox": { "hashes": [ "sha256:b03754b6ee6dadc70f2611da82b4ed8f625fcafd247e15d1d0cb056f90a06d3b", diff --git a/s.md b/s.md deleted file mode 100644 index 0682a9f..0000000 --- a/s.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -abstract: A security policy, one day. -authors: Xander Harris -date: 2024-03-13 -title: Security Policy ---- - -## Don't do anything stupid diff --git a/setup.py b/setup.py index b8066b2..c6dcd3a 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,17 @@ #!/usr/bin/env python3 """Setup tools configuration.""" +import pathlib import setuptools -with open("README.md", "r", encoding="utf-8") as fh: +def get_version(): + """Get the project's version.""" + vpath = pathlib.Path('version') + with vpath.open('r', encoding='utf-8') as v_fh: + version = v_fh.read() + return version + +with pathlib.Path('readme.md').open("r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( @@ -26,5 +34,5 @@ "Bug Tracker": "https://github.com/edwardtheharris/panegyric/issues", }, url="https://github.com/edwardtheharris/panegyric", - version='v0.1.0', + version=get_version(), ) diff --git a/version b/version new file mode 100644 index 0000000..d917d3e --- /dev/null +++ b/version @@ -0,0 +1 @@ +0.1.2