From e97429a04eb65baade70c88c487da8eb3f0506d8 Mon Sep 17 00:00:00 2001 From: Josh Harshman Date: Thu, 8 Feb 2024 14:38:24 -0700 Subject: [PATCH] Prep Packaging on PyPi. This preps bitly/assetman for packaging on PyPi. --- pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 20 ------------------- 2 files changed, 53 insertions(+), 20 deletions(-) create mode 100644 pyproject.toml delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2431294 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "assetman" +description = "assetman assetmanager" +version = "0.3.0rc" +authors = [ + { name="Will McCutchen", email="wm@bit.ly" }, +] +maintainers = [ + { name="Jehiah Czebotar", email="jehiah@gmail.com"}, + { name="Josh Harshman", email="josh.harshman@bit.ly"} +] +readme = "README.md" +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] +packages = [ + "assetman", + "assetman/parsers", + "assetman/tornadoutils", +] +dependencies = [ + "aadict==0.2.3", + "asgiref==3.7.2", + "asset==0.6.13", + "boto3==1.34.15", + "botocore==1.34.15", + "exceptiongroup==1.2.0", + "globre==0.1.5", + "iniconfig==2.0.0", + "jmespath==1.0.1", + "packaging==23.2", + "pluggy==1.3.0", + "pytest==7.4.4", + "python-dateutil==2.8.2", + "s3transfer==0.10.0", + "six==1.16.0", + "sqlparse==0.4.4", + "tomli==2.0.1", + "tornado==6.3.3", + "typing-extensions==4.9.0", + "urllib3==1.26.18", +] + +[project.scripts] +assetman_compile = "assetman:assetman_compile" + diff --git a/setup.py b/setup.py deleted file mode 100755 index bf43cc0..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/python - -from distutils.core import setup - -setup(name='assetman', - version='0.2.0', # also update in __init__.py - description='AssetMan asset manager', - url="http://github.com/bitly/assetman", - license="Apache Software License", - author='Will McCutchen', - author_email="wm@bit.ly", - maintainer="Jehiah Czebotar", - maintainer_email="jehiah@gmail.com", - packages=['assetman', 'assetman/parsers', 'assetman/tornadoutils'], - classifiers = [ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - ], - scripts=['scripts/assetman_compile'] -)