From 04eb438272140e432cc841804aaf3b7f25a08776 Mon Sep 17 00:00:00 2001 From: ccp_zeulix Date: Fri, 5 Apr 2024 11:27:06 +0000 Subject: [PATCH] Version 1.0.0 - Ready for the Wild - Smooshed `datetimeutils` and `typeutils` into a new package called `ccptools` --- .github/workflows/publish-to-pypi.yml | 2 ++ CHANGELOG.md | 13 +++++++ pyproject.toml | 49 +++++++++++++++++++++++++++ setup.py | 32 ++--------------- 4 files changed, 66 insertions(+), 30 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 pyproject.toml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index dca5b4b..c6ddb50 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -11,6 +11,8 @@ jobs: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 + with: + python-version: '3.8' - name: Install dependencies run: | python --version diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b30c19a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + +## [1.0.0] - 2024-04-05 + +### Added + +- This entire Project \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..295231e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,49 @@ +[build-system] +requires = [ "setuptools>=42", "wheel" ] +build-backend = "setuptools.build_meta" + +[project] +name = "ccptools" +dynamic = ["version"] +description = "The CCP Tools team utilities for date and/or time objects and values and messing with types." +readme = { file = "README.md", content-type = "text/markdown" } +license = { file = "LICENSE" } +authors = [ + { name = "Thordur Matthiasson", email = "thordurm@ccpgames.com" }, + { name = "John Aldis", email = "johnaldis@ccpgames.com" } +] +keywords = [ "datetimeutils", "datetime", "typeutils", "type", "singleton", "date", "time", "timespan", "tools", "ccp", "utils" ] +classifiers = [ + "Development Status :: 5 - Production/Stable", + + "License :: OSI Approved :: MIT License", + + "Intended Audience :: Developers", + + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + + "Topic :: Software Development", + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Utilities" +] + +[project.urls] +Homepage = "https://github.com/ccpgames/ccptools" +Documentation = "https://github.com/ccpgames/ccptools/blob/main/README.md" +Repository = "https://github.com/ccpgames/ccptools.git" +Issues = "https://github.com/ccpgames/ccptools/issues" +Changelog = "https://github.com/ccpgames/ccptools/blob/main/CHANGELOG.md" + +[tool.setuptools.dynamic] +version = {attr = "ccptools.__version__"} + +[tool.setuptools.packages.find] +where = [ "." ] +exclude = [ "tests", "tests.*" ] \ No newline at end of file diff --git a/setup.py b/setup.py index 3c31efe..81f4db7 100644 --- a/setup.py +++ b/setup.py @@ -1,34 +1,6 @@ #!/usr/bin/env python import setuptools -from ccptools import __version__ -with open('README.md', encoding='utf-8') as f: - readme = f.read() - - -with open('LICENSE', encoding='utf-8') as f: - lic = f.read() - - -setuptools.setup( - name='ccptools', - version=__version__, - classifiers=[ - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - ], - description='The CCP Tools team utilities for date and/or time objects and values and messing with types.', - long_description_content_type='text/markdown', - long_description=readme, - license=lic, - author='Thordur Matthiasson', - author_email='thordurm@ccpgames.com', - url='https://github.com/ccpgames/ccptools', - packages=setuptools.find_packages(exclude=('tests',)), - install_requires=[] -) +if __name__ == '__main__': + setuptools.setup()