Skip to content

Commit

Permalink
Merge pull request #271 from rsheftel/dev
Browse files Browse the repository at this point in the history
v4.2.1 to fix pyproject.toml build
  • Loading branch information
rsheftel committed Aug 22, 2023
2 parents da74cde + 9eec6b5 commit 09901ea
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 49 deletions.
23 changes: 0 additions & 23 deletions .coveragerc

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: get_new_current_version
run: |
echo "NEWV=${{ steps.new_version.outputs.data }}" >> $GITHUB_ENV
echo "OLDV=$(grep "VERSION" -m1 setup.py | cut -d"=" -f2 | sed "s/['\" ]//g")" >> $GITHUB_ENV
echo "OLDV=$(grep "VERSION" -m1 pyproject.toml | cut -d"=" -f2 | sed "s/['\" ]//g")" >> $GITHUB_ENV
- name: verify ${{env.NEWV}} > ${{env.OLDV}}
if: ${{ env.NEWV <= env.OLDV }}
Expand Down Expand Up @@ -59,7 +59,6 @@ jobs:
- name: set up new version
run: |
sed -i "s/$OLDV/$NEWV/" setup.py
sed -i "s/$OLDV/$NEWV/" pyproject.toml
- name: Set up Python
Expand Down Expand Up @@ -100,7 +99,7 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: setup.py pyproject.toml docs/change_log.rst docs/usage.rst
file_pattern: pyproject.toml docs/change_log.rst docs/usage.rst
commit_message: '[GH-Actions] v${{ env.NEWV }} -- updated configuration and documentation files.'

- name: Create Release
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
- name: get_new_current_version
run: |
echo "NEWV=${{ steps.new_version.outputs.data }}" >> $GITHUB_ENV
echo "OLDV=$(grep "VERSION" -m1 setup.py | cut -d"=" -f2 | sed "s/['\" ]//g")" >> $GITHUB_ENV
echo "OLDV=$(grep "VERSION" -m1 pyproject.toml | cut -d"=" -f2 | sed "s/['\" ]//g")" >> $GITHUB_ENV
- name: warn_no_version
if: ${{ env.NEWV <= env.OLDV }}
Expand All @@ -56,7 +56,6 @@
- name: set version
run: |
echo release candidate: $NEWV
sed -i "s/$OLDV/$NEWV/" setup.py
sed -i "s/$OLDV/$NEWV/" pyproject.toml
- name: Set up Python
Expand Down
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion docs/change_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@

Updates
-------
4.2.1 (08/21/2023)
~~~~~~~~~~~~~~~~~~
- Fix the pyproject.toml to properly generate sdist PR #267
- Remove .travis.yml file as Travis-CI is no longer used
- Merge .coveragerc into pyproject.toml

4.2.0 (08/20/2023)
~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
- CBOE GoodFriday special close is broken, reverted back to standard GoodFriday logic PR #265
- Fixed BSE Holiday PR #248 Issue #245
- Updated TASE Holidays 2022-2025 PR #263
Expand Down
27 changes: 25 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pandas_market_calendars"
version = "4.2.0"
version = "4.2.1"
authors = [
{ name="Ryan Sheftel", email="rsheftel@alumni.upenn.edu" },
]
Expand Down Expand Up @@ -35,11 +35,34 @@ requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
py-modules = ["pandas_market_calendars"]
packages = ["pandas_market_calendars"]

[project.urls]
"Homepage" = "https://github.com/rsheftel/pandas_market_calendars"
"Source" = "https://github.com/rsheftel/pandas_market_calendars"
"Documentation" = "https://pandas-market-calendars.readthedocs.io/en/latest/"
"Changelog" = "https://pandas-market-calendars.readthedocs.io/en/latest/change_log.html"
"Bug Tracker" = "https://github.com/rsheftel/pandas_market_calendars/issues"

[tool.coverage.run]
branch = true

[tool.coverage.report]
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",

# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",

# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",

# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]

ignore_errors = true

0 comments on commit 09901ea

Please sign in to comment.