-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload_pypi_github.sh
More file actions
52 lines (36 loc) · 1.13 KB
/
upload_pypi_github.sh
File metadata and controls
52 lines (36 loc) · 1.13 KB
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
#!/usr/bin/env bash
#PYPI
######
#build
#python setup.py sdist #standard egg
#python setup.py bdist_wheel #new_standard wheel
#python setup.py install # sphinx takes only the installed pkg
#upload
#python setup.py sdist upload -r pypi
python setup.py bdist_wheel upload -r pypi
#GIT
#####
git add -A #add all new files to the repo.
git commit -m "next version" #commit changes locally - set argument as message
git push origin master # Sends your commits in the "master" branch to GitHub
#API on GitHub pages
####################
sphinx-apidoc -A "Karl Bedrich" -f -M -o doc appbase
cd doc/_build
git clone https://github.com/radjkarl/appbase.git gh-pages
rm -r -Force html
mv gh-pages html
cd html
git rm -rf -f .
git clean -fxd
cd ../../
make html
cd _build/html
#add an empty file called .nojekyll in the docs repo. This tells github's default parsing software to ignore the sphinx-generated pages that are in the gh-pages branch
touch .nojekyll
git add .nojekyll
git commit -m "added .nojekyll"
git add .
git commit -a -m 'API updated'
git push -f origin HEAD:gh-pages
cd ../../..