From fc61e2e702162d128555cca77e27d78855762124 Mon Sep 17 00:00:00 2001 From: victor-ls <30514305+victor-ls@users.noreply.github.com> Date: Wed, 16 Mar 2022 17:05:16 -0300 Subject: [PATCH] Fix deploy (#47) --- .bandit | 2 ++ .github/workflows/main.yml | 10 ++++------ setup.cfg | 2 +- setup.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 .bandit diff --git a/.bandit b/.bandit new file mode 100644 index 0000000..8817e08 --- /dev/null +++ b/.bandit @@ -0,0 +1,2 @@ +[bandit] +exclude: ./.eggs/ \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d6191a1..07b614a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,15 +57,13 @@ jobs: run: make install && python3 -m pip install build - name: Build package - env: - RELEASE_VERSION: ${{ steps.release.outputs.version }} run: python3 -m build -s - name: Publish artifact uses: actions/upload-artifact@v2 with: - name: barterdude-{{ steps.release.outputs.version }}.tar.gz - path: './dist/barterdude-{{ steps.release.outputs.version }}.tar.gz' + name: barterdude-${{ steps.release.outputs.version }}.tar.gz + path: 'dist/barterdude-${{ steps.release.outputs.version }}.tar.gz' - name: Publish package to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 @@ -88,8 +86,8 @@ jobs: - name: Download artifact uses: actions/download-artifact@v2 with: - name: barterdude-{{ steps.release.outputs.version }}.tar.gz - path: './dist/barterdude-{{ steps.release.outputs.version }}.tar.gz' + name: barterdude-${{ steps.release.outputs.version }}.tar.gz + path: 'dist/barterdude-${{ steps.release.outputs.version }}.tar.gz' - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/setup.cfg b/setup.cfg index 224a779..0f94f37 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -description-file = README.md \ No newline at end of file +description_file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py index 0a18977..3451066 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -import os from setuptools import setup, find_packages libs = [] # if need extra libs @@ -21,7 +20,6 @@ setup( name="barterdude", - version=os.getenv('RELEASE_VERSION'), description="Message exchange engine to build pipelines using brokers like RabbitMQ", long_description=long_description, long_description_content_type="text/markdown", @@ -30,6 +28,8 @@ include_package_data=True, url='https://github.com/olxbr/BarterDude/', download_url='https://github.com/olxbr/BarterDude/archive/master.zip', + use_scm_version=True, + setup_requires=['setuptools_scm'], install_requires=requirements, extras_require=extra, classifiers=[