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
|
|
|
#
|
2018-11-04 21:34:53 +01:00
|
|
|
# (C) 2018 Manuel Barkhau (@mbarkhau)
|
2018-09-02 21:48:12 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
packages = setuptools.find_packages(project_path("src"))
|
|
|
|
|
package_dir = {"": "src"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if any(arg.startswith("bdist") for arg in sys.argv):
|
|
|
|
|
import lib3to6
|
|
|
|
|
package_dir = lib3to6.fix(package_dir)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
long_description = (
|
|
|
|
|
read("README.rst") +
|
|
|
|
|
"\n\n" +
|
|
|
|
|
read("CHANGELOG.rst")
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
|
name="pycalver",
|
|
|
|
|
license="MIT",
|
|
|
|
|
author="Manuel Barkhau",
|
2018-11-04 21:34:53 +01:00
|
|
|
author_email="@mbarkhau",
|
|
|
|
|
url="https://gitlab.com/mbarkhau/pycalver",
|
2018-09-02 23:36:57 +02:00
|
|
|
version="201809.2b0",
|
2018-09-02 21:48:12 +02:00
|
|
|
|
2018-11-04 21:07:25 +01:00
|
|
|
keywords="version versioning bumpversion calver",
|
2018-11-04 21:34:53 +01:00
|
|
|
description="CalVer versioning for python libraries.",
|
2018-09-02 21:48:12 +02:00
|
|
|
long_description=long_description,
|
|
|
|
|
|
|
|
|
|
packages=packages,
|
|
|
|
|
package_dir=package_dir,
|
|
|
|
|
zip_safe=True,
|
2018-11-04 21:07:25 +01:00
|
|
|
install_requires=["typing", "click"],
|
|
|
|
|
setup_requires=[
|
|
|
|
|
"lib3to6==v201809.0017-alpha",
|
|
|
|
|
"pytest-runner",
|
|
|
|
|
],
|
|
|
|
|
tests_require=[
|
|
|
|
|
"pytest",
|
|
|
|
|
],
|
2018-09-02 21:48:12 +02:00
|
|
|
entry_points='''
|
|
|
|
|
[console_scripts]
|
|
|
|
|
pycalver=pycalver.__main__:cli
|
|
|
|
|
''',
|
|
|
|
|
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",
|
2018-09-05 21:54:34 +02:00
|
|
|
"Programming Language :: Python :: 3.4",
|
2018-09-02 21:48:12 +02:00
|
|
|
"Programming Language :: Python :: 3.5",
|
|
|
|
|
"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
|
|
|
)
|