-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package for Pypi uploads, add development docs
- Loading branch information
Michael Friedrich
committed
Dec 15, 2017
1 parent
fba36b6
commit e3b3cc8
Showing
4 changed files
with
104 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Development | ||
|
||
## Requirements | ||
|
||
### macOS | ||
|
||
``` | ||
brew install python3 pandoc | ||
``` | ||
|
||
### Pretix setup | ||
|
||
``` | ||
python3 -m venv env | ||
source env/bin/activate | ||
pip3 install -U pip setuptools | ||
export CXX=clang++ | ||
export CC=clang | ||
cd src/ | ||
pip3 install -r requirements.txt -r requirements/dev.txt | ||
``` | ||
|
||
### Local server | ||
|
||
``` | ||
cd $HOME/coding/testing/pretix/pretix/src | ||
python manage.py collectstatic --noinput | ||
python manage.py makemigrations | ||
python manage.py migrate | ||
python make_testdata.py | ||
python manage.py runserver | ||
``` | ||
|
||
http://127.0.0.1:8000/control admin@localhost - admin | ||
|
||
## Plugin setup | ||
|
||
``` | ||
cd $HOME/coding/netways/pretix/pretix | ||
source env/bin/activate | ||
cd $HOME/coding/netways/pretix/pretix-invoice-net | ||
``` | ||
|
||
``` | ||
python3 setup.py develop | ||
``` | ||
|
||
## Plugin Release | ||
|
||
### Create release | ||
|
||
|
||
``` | ||
VERSION=0.0.1 | ||
git tag -u D14A1F16 -m "Version $VERSION" v$VERSION | ||
``` | ||
|
||
``` | ||
python3 setup.py sdist | ||
``` | ||
|
||
### PyPi Upload | ||
|
||
#### Test | ||
|
||
``` | ||
python setup.py sdist upload -r testpypi | ||
``` | ||
|
||
#### Release | ||
|
||
``` | ||
python setup.py sdist upload -r pypi | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[metadata] | ||
description-file = README.md | ||
|
||
[flake8] | ||
ignore = N802,W503,E402 | ||
max-line-length = 160 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters