Update packaging

This commit is contained in:
Raoul Snyman 2021-06-16 14:24:44 -07:00
parent 51cf5e5e50
commit 2351544b02
3 changed files with 50 additions and 36 deletions

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

View File

@ -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] [flake8]
max-line-length = 120 max-line-length = 120

View File

@ -1,39 +1,6 @@
""" """
The ScribeEngine package The ScribeEngine package
""" """
import os from setuptools import setup
from codecs import open
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__)) setup()
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
)