Skip to content

Commit

Permalink
Try again to simplify a version tage generated by setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Dec 4, 2023
1 parent f78b2ee commit e56be95
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/pypi-tag-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools wheel
python -m pip install build check-manifest twine
pip install build wheel twine setuptools setuptools_scm
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check MANIFEST
- name: Build package
run: |
check-manifest --verbose
- name: Build a wheel and a sdist
run: |
python -m build --outdir dist/ .
- name: Verify the distribution
run: twine check dist/*
python -m build --outdir dist/
python -m twine check dist/*
python -m setuptools_scm --strip-dev
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags')
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
4 changes: 2 additions & 2 deletions coffea_casa/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '2023.8.12.dev47+gb7c8cf5.d20231204'
__version_tuple__ = version_tuple = (2023, 8, 12, 'dev47', 'gb7c8cf5.d20231204')
__version__ = version = '2023.8.12.dev52+gf78b2ee.d20231204'
__version_tuple__ = version_tuple = (2023, 8, 12, 'dev52', 'gf78b2ee.d20231204')
22 changes: 15 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8,<9", "wheel"]
requires = [
"setuptools>=65",
"wheel>=0.37.0",
"setuptools_scm>=6.0",
]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -34,16 +38,21 @@ Documentation = "https://coffea-casa.readthedocs.io/en/latest/"
Repository = "https://github.com/CoffeaTeam/coffea-casa/issues"
"Bug Tracker" = "https://github.com/CoffeaTeam/coffea-casa/issues"

[tool.setuptools]
package-dir = {"" = "."}
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["coffea_casa"] # package names should match these glob patterns (["*"] by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)


[tool.setuptools_scm]
fallback_version = "0.0.0"
write_to = "coffea_casa/_version.py"

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
readme = {file = ["README.md"], content-type = "text/markdown"}

[tool.setuptools_scm]
version_file = "coffea_casa/_version.py"

[tool.flake8]
ignore = ["E203", "E266", "E501", "W503"]
max-line-length = 88
Expand Down Expand Up @@ -86,7 +95,6 @@ no_implicit_optional = true
ignore_missing_imports = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]

# pyproject.toml
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
Expand Down

0 comments on commit e56be95

Please sign in to comment.