From 2351544b0246a261586bd69fca0aa64b724a87ae Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 16 Jun 2021 14:24:44 -0700 Subject: [PATCH] Update packaging --- pyproject.toml | 3 +++ setup.cfg | 46 +++++++++++++++++++++++++++++++++++++++++++++- setup.py | 37 ++----------------------------------- 3 files changed, 50 insertions(+), 36 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9787c3b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index aa079ec..2356062 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,46 @@ +[metadata] +name = ScribeEngine +version = 0.2 +author = Raoul Snyman +author_email = raoul@snyman.info +description = An extensible CMS written in Python +long_description = file:README.rst +long_description_content_type = text/x-rst +url = https://scribeengine.org +license = GPLv3+ +classifiers = + 'Development Status :: 3 - Alpha', + 'Environment :: Web Environment,' + 'Framework :: Flask', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System', + 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application' +keywords = website, cms, blog + +[options] +zip_safe = false +include_package_data = true +package_dir = + = src +packages = find: +python_requires = >=3.7 +install_requires = file:requirements.txt +project_urls = + Source Code = https://git.snyman.info/raoul/scribeengine + Issues = https://git.snyman.info/raoul/scribeengine/issues + +[options.packages.find] +where = src + +[options.entry_points] +console_scripts = + scribe-config = scribeengine.config + +[bdist_wheel] +universal = 1 + [flake8] -max-line-length=120 +max-line-length = 120 diff --git a/setup.py b/setup.py index 07cf10c..44ab8b8 100644 --- a/setup.py +++ b/setup.py @@ -1,39 +1,6 @@ """ The ScribeEngine package """ -import os -from codecs import open -from setuptools import setup, find_packages +from setuptools import setup -HERE = os.path.abspath(os.path.dirname(__file__)) - -with open(os.path.join(HERE, 'README.rst'), encoding='utf8') as f: - LONG_DESCRIPTION = f.read() -with open(os.path.join(HERE, 'requirements.txt'), encoding='utf8') as f: - INSTALL_REQUIRES = [line for line in f] - - -setup( - name='ScribeEngine', - version='0.2', - description='A blog engine written in Python', - long_description=LONG_DESCRIPTION, - url='https://launchpad.net/scribeengine', - author='Raoul Snyman', - author_email='raoul@snyman.info', - license='GPLv3+', - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Web Environment,' - 'Framework :: Flask', - 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3', - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System', - 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application' - ], - keywords='website blog', - packages=find_packages(), - install_requires=INSTALL_REQUIRES -) +setup()