Skip to content

Commit 3707ed2

Browse files
committed
Merge commit 'bb495cf52225d429e7161a191c9b62288fd10635' into develop
2 parents 5c563fa + bb495cf commit 3707ed2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
dev-deploy:
8080
name: Deploy Dev Package to PyPI
8181
needs: build
82-
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
82+
if: github.event_name == 'push'
83+
&& (github.ref == 'refs/heads/develop'
84+
|| startsWith(github.ref, 'refs/heads/release/'))
8385
runs-on: ubuntu-latest
8486
steps:
8587
- uses: actions/checkout@v2

deploy.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
#!/bin/bash -xe
22
HEAD_REV=$(git rev-parse HEAD)
3-
ORIGIN_DEV_REV=$(git ls-remote origin refs/heads/develop | grep -E -o '^[^[:space:]]+')
4-
if [ "$HEAD_REV" != "$ORIGIN_DEV_REV" ] ; then
5-
echo "Not deploying since we aren't on the 'develop' branch" >&2
6-
exit 0
7-
fi
83

94
git log --format=%s -n 1 "$HEAD_REV" | grep -q '^MINOR:' && exit 0
105

116
date=$(date +"%Y%m%d%H%M%S")
12-
sed -i -r 's/^version = "([^"]+)\.dev0"$/version = "\1.dev'$date'"/' setup.py
7+
sed -i -r 's/^version = "([^"]+)(\.dev|a)0"$/version = "\1\2'$date'"/' setup.py
138
python setup.py egg_info sdist bdist_wheel
149
twine upload -c "Built by CI. Uploaded after $(date +"%Y-%m-%d %H:%M:%S")" dist/rdflib-sqlalchemy*tar.gz dist/rdflib_sqlalchemy*whl

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"Programming Language :: Python :: 3.7",
3939
"Programming Language :: Python :: 3.8",
4040
"Programming Language :: Python :: 3.9",
41+
"Programming Language :: Python :: 3.10",
4142
"License :: OSI Approved :: BSD License",
4243
"Topic :: Software Development :: Libraries :: Python Modules",
4344
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)