Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
run:
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash -l {0}' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge
conda-remove-defaults: true
activate-environment: cppimport
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -83,11 +83,11 @@ jobs:
name: Build and publish Python distributions to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge
conda-remove-defaults: true
activate-environment: cppimport
environment-file: environment.yml
- name: Get history and tags for SCM versioning to work
Expand All @@ -96,10 +96,16 @@ jobs:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build sdist
run: >-
python setup.py sdist
pip install build && python -m build --sdist
- name: Publish distribution 📦 to TestPyPI
if: github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include README.md
include VERSION
recursive-include tests *.py
recursive-include tests *.h
recursive-include tests *.cpp
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
description = open("README.md").read()

setup(
use_scm_version={"version_scheme": "post-release"},
setup_requires=["setuptools_scm"],
packages=["cppimport"],
install_requires=["mako", "pybind11", "filelock", "setuptools"],
zip_safe=False,
Expand All @@ -23,7 +21,6 @@
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
],
Expand Down
Loading