Skip to content

Commit

Permalink
add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed-XCF committed Sep 16, 2021
1 parent 704a41c commit 169b30e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- name: Install dependencies
run: |
make release
pip install setuptools wheel twine build
pip install setuptools wheel twine
- name: Get version
run: echo $GITHUB_REF | awk -F '/' '{print $3}' >> version
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
build
make build
make pypi
2 changes: 1 addition & 1 deletion aliyun_rocketmq_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ def get_provider_info():
"name": "Aliyun RocketMQ Airflow Provider",
"description": "Airflow provider for aliyun rocketmq",
"hook-class-names": ["aliyun_rocketmq_provider.hooks.aliyun_rocketmq.AliyunRocketMQHook"],
"versions": ["0.0.7"]
"versions": ["0.0.9"]
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = apache-airflow-providers-aliyun-rocketmq
version = 0.0.7
version = 0.0.9
description = Airflow x Aliyun RocketMQ
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from setuptools import setup

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

with open("version", "r") as fh:
version = fh.read()

setup(
name='apache-airflow-providers-aliyun-rocketmq',
version=version,
description='Airflow x Aliyun RocketMQ',
long_description=long_description,
long_description_content_type='text/markdown',
entry_points={
"apache_airflow_provider": [
"provider_info=aliyun_rocketmq_provider.__init__:get_provider_info"
]
},
license='Apache License 2.0',
packages=['aliyun_rocketmq_provider', 'aliyun_rocketmq_provider.hooks'],
install_requires=['apache-airflow>=2.0', 'mq-http-sdk>=1.0.3'],
setup_requires=['setuptools', 'wheel'],
author='Ed__xu__Ed',
author_email='[email protected]',
url='https://github.com/Ed-XCF/apache-airflow-providers-aliyun-rocketmq',
python_requires='~=3.7',
)

0 comments on commit 169b30e

Please sign in to comment.