Skip to content

Commit

Permalink
Introduce pbr for auto-versioning
Browse files Browse the repository at this point in the history
patch by Michael Semb Wever, Sam Tunnicliffe; reviewed by Sam Tunnicliffe and Ekaterina Dimitrova for CASSANDRA-17351
  • Loading branch information
michaelsembwever authored and ekaterinadimitrova2 committed Mar 10, 2022
1 parent 0f9ae08 commit 7e5ff6a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pyYaml
six >=1.4.1
psutil

30 changes: 30 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[metadata]
name=ccm
version=3.1.6
description=Cassandra Cluster Manager
url='https://github.com/riptano/ccm'
description-file = README.md
description-content-type = text/markdown; charset=UTF-8
classifier=
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'

[pbr]
skip_authors=1
skip_changelog=1

[files]
packages =
ccmlib
ccmlib.cmds

[entry_points]
console_scripts =
cmd = ccm:main
35 changes: 3 additions & 32 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
#!/usr/bin/env python

from os.path import abspath, dirname, join
from platform import system
from shutil import copyfile

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

ccmscript = 'ccm'
if system() == "Windows":
copyfile('ccm', 'ccm.py')
ccmscript = 'ccm.py'

with open("README.md", "r") as fh:
long_description = fh.read()
copyfile('ccm', 'ccm.py')

setup(
name='ccm',
version='3.1.6',
description='Cassandra Cluster Manager',
author='Sylvain Lebresne',
author_email='[email protected]',
url='https://github.com/riptano/ccm',
long_description=long_description,
long_description_content_type="text/markdown",
packages=['ccmlib', 'ccmlib.cmds'],
scripts=[ccmscript],
install_requires=['pyYaml', 'six >=1.4.1', 'psutil'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],

setup_requires=['pbr>=5.8.1'],
pbr=True,
)

0 comments on commit 7e5ff6a

Please sign in to comment.