2018-09-02 21:48:12 +02:00
|
|
|
# This file is part of the pycalver project
|
2018-11-04 21:34:53 +01:00
|
|
|
# https://gitlab.com/mbarkhau/pycalver
|
2018-09-02 21:48:12 +02:00
|
|
|
#
|
2019-02-14 22:05:02 +01:00
|
|
|
# Copyright (c) 2019 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
|
2018-09-02 21:48:12 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
import os
|
2018-12-05 09:37:34 +01:00
|
|
|
import sys
|
2018-09-02 21:48:12 +02:00
|
|
|
import setuptools
|
|
|
|
|
|
|
|
|
|
|
2018-11-04 21:34:53 +01:00
|
|
|
def project_path(*sub_paths):
|
|
|
|
|
project_dirpath = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
return os.path.join(project_dirpath, *sub_paths)
|
2018-09-02 21:48:12 +02:00
|
|
|
|
|
|
|
|
|
2018-11-04 21:34:53 +01:00
|
|
|
def read(*sub_paths):
|
|
|
|
|
with open(project_path(*sub_paths), mode="rb") as fh:
|
2018-09-02 21:48:12 +02:00
|
|
|
return fh.read().decode("utf-8")
|
|
|
|
|
|
|
|
|
|
|
2018-11-05 00:38:20 +01:00
|
|
|
install_requires = [
|
|
|
|
|
line.strip()
|
|
|
|
|
for line in read("requirements", "pypi.txt").splitlines()
|
|
|
|
|
if line.strip() and not line.startswith("#")
|
|
|
|
|
]
|
2018-09-02 21:48:12 +02:00
|
|
|
|
|
|
|
|
|
2018-12-05 09:37:34 +01:00
|
|
|
package_dir = {"": "src"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if any(arg.startswith("bdist") for arg in sys.argv):
|
|
|
|
|
import lib3to6
|
2018-12-21 19:17:58 +01:00
|
|
|
|
2018-12-05 09:37:34 +01:00
|
|
|
package_dir = lib3to6.fix(package_dir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
long_description = "\n\n".join((read("README.md"), read("CHANGELOG.md")))
|
2018-09-02 21:48:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
|
name="pycalver",
|
|
|
|
|
license="MIT",
|
|
|
|
|
author="Manuel Barkhau",
|
2018-12-09 16:50:09 +01:00
|
|
|
author_email="mbarkhau@gmail.com",
|
2018-11-04 21:34:53 +01:00
|
|
|
url="https://gitlab.com/mbarkhau/pycalver",
|
2019-02-22 10:41:25 +01:00
|
|
|
version="201902.25",
|
2018-11-04 21:07:25 +01:00
|
|
|
keywords="version versioning bumpversion calver",
|
2019-02-14 22:05:02 +01:00
|
|
|
description="CalVer for python libraries.",
|
2018-09-02 21:48:12 +02:00
|
|
|
long_description=long_description,
|
2018-11-05 00:38:20 +01:00
|
|
|
long_description_content_type="text/markdown",
|
2018-12-21 19:17:58 +01:00
|
|
|
packages=['pycalver'],
|
2018-12-05 09:37:34 +01:00
|
|
|
package_dir=package_dir,
|
2018-11-05 00:38:20 +01:00
|
|
|
install_requires=install_requires,
|
|
|
|
|
entry_points="""
|
2018-09-02 21:48:12 +02:00
|
|
|
[console_scripts]
|
|
|
|
|
pycalver=pycalver.__main__:cli
|
2018-11-05 00:38:20 +01:00
|
|
|
""",
|
|
|
|
|
zip_safe=True,
|
2018-09-02 21:48:12 +02:00
|
|
|
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",
|
2018-12-05 09:37:34 +01:00
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
|
"Programming Language :: Python :: 3.5",
|
2018-09-02 21:48:12 +02:00
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
|
],
|
2018-09-05 21:27:10 +02:00
|
|
|
)
|