Skip to content

Commit ac753a4

Browse files
committed
Update python package, remove version.
1 parent 050a199 commit ac753a4

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

source/ports/py_port/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

source/ports/py_port/setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,14 @@
3232
with open(os.path.join(current_path, 'README.rst'), encoding='utf-8') as f:
3333
long_description = f.read()
3434

35-
# Get the version
36-
with open(os.path.join(current_path, 'VERSION')) as f:
37-
version = f.read()
38-
3935
# Define set up options
4036
options = {
4137
'name': 'metacall',
4238

4339
# Versions should comply with PEP440. For a discussion on single-sourcing
4440
# the version across setup.py and the project code, see
4541
# https://packaging.python.org/en/latest/single_source_version.html
46-
'version': version,
42+
'version': '0.5.2',
4743

4844
'description': 'A library for providing inter-language foreign function interface calls',
4945
'long_description': long_description,

source/ports/py_port/upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
set -exuo pipefail
2323

2424
PYPI_VERSION=$(curl -s https://pypi.org/rss/project/metacall/releases.xml | sed -n 's/\s*<title>\([0-9.]*\).*/\1/p' | sed -n '2 p')
25-
PORT_VERSION=$(cat VERSION)
25+
PORT_VERSION=$(python3 setup.py --version)
2626

2727
if [[ "$PYPI_VERSION" == "$PORT_VERSION" ]]; then
2828
echo "Current package version is the same as PyPI version, skipping upload."

0 commit comments

Comments
 (0)