Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 3a4f1d8

Browse files
committed
Refactor. Rename and module configurations
1 parent 9017aae commit 3a4f1d8

5 files changed

Lines changed: 49 additions & 6 deletions

File tree

cloudstate/version.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
Licensed under the Apache License, Version 2.0.
6+
"""
7+
8+
__version__ = "0.5.0"

setup.cfg

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1+
[metadata]
2+
url = https://cloudstate.io/
3+
author = Cloudstate
4+
#author_email = sleipnir@bsd.com.br
5+
license = Apache
6+
license_file = LICENSE
7+
classifiers =
8+
Intended Audience :: Developers
9+
License :: OSI Approved :: Apache Version 2
10+
Operating System :: OS Independent
11+
Programming Language :: Python
12+
Programming Language :: Python :: 3.8
13+
project_urls =
14+
Documentation = https://cloudstate.io/docs/user/lang/index.html
15+
Source = https://github.com/cloudstateio/python-support
16+
17+
[options]
18+
python_requires = >=3.8
19+
packages = find:
20+
include_package_data = true
21+
zip_safe = false
22+
install_requires =
23+
protobuf == 3.11.3
24+
grpcio == 1.28.1
25+
grpcio-tools == 1.28.1
26+
attrs == 19.3.0
27+
128
[aliases]
229
test=pytest
30+
331
[tool:pytest]
432
python_files = cloudstate/tests/test_*.py

setup.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
from setuptools import setup, find_packages
2-
3-
setup(name='cloudstate',
4-
version='0.1.0',
5-
url='https://github.com/marcellanz/cloudstate_python-support',
2+
3+
# Load version in cloudstate package.
4+
exec(open('cloudstate/version.py').read())
5+
version = __version__
6+
name = 'cloudstate'
7+
8+
print(f'package name: {name}, version: {version}', flush=True)
9+
10+
setup(name=name,
11+
version=version,
12+
url='https://github.com/cloudstateio/python-support',
613
license='Apache 2.0',
7-
description='Cloudstate Python Support',
14+
description='Cloudstate Python Support Library',
815
packages=find_packages(exclude=['tests', 'shoppingcart']),
916
long_description=open('README.md').read(),
1017
zip_safe=False)

shoppingcart/shopping_cart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cloudstate.cloud_state import CloudState
1+
from cloudstate.cloudstate import CloudState
22
from shoppingcart.shopping_cart_entity import entity as shopping_cart_entity
33
import logging
44

0 commit comments

Comments
 (0)