Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amoh-godwin committed Mar 28, 2023
1 parent 4d9c0a7 commit b9d7a18
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages

with open('README.md', 'r') as rm:
long_desc = rm.read()

version = os.environ['GITHUB_REF'].split('/')[-1]

sta = 'Development Status :: 5 - Production/Stable'
bta = 'Development Status :: 4 - Beta'
dev_status = sta

ver = version.split('-')[0]
ver = ver.replace('v', '')

if 'beta' in version:
beta = version.split('-')[1]
beta = beta.split('beta.')[1]
ver += f'b{beta}'
dev_status = bta


setup(
name='soloman.Controls',
version='3.1.1',
version=f'{ver}',
description='For the love of python and qml',
long_description=long_desc,
long_description_content_type='text/markdown',
Expand All @@ -22,7 +39,7 @@
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
f"{dev_status}",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit b9d7a18

Please sign in to comment.