bumpver/setup.py

81 lines
2.2 KiB
Python

# This file is part of the bumpver project
# https://github.com/mbarkhau/bumpver
#
# Copyright (c) 2018-2020 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
# SPDX-License-Identifier: MIT
import os
import sys
import setuptools
try:
import fastentrypoints # noqa
except ImportError:
pass
def project_path(*sub_paths):
project_dirpath = os.path.abspath(os.path.dirname(__file__))
return os.path.join(project_dirpath, *sub_paths)
def read(*sub_paths):
with open(project_path(*sub_paths), mode="rb") as fh:
return fh.read().decode("utf-8")
install_requires = [
line.strip()
for line in read("requirements", "pypi.txt").splitlines()
if line.strip() and not line.startswith("#")
]
long_description = read("README.md")
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
package_dir = {"": "src"}
setuptools.setup(
name="bumpver",
license="MIT",
author="Manuel Barkhau",
author_email="mbarkhau@gmail.com",
url="https://github.com/mbarkhau/bumpver",
version="2023.1125",
keywords="version bumpver calver semver versioning bumpversion pep440",
description="Bump version numbers in project files.",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages("src"),
package_dir=package_dir,
install_requires=install_requires,
entry_points="""
[console_scripts]
bumpver=bumpver.cli:cli
""",
python_requires=">=2.7",
zip_safe=True,
classifiers=classifiers,
)