Skip to content

Commit

Permalink
Fixed upload to TestPyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Apr 9, 2024
1 parent b96399b commit 1b50ec2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

release:
Expand Down
17 changes: 13 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ def get_requirements(requirements_file):
return requirements, dependencies


def local_scheme(version):
"""
Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
to be able to upload to Test PyPI
"""
return ""


if __name__ == "__main__":
HERE = path.abspath(path.dirname(__file__))
INSTALL_REQUIRES, DEPENDENCY_LINKS = (
Expand All @@ -64,9 +72,10 @@ def get_requirements(requirements_file):
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"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",
"Programming Language :: Python :: 3.11",
"Topic :: Communications :: Email",
"Topic :: Internet :: WWW/HTTP",
],
Expand All @@ -76,6 +85,6 @@ def get_requirements(requirements_file):
zip_safe=False,
install_requires=INSTALL_REQUIRES,
dependency_links=DEPENDENCY_LINKS,
use_scm_version=True,
use_scm_version={"local_scheme": local_scheme},
setup_requires=["setuptools_scm"],
)

0 comments on commit 1b50ec2

Please sign in to comment.