Skip to content

Commit 4701513

Browse files
committed
Prepare release
1 parent dc46b10 commit 4701513

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

release.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -euo pipefail; IFS=$'\n\t'
3+
4+
NAME=$( python setup.py --name )
5+
VER=$( python setup.py --version )
6+
7+
echo "========================================================================"
8+
echo "Tagging $NAME v$VER"
9+
echo "========================================================================"
10+
11+
git tag -a v$VER
12+
git push origin v$VER
13+
14+
echo "========================================================================"
15+
echo "Releasing $NAME v$VER on PyPI"
16+
echo "========================================================================"
17+
18+
python setup.py sdist
19+
twine upload dist/*
20+
rm -r dist/ *.egg-info

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
setup(
1515
name='xtrack',
16-
version='0.0.1',
16+
version='0.1.0',
1717
description='Tracking library for particle accelerators',
1818
url='https://github.com/xsuite/xtrack',
19-
author='Riccard De Maria',
19+
author='Riccard De Maria, Giovanni Iadarola',
2020
packages=find_packages(),
2121
ext_modules = extensions,
2222
install_requires=[

0 commit comments

Comments
 (0)