From 9e7daeaf0c2330601a348ca795356b1858c71f3e Mon Sep 17 00:00:00 2001 From: ahmedsobeh Date: Thu, 16 Mar 2023 15:36:34 +0100 Subject: [PATCH 1/3] preparing repo for packaging --- .../__init__.py | 4 +++ .../data_rolling.json | 0 .../main.py | 0 .../metricadvancedproducer.py | 0 .../metricproducer.py | 0 .../pizzaproducer.py | 0 .../realstockproducer.py | 0 .../rolling.py | 0 .../stockproducer.py | 0 .../userbehaviorproducer.py | 0 .../userbets.py | 0 setup.cfg | 3 ++ setup.py | 34 +++++++++++++++++++ 13 files changed, 41 insertions(+) create mode 100644 fake_data_producer_for_apache_kafka/__init__.py rename data_rolling.json => fake_data_producer_for_apache_kafka/data_rolling.json (100%) rename main.py => fake_data_producer_for_apache_kafka/main.py (100%) rename metricadvancedproducer.py => fake_data_producer_for_apache_kafka/metricadvancedproducer.py (100%) rename metricproducer.py => fake_data_producer_for_apache_kafka/metricproducer.py (100%) rename pizzaproducer.py => fake_data_producer_for_apache_kafka/pizzaproducer.py (100%) rename realstockproducer.py => fake_data_producer_for_apache_kafka/realstockproducer.py (100%) rename rolling.py => fake_data_producer_for_apache_kafka/rolling.py (100%) rename stockproducer.py => fake_data_producer_for_apache_kafka/stockproducer.py (100%) rename userbehaviorproducer.py => fake_data_producer_for_apache_kafka/userbehaviorproducer.py (100%) rename userbets.py => fake_data_producer_for_apache_kafka/userbets.py (100%) create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/fake_data_producer_for_apache_kafka/__init__.py b/fake_data_producer_for_apache_kafka/__init__.py new file mode 100644 index 0000000..99ed954 --- /dev/null +++ b/fake_data_producer_for_apache_kafka/__init__.py @@ -0,0 +1,4 @@ +from fake_data_producer_for_apache_kafka import metricadvancedproducer, \ + metricproducer, pizzaproducer, realstockproducer, \ + stockproducer, userbehaviorproducer, userbets, \ + rolling diff --git a/data_rolling.json b/fake_data_producer_for_apache_kafka/data_rolling.json similarity index 100% rename from data_rolling.json rename to fake_data_producer_for_apache_kafka/data_rolling.json diff --git a/main.py b/fake_data_producer_for_apache_kafka/main.py similarity index 100% rename from main.py rename to fake_data_producer_for_apache_kafka/main.py diff --git a/metricadvancedproducer.py b/fake_data_producer_for_apache_kafka/metricadvancedproducer.py similarity index 100% rename from metricadvancedproducer.py rename to fake_data_producer_for_apache_kafka/metricadvancedproducer.py diff --git a/metricproducer.py b/fake_data_producer_for_apache_kafka/metricproducer.py similarity index 100% rename from metricproducer.py rename to fake_data_producer_for_apache_kafka/metricproducer.py diff --git a/pizzaproducer.py b/fake_data_producer_for_apache_kafka/pizzaproducer.py similarity index 100% rename from pizzaproducer.py rename to fake_data_producer_for_apache_kafka/pizzaproducer.py diff --git a/realstockproducer.py b/fake_data_producer_for_apache_kafka/realstockproducer.py similarity index 100% rename from realstockproducer.py rename to fake_data_producer_for_apache_kafka/realstockproducer.py diff --git a/rolling.py b/fake_data_producer_for_apache_kafka/rolling.py similarity index 100% rename from rolling.py rename to fake_data_producer_for_apache_kafka/rolling.py diff --git a/stockproducer.py b/fake_data_producer_for_apache_kafka/stockproducer.py similarity index 100% rename from stockproducer.py rename to fake_data_producer_for_apache_kafka/stockproducer.py diff --git a/userbehaviorproducer.py b/fake_data_producer_for_apache_kafka/userbehaviorproducer.py similarity index 100% rename from userbehaviorproducer.py rename to fake_data_producer_for_apache_kafka/userbehaviorproducer.py diff --git a/userbets.py b/fake_data_producer_for_apache_kafka/userbets.py similarity index 100% rename from userbets.py rename to fake_data_producer_for_apache_kafka/userbets.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..80a5cd1 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ + +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..424b348 --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +from distutils.core import setup + +setup( + name='fake_data_producer_for_apache_kafka', # How you named your package folder (MyLib) + packages=['fake_data_producer_for_apache_kafka'], # Chose the same as "name" + version='0.1', # Start with a small number and increase it with every change you make + license='apache-2.0', # Chose a license from here: https://help.github.com/articles/licensing-a-repository + description='The Python fake data producer for Apache Kafka® is a complete demo app allowing you to quickly ' + 'produce JSON fake streaming datasets and push it to an Apache Kafka topic. ', # Give a short + # description about your library + author='Open Source @ Aiven', # Type in your name + author_email='', # Type in your E-Mail + url='https://github.com/aiven/python-fake-data-producer-for-apache-kafka', + # Provide either the link to your github or to your website + download_url='TBD', # I explain this later on + keywords=['kafka', 'faker', 'producer'], # Keywords that define your package best + install_requires=[ # I get to this in a second + 'yahoo_fin', + 'faker', + 'kafka-python', + ], + classifiers=[ + 'Development Status :: 5 - Production/Stable', + # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package + 'Intended Audience :: Developers', # Define that your audience are developers + 'License :: OSI Approved :: Apache license 2.0', # Again, pick a license + 'Programming Language :: Python :: 3.5', # Specify which python versions that you want to support + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + ], +) From 0dc713a4ec5e764bc5f0ec070c74b66b6bc3f6f0 Mon Sep 17 00:00:00 2001 From: ahmedsobeh Date: Thu, 16 Mar 2023 15:48:12 +0100 Subject: [PATCH 2/3] version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 424b348..9d5dc38 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='fake_data_producer_for_apache_kafka', # How you named your package folder (MyLib) packages=['fake_data_producer_for_apache_kafka'], # Chose the same as "name" - version='0.1', # Start with a small number and increase it with every change you make + version='1.0.0', # Start with a small number and increase it with every change you make license='apache-2.0', # Chose a license from here: https://help.github.com/articles/licensing-a-repository description='The Python fake data producer for Apache Kafka® is a complete demo app allowing you to quickly ' 'produce JSON fake streaming datasets and push it to an Apache Kafka topic. ', # Give a short From a5ce8ad10c4305d5a33ae08c05c9d01dd45a328b Mon Sep 17 00:00:00 2001 From: ahmedsobeh Date: Thu, 16 Mar 2023 15:54:10 +0100 Subject: [PATCH 3/3] minor --- .../__init__.py | 2 +- .../data_rolling.json | 0 .../main.py | 0 .../metricadvancedproducer.py | 0 .../metricproducer.py | 0 .../pizzaproducer.py | 0 .../realstockproducer.py | 0 .../rolling.py | 0 .../stockproducer.py | 0 .../userbehaviorproducer.py | 0 .../userbets.py | 0 setup.py | 29 +++++++++---------- 12 files changed, 14 insertions(+), 17 deletions(-) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/__init__.py (60%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/data_rolling.json (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/main.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/metricadvancedproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/metricproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/pizzaproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/realstockproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/rolling.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/stockproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/userbehaviorproducer.py (100%) rename {fake_data_producer_for_apache_kafka => aiven_fake_data_producer_for_apache_kafka}/userbets.py (100%) diff --git a/fake_data_producer_for_apache_kafka/__init__.py b/aiven_fake_data_producer_for_apache_kafka/__init__.py similarity index 60% rename from fake_data_producer_for_apache_kafka/__init__.py rename to aiven_fake_data_producer_for_apache_kafka/__init__.py index 99ed954..cdbb79c 100644 --- a/fake_data_producer_for_apache_kafka/__init__.py +++ b/aiven_fake_data_producer_for_apache_kafka/__init__.py @@ -1,4 +1,4 @@ -from fake_data_producer_for_apache_kafka import metricadvancedproducer, \ +from aiven_fake_data_producer_for_apache_kafka import metricadvancedproducer, \ metricproducer, pizzaproducer, realstockproducer, \ stockproducer, userbehaviorproducer, userbets, \ rolling diff --git a/fake_data_producer_for_apache_kafka/data_rolling.json b/aiven_fake_data_producer_for_apache_kafka/data_rolling.json similarity index 100% rename from fake_data_producer_for_apache_kafka/data_rolling.json rename to aiven_fake_data_producer_for_apache_kafka/data_rolling.json diff --git a/fake_data_producer_for_apache_kafka/main.py b/aiven_fake_data_producer_for_apache_kafka/main.py similarity index 100% rename from fake_data_producer_for_apache_kafka/main.py rename to aiven_fake_data_producer_for_apache_kafka/main.py diff --git a/fake_data_producer_for_apache_kafka/metricadvancedproducer.py b/aiven_fake_data_producer_for_apache_kafka/metricadvancedproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/metricadvancedproducer.py rename to aiven_fake_data_producer_for_apache_kafka/metricadvancedproducer.py diff --git a/fake_data_producer_for_apache_kafka/metricproducer.py b/aiven_fake_data_producer_for_apache_kafka/metricproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/metricproducer.py rename to aiven_fake_data_producer_for_apache_kafka/metricproducer.py diff --git a/fake_data_producer_for_apache_kafka/pizzaproducer.py b/aiven_fake_data_producer_for_apache_kafka/pizzaproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/pizzaproducer.py rename to aiven_fake_data_producer_for_apache_kafka/pizzaproducer.py diff --git a/fake_data_producer_for_apache_kafka/realstockproducer.py b/aiven_fake_data_producer_for_apache_kafka/realstockproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/realstockproducer.py rename to aiven_fake_data_producer_for_apache_kafka/realstockproducer.py diff --git a/fake_data_producer_for_apache_kafka/rolling.py b/aiven_fake_data_producer_for_apache_kafka/rolling.py similarity index 100% rename from fake_data_producer_for_apache_kafka/rolling.py rename to aiven_fake_data_producer_for_apache_kafka/rolling.py diff --git a/fake_data_producer_for_apache_kafka/stockproducer.py b/aiven_fake_data_producer_for_apache_kafka/stockproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/stockproducer.py rename to aiven_fake_data_producer_for_apache_kafka/stockproducer.py diff --git a/fake_data_producer_for_apache_kafka/userbehaviorproducer.py b/aiven_fake_data_producer_for_apache_kafka/userbehaviorproducer.py similarity index 100% rename from fake_data_producer_for_apache_kafka/userbehaviorproducer.py rename to aiven_fake_data_producer_for_apache_kafka/userbehaviorproducer.py diff --git a/fake_data_producer_for_apache_kafka/userbets.py b/aiven_fake_data_producer_for_apache_kafka/userbets.py similarity index 100% rename from fake_data_producer_for_apache_kafka/userbets.py rename to aiven_fake_data_producer_for_apache_kafka/userbets.py diff --git a/setup.py b/setup.py index 9d5dc38..19f040d 100644 --- a/setup.py +++ b/setup.py @@ -1,30 +1,27 @@ from distutils.core import setup setup( - name='fake_data_producer_for_apache_kafka', # How you named your package folder (MyLib) - packages=['fake_data_producer_for_apache_kafka'], # Chose the same as "name" - version='1.0.0', # Start with a small number and increase it with every change you make - license='apache-2.0', # Chose a license from here: https://help.github.com/articles/licensing-a-repository + name='aiven_fake_data_producer_for_apache_kafka', + packages=['aiven_fake_data_producer_for_apache_kafka'], + version='1.0.0', + license='apache-2.0', description='The Python fake data producer for Apache Kafka® is a complete demo app allowing you to quickly ' - 'produce JSON fake streaming datasets and push it to an Apache Kafka topic. ', # Give a short - # description about your library - author='Open Source @ Aiven', # Type in your name - author_email='', # Type in your E-Mail + 'produce JSON fake streaming datasets and push it to an Apache Kafka topic. ', + author='Open Source @ Aiven', url='https://github.com/aiven/python-fake-data-producer-for-apache-kafka', - # Provide either the link to your github or to your website - download_url='TBD', # I explain this later on - keywords=['kafka', 'faker', 'producer'], # Keywords that define your package best - install_requires=[ # I get to this in a second + + download_url='TBD', + keywords=['kafka', 'faker', 'producer'], + install_requires=[ 'yahoo_fin', 'faker', 'kafka-python', ], classifiers=[ 'Development Status :: 5 - Production/Stable', - # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package - 'Intended Audience :: Developers', # Define that your audience are developers - 'License :: OSI Approved :: Apache license 2.0', # Again, pick a license - 'Programming Language :: Python :: 3.5', # Specify which python versions that you want to support + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache license 2.0', + 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8',