-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Harvard-University-iCommons/task/haydn9000…
…/tlt-4715/add-pyproject-toml-config-file Task/haydn9000/tlt 4715/add pyproject toml config file
- Loading branch information
Showing
2 changed files
with
47 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |