1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/setup.py

41 lines
1.1 KiB
Python
Raw Normal View History

2020-12-13 05:46:30 +03:00
import setuptools
import toml
2020-12-13 05:46:30 +03:00
with open("pyproject.toml") as fd:
pkgdata = toml.load(fd)
projectdata = pkgdata['project']
2020-12-13 05:46:30 +03:00
# extract info
with open(projectdata['readme'], "r") as fh:
long_description = fh.read()
2020-12-13 05:46:30 +03:00
setuptools.setup(
name=projectdata['name'],
version=projectdata['version'],
author=projectdata['authors'][0]['name'],
author_email=projectdata['authors'][0]['email'],
description=projectdata["description"],
license="GPLv3",
2020-12-13 05:46:30 +03:00
long_description=long_description,
long_description_content_type="text/markdown",
url=projectdata['urls']['repository'],
packages=setuptools.find_packages("."),
2020-12-13 05:46:30 +03:00
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
python_requires=projectdata['requires-python'],
install_requires=projectdata['dependencies'],
package_data={'': ['*','*/*','*/*/*','*/*/*/*','*/*/.*','*/*/*/.*']},
2020-12-13 05:46:30 +03:00
include_package_data=True,
entry_points = {
'console_scripts':[
k + '=' + projectdata['scripts'][k] for k in projectdata['scripts']
]
2020-12-13 05:46:30 +03:00
}
)