-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.sh
More file actions
executable file
·50 lines (40 loc) · 967 Bytes
/
version.sh
File metadata and controls
executable file
·50 lines (40 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Usuń poprzednie pliki
rm -rf *.egg-info
#rm -rf dist
rm -rf build
# Usuń stare buildy
#rm -rf dist/ build/ *.egg-info/
# publish.sh
#!/bin/bash
echo "Starting publication process..."
python -m venv venv
source venv/bin/activate
# Upewnij się że mamy najnowsze narzędzia
pip install --upgrade pip build twine
# Sprawdź czy jesteśmy w virtualenv
if [ -z "$VIRTUAL_ENV" ]; then
echo "Aktywuj najpierw virtualenv!"
exit 1
fi
pip install -r requirements.txt
# Zainstaluj w trybie edytowalnym
pip install -e .
python increment_init.py -f src/2print/__init__.py
python increment_setup.py
python increment_version.py
python increment_project.py
python changelog.py
#python increment.py
bash git.sh
bash publish.sh
# Zbuduj paczkę
echo "Building package..."
python -m build
# Sprawdź paczkę
echo "Checking package..."
twine check dist/*
# Opublikuj na PyPI
echo "Publishing to PyPI..."
twine upload dist/*
echo "Publication complete!"