Skip to content

Commit

Permalink
Merge pull request #6 from Harvard-University-iCommons/task/haydn9000…
Browse files Browse the repository at this point in the history
…/tlt-4715/add-pyproject-toml-config-file

Task/haydn9000/tlt 4715/add pyproject toml config file
  • Loading branch information
haydn9000 authored Jul 3, 2024
2 parents 3c38021 + 7be4727 commit 7d97eb4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 38 deletions.
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "django-ssm-parameter-store"
version = "0.7"
description = "A simple python module to load secure settings from AWS SSM Parameter Store."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{name = "HUIT Academic Technology", email = "[email protected]"}
]

requires-python = ">=3.10"

dependencies = [
"boto3>=1.9.91",
"PyYAML>=3.13",
"requests>=2",
]

classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: X.Y", # Replace "X.Y" as appropriate.
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License", # Example license.
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]

[project.urls]
Homepage = "https://github.com/Harvard-University-iCommons/django-ssm-parameter-store"
46 changes: 8 additions & 38 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,10 @@
import os
from setuptools import find_packages, setup
"""
This simple `setup.py` tells `setuptools` to look at pyproject.toml` for configuration.
This is done because AWS SAM CLI (SAM CLI, version 1.120.0) does not seem to fully support
configurations specified only in `pyproject.toml`.
"""

with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
from setuptools import setup

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
name='django-ssm-parameter-store',
version='0.6',
packages=find_packages(),
include_package_data=True,
license='BSD License', # example license
description='A simple python module to load secure settings from AWS SSM Parameter Store.',
long_description=README,
url='https://huit.harvard.edu/',
author='HUIT Academic Technology',
author_email='[email protected]',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: X.Y', # replace "X.Y" as appropriate
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License', # example license
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
"boto3>=1.9.91",
"PyYAML>=3.13",
"requests>=2",
],
)
if __name__ == "__main__":
setup()

0 comments on commit 7d97eb4

Please sign in to comment.