diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml new file mode 100644 index 0000000..3b0d590 --- /dev/null +++ b/.github/workflows/build_wheels.yml @@ -0,0 +1,53 @@ +# This is a basic workflow to help you get started with Actions + +name: Build Wheels + +on: + push: + create: + tags: [ master ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04 ] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + + - uses: actions/setup-python@v2 + name: Install Python + with: + python-version: '3.7' + + - name: Get Dependencies + run: pip install twine build + + - name: Build wheel + run: | + python -m build + git status + + - uses: actions/upload-artifact@v2 + name: Upload + with: + path: ${{runner.workspace}}/cnkalman/dist/*.whl + + - name: Upload with twine + run: | + python -m pip install twine + python -m twine upload dist/*.whl --skip-existing + continue-on-error: true + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }} diff --git a/.gitignore b/.gitignore index 5eef840..bcd03e7 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,5 @@ build venv .eggs/ dist/ + +**/*.egg-info/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e39cd19..9026463 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,4 +13,5 @@ requires = [ build-backend = "setuptools.build_meta" [tool.setuptools-git-versioning] -enabled = true \ No newline at end of file +enabled = true +dev_template = "{tag}.{ccount}" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index a06ed48..5aa5c7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,7 @@ classifiers = [options] package_dir = - = src + = . packages = find: python_requires = >=3.6 install_requires =