forked from jakobrunge/tigramite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_on_pip.sh
54 lines (36 loc) · 1.45 KB
/
release_on_pip.sh
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
51
52
53
54
#!/bin/bash
# Steps to move from github to pip
# (Make sure pypi token exists)
# Change version number in setup.py
# Merge developer into Master on github
# Make sure docs are updated on master
# tigramite/docs$ make -C . html; cp -r _build/html/* .;
# tigramite$ git add docs/*
# Create folder for next version (e.g., version 4.2.1.0 as edited in setup.py)
# mkdir v4210
# cd v4210/
# Make sure to be in a clean anaconda
conda create --name tigramite-release-5001 python=3.9
conda activate tigramite-release-5001
# Pull tigramite github
git clone https://github.com/jakobrunge/tigramite.git
cd tigramite
# Checkout master
git checkout master
# Run all those in Linux or Windows
# Packages needed for setup (the parameter "--use-feature=2020-resolver" may not be necessary anymore soon )
pip install --use-feature=2020-resolver --upgrade setuptools wheel twine auditwheel
# Install the package itself in the environment
pip install -e .['dev']
# Rebuild the .c files from the .pyc files
# python setup.py develop
# Build the distribution
python setup.py sdist bdist_wheel
# Linux:
# auditwheel repair --plat manylinux2014_x86_64 ./dist/*linux_x86_64.whl -w ./dist/
# auditwheel repair --plat manylinux2014_x86_64 ./dist/*.whl -w ./dist/
# Upload the distro
# twine upload dist/*manylinux*.whl dist/*tar.gz
twine upload dist/*.whl dist/*tar.gz
# Windows (EDIT names to upload all things .whl and tat.gz in dist/ !!!):
# twine upload dist/*manylinux*.whl dist/*tar.gz