Skip to content

Commit

Permalink
First version of pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Sep 13, 2024
1 parent 8399594 commit 4770e12
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 77 deletions.
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

[project]
name = "ckanext-envvars"
version = "0.0.6"
description = "CKAN configuration settings available from env vars"
readme = "README.md"
authors = [
{name = "Brook Elgie", email = "[email protected]"}
]
license = {text = "AGPL"}
classifiers = [
"Development Status :: 5 - Production/Stable",

"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",

"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",

]
keywords = []
dependencies = [
"ckantoolkit"
]

[project.urls]
Homepage = "http://github.com/ckan/ckanext-envvars"

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

#[build-system]
#requires = ["setuptools", "wheel"]
#build-backend = "setuptools.build_meta"
#
[tool.setuptools]
#packages = ["ckanext"]
#namespace-packages = ["ckanext"]
include-package-data = true

[tool.setuptools.packages]
find = {}


[project.entry-points."ckan.plugins"]
envvars = "ckanext.envvars.plugin:EnvvarsPlugin"
mock_envvars_plugin = "ckanext.envvars.tests.test_base_envvars:MockPluginEnvVars"
78 changes: 1 addition & 77 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,80 +8,4 @@
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
name='''ckanext-envvars''',

# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# http://packaging.python.org/en/latest/tutorial.html#version
version='0.0.6',

description='''CKAN configuration settings available from env vars''',
long_description=long_description,
long_description_content_type="text/markdown",

# The project's main homepage.
url='https://github.com/okfn/ckanext-envvars',

# Author details
author='''Brook Elgie''',
author_email='''[email protected]''',

# Choose your license
license='AGPL',

# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',

# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],


# What does your project relate to?
keywords='''CKAN config''',

# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),

# List run-time dependencies here. These will be installed by pip when your
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
install_requires=[
'ckantoolkit',
],

# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
include_package_data=True,
package_data={
},

# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages.
# see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
data_files=[],

# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
entry_points='''
[ckan.plugins]
envvars=ckanext.envvars.plugin:EnvvarsPlugin
mock_envvars_plugin=ckanext.envvars.tests.test_base_envvars:MockPluginEnvVars
''',
)
setup()

0 comments on commit 4770e12

Please sign in to comment.