Skip to content

create package target #898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
pep-0000.txt
pep-0000.rst
pep-????.html
peps.rss
__pycache__
*.pyc
*.pyo
*~
*env
.vscode
*.swp
/build
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ before_install:
- pip install docutils
script:
- make -j

after_success:
- test $TRAVIS_BRANCH = "master" &&
make upload
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,23 @@ clean:
-rm pep-0000.rst
-rm pep-0000.txt
-rm *.html
-rm -rf build

update:
git pull https://github.com/python/peps.git

venv:
$(PYTHON) -m venv venv
./venv/bin/python -m pip install -U docutils

package: all rss
mkdir -p build/peps
cp *.html build/peps/
cp *.png build/peps/
cp *.rss build/peps/
tar -C build -czf build/peps.tar.gz peps

upload: venv package
./venv/bin/python -m pip install awscli
./venv/bin/aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets-staging/peps.tar.gz
./venv/bin/aws s3 cp --acl public-read build/peps.tar.gz s3://pythondotorg-assets/peps.tar.gz